
You look at a pair of trail shoes at 9:14 p.m., close the tab, and by breakfast the same shoes are sitting in a banner on a weather site. Nobody sent that ad by hand. A chain of tags, identifiers and automated auctions put it there, run by retargeting companies whose software decides in milliseconds whether you are worth another impression. Retargeting is the most direct form of online advertising: it spends money only on people who already showed interest. That is why online stores budget for it first, and why it is also the kind of ad that makes people feel watched.
This page walks through how retargeting works step by step, who the retargeting companies and ad retargeting platforms are, and what you can do if you would rather not be followed.
How it works: a tag, an identifier and a list
Every campaign starts with a tag. On the web this is a short JavaScript snippet (sometimes a 1x1 image) that the advertiser places on its pages. Meta calls its version the Meta Pixel; Google uses the Google tag. When the page loads, the tag fires and reports an event to the ad company’s servers: product viewed, item added to cart, checkout started, purchase completed. Larger advertisers now also send the same events server to server, which survives ad blockers and browser restrictions better than a script in the page.
The event needs an identifier to stick to. On the open web that has traditionally been a third-party cookie set on the ad company’s own domain. Inside apps it is the device’s advertising ID: Apple’s IDFA on iPhones, Google’s advertising ID on Android. Logged-in platforms skip both and use the account itself.
From there the platform builds audiences. “Viewed a product in the last 14 days but did not buy” is a typical segment. So is “abandoned a cart worth more than a set amount.” Each audience has a membership window, and buyers are usually removed with an exclusion list so the store stops paying to chase people who already converted.
That is how it works on the collection side. The interesting part happens when you leave.
Retargeting runs on auctions measured in milliseconds
When you open a news site, the publisher’s ad server, usually through a supply-side platform, sends a bid request to one or more ad exchanges. The request describes the slot, the page and an identifier for you. Demand-side platforms receive it, check whether that identifier belongs to any of their advertisers’ audiences, price the impression and answer. The exchange picks a winner and the creative loads.
The whole round trip is budgeted in tenths of a second. The IAB Tech Lab’s OpenRTB protocol standardizes the message format, and since around 2019 most large exchanges, Google’s included, have run first-price auctions, which pushed buyers to get better at shading their bids.
One step is easy to miss. The exchange and the DSP each set their own cookie, so they need a way to agree that two different IDs describe the same browser. That is cookie syncing: a short chain of calls, fired as the page loads, in which each company passes its ID to a partner and stores the partner’s ID in a match table. This is how it works behind almost every ad-supported page, and it explains why a single article can trigger dozens of requests to ad-tech domains you have never heard of.
This is where retargeting has a structural edge. A prospecting campaign has to guess who might care. A retargeting bidder knows you looked at the product yesterday, so it can afford to bid more for a narrow set of impressions. Understanding how retargeting works at this level also explains its weak spot: if the identifier is missing (cookie blocked, ID reset), the bidder sees a stranger and stays out of the auction.
Frequency caps and dynamic creative decide whether it feels useful or creepy
Two controls separate a reminder from a stalker.
Frequency capping limits how many times one person sees a campaign in a given period. Most platforms let you set a cap per day or per week, and good buyers also use recency: bid hard in the first day or two after a visit, then taper off. Campaigns that skip this end up showing the same sofa forty times to someone who bought it elsewhere.
Dynamic creative is the second control. Instead of one static banner, the ad is assembled at serving time from a product feed: the exact items you viewed, current prices, stock status and a few recommendations chosen by a model. Meta’s catalog ads, Google’s dynamic remarketing and Criteo’s templates all work this way. The guide to dynamic, mobile and cross-device retargeting covers the feed side in detail. When a feed goes stale, the result is an ad for a sold-out item, which is worse than no ad.
A side note that rarely makes it into the vendor decks: burn pixels, the tags that fire on the order confirmation page, are the single most neglected piece of setup. Without them, a store keeps buying ads aimed at its own fresh customers. Check that one before tuning anything else.
The retargeting companies and ad retargeting platforms worth knowing
The market splits into walled gardens that retarget inside their own properties, specialists that built their business on commerce retargeting, and general demand-side platforms that offer it as one tactic. Each vendor describes how it works a little differently, but the pipeline underneath is the same: tag, identifier, audience, bid, creative. The table below sticks to what each one is publicly known for.
| Company | Type | Where the retargeting runs |
|---|---|---|
| Google Ads | Walled garden | Display Network, YouTube, Gmail and search remarketing lists |
| Meta | Walled garden | Facebook, Instagram and Audience Network via catalog ads and custom audiences |
| Criteo | Commerce specialist | Open web and retail media, built around product feeds |
| AdRoll | Commerce specialist for smaller stores | Display, social and email for online shops |
| The Trade Desk | Independent DSP | Programmatic display, video, connected TV and audio |
| StackAdapt | Programmatic platform | Display, native, video and connected TV |
Choosing between ad retargeting platforms mostly comes down to where your audience spends time and how much data you can share. A small store gets the most from the walled gardens plus one specialist. A large retailer with its own data team will usually run retargeting through a DSP so that audiences, frequency and measurement live in one place. The specialist retargeting companies win when product-feed quality and recommendation models matter more than raw reach.
TellApart, one of the companies that shaped the field
Many of today’s ad retargeting platforms grew out of the 2010 to 2015 wave of ad-tech startups. TellApart, founded in 2009 by former Google engineers Josh McFarland and Mark Ayzenshtat, was a typical example. It sold what it called predictive marketing: models that estimated which shoppers were likely to buy and which products they would want, then shaped display ads around that prediction. In a 2011 commentary McFarland argued that any online retailer could run profitable display retargeting at scale, because specialist technology firms could handle the data work. AdExchanger’s John Ebbert agreed and pointed to the new audience-based exchanges that let marketers pick individual impressions. The company was later bought by Twitter; the story of Twitter’s 2015 acquisition of TellApart shows how social platforms pulled retargeting talent in-house. Its engineers also tested early social exchange inventory, documented in early Facebook Exchange results.
Privacy rules changed how it works, and who wins
Retargeting depends on identifiers, and identifiers are what regulators and browser makers have been taking away. Safari has limited third-party cookies through Intelligent Tracking Prevention since 2017, and Firefox blocks known trackers by default. Google announced in 2020 that Chrome would phase out third-party cookies, delayed the plan several times, and in 2024 abandoned it. Apple’s App Tracking Transparency, introduced with iOS 14.5 in 2021, made apps ask before using the IDFA, and most people say no.
Law moved in the same direction. In the European Union, the GDPR and the ePrivacy rules mean a retargeting tag needs consent before it fires. In California, the CCPA as amended by the CPRA gives residents the right to opt out of the “sharing” of personal data for cross-context behavioral advertising, which is a legal description of retargeting.
The practical effect is that retargeting companies with logged-in users and first-party data (Google, Meta, Amazon, big retailers’ own media networks) lost the least. Independent players had to lean on hashed emails, publisher partnerships and contextual signals. Knowing how retargeting works also tells you which switch matters on your side: remove the identifier and the bidder can no longer recognize you. If you are on the receiving end and want fewer of these ads, the guide to opting out of interest-based ads lists every switch that still works, from the DAA and NAI tools to the Android ad ID.
The open question is what replaces the cookie for the independents: shared email-based IDs like Unified ID 2.0, retailer clean rooms, or simply better context. The next two years of auction data will show which one advertisers actually pay for.
Questions readers ask
How does retargeting work in simple terms?
A small tag on a store's website records that your browser or phone looked at certain pages. That visit puts an identifier into an audience list. Later, when you load a page or app that sells ad space through an exchange, the advertiser's buying platform recognizes the identifier, bids in a real-time auction and, if it wins, shows you an ad that usually features the products or brand you already saw. The whole exchange happens in a fraction of a second.
Which retargeting companies are the largest?
The biggest reach belongs to Google and Meta, because remarketing is built into Google Ads and into Meta's catalog ads for Facebook and Instagram. Among specialists, Criteo is the best-known name in commerce retargeting, and AdRoll serves many small and mid-sized online stores. Demand-side platforms such as The Trade Desk, StackAdapt and Amazon DSP run retargeting as one tactic among many for agencies and larger brands.
Is retargeting the same as remarketing?
In everyday use, yes. Google calls its product remarketing, and many people in ad tech use the two words interchangeably. Some marketers keep remarketing for email follow-ups, such as an abandoned-cart message, and use retargeting for paid ads on other websites and apps. Both rest on the same idea: a previous visit or action decides who sees the next message.
Can retargeting ads follow me across devices?
Sometimes. If you are logged in to the same account on your phone and laptop, platforms like Google and Meta know both devices belong to you and can show the ad on either. Independent ad-tech firms connect devices with identity graphs that use logins, hashed email addresses or statistical matching. Those links are less reliable than an account login, so cross-device reach varies widely by company.
How do I stop seeing retargeting ads?
Clear or block third-party cookies in your browser, reset or delete your phone's advertising ID, use the industry opt-out tools from the Digital Advertising Alliance and the Network Advertising Initiative, and turn off ad personalization in your Google and Meta accounts. You will still see ads, but fewer of them will be based on the sites you visited. The step-by-step guide on this site covers each setting.