This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How do online ads target you?
Quick answer
Online ads target you by tracking your browsing through cookies and pixels, building a profile of your interests, and then auctioning ad space to advertisers in real time. The highest bidder wins the right to show you an ad tailored to that profile, all within milliseconds.
Online ads target you by tracking your activity across websites, then using that data to place you in audience segments that advertisers bid to reach in real time. The entire process runs on cookies, pixels, and auction systems that exchange your behavioural signals for ad space.
Step by step
- You visit a website that contains ad slots and tracking scripts.
- A cookie is placed in your browser, assigning a unique identifier to your device.
- Tracking pixels record your behaviour—pages viewed, clicks, time spent—and send this data to ad networks.
- Ad networks combine this data with other sources to build a detailed interest profile about you.
- When you load another page with ads, an auction runs: advertisers bid to show you an ad based on your profile.
- The winning ad is displayed, and the network logs the impression to improve future targeting.
Key things to understand
- When you visit a site, small files called cookies are stored in your browser, recording a unique ID that identifies your device.
- Advertisers embed tracking pixels—tiny invisible images—on pages to log when you view content, what you click, and how long you stay.
- This data feeds into a profile that sorts you into interest categories, such as 'frequent traveller' or 'technology enthusiast'.
- When a page loads an ad slot, an automated auction runs in milliseconds: advertisers bid based on your profile and the page context.
- The winning bid's ad is displayed, and the entire cycle repeats across sites, refining the profile with each new interaction.
Labelled diagram
- Visit website
You load a page that includes ad slots and hidden tracking code.
- Cookie placed
A small file stores a unique ID in your browser to recognise you later.
- Behaviour logged
Pixels record what you click, view, and how long you stay.
- Profile built
Ad networks combine data to infer your interests and demographics.
- Auction runs
Advertisers bid in real time to show you an ad based on your profile.
- Ad displayed
The highest bidder's ad appears, and the cycle continues.
Real-world examples
- After searching for flights to Tokyo on a travel site, you see ads for hotels in Tokyo on a news website.
- A fitness brand shows you ads for running shoes on social media because you frequently visit running blogs.
- You browse a cooking recipe, and later see ads for kitchen appliances on a completely different site.
- A car manufacturer targets ads to users who have recently visited auto review sites, identified through tracking pixels.
Common mistake
✗ Myth: Online ads target you only based on the website you are currently visiting.
✓ Fact: Targeting usually relies on your browsing history across many sites, not just the current page. Ad networks track you over time to build a detailed profile, so an ad on a news site may be based on your earlier activity elsewhere.
People also ask
How do advertisers track me online?
What is retargeting in online ads?
Are online ads based on my microphone?
Can I stop online ads from targeting me?
Do advertisers know my name and address?
Why do I see ads for things I already bought?
What is real-time bidding?
Part of the guide: How the Internet Works →

