What's Actually Happening When You See the Same Ad Everywhere
When you search for running shoes on one website and then see running shoe ads on another site an hour later, that's not coincidence. A company called an ad network has collected information about what you looked at and is now showing you related ads across multiple websites. The websites you visit are not talking to each other directly — instead, they're both connected to the same ad network, which acts as a middleman that tracks your browsing and sells that information to advertisers.
The most common method is called tracking pixels or cookies. When you land on a website, tiny pieces of code load invisibly in your browser. These pieces remember what you did on that site — what products you looked at, how long you stayed, whether you bought anything. When you leave and visit a completely different website, that second site checks with the ad network: "Does this person have a profile?" The ad network recognizes you (usually through a cookie stored on your device) and tells the new website what you were interested in. The new website then shows you ads related to those interests.
Key Takeaways
- Ad networks use cookies and tracking pixels to follow your browsing across different websites, even when those websites don't know each other.
- When you visit a website, invisible code collects information about what you looked at and how long you stayed there.
- Advertisers pay ad networks to show ads to people who have already shown interest in similar products or topics.
- You can reduce tracking by clearing cookies, using private browsing mode, or installing browser extensions that block trackers.
- Some browsers and devices now offer settings to limit ad tracking, though advertisers can still use other methods to target you.
How Ad Networks Know What You're Interested In
Ad networks build a profile of your interests by watching what you do online. If you visit a recipe website and read five articles about sourdough bread, the ad network notes that. If you then visit a gardening forum and look at posts about composting, that gets added to your profile too. Over time, the ad network has a detailed picture of your hobbies, shopping habits, health concerns, and financial situation — all without you ever signing up or giving permission.
The tracking happens through multiple methods at once. Cookies are the most common: a small file stored on your device that remembers you when you return to a website. But ad networks also use fingerprinting, which identifies you based on details about your device — your browser type, screen resolution, installed fonts, and other technical information that's unique enough to recognize you even if you delete cookies. Some websites also use first-party data, meaning they track you directly on their own site and then share that information with ad networks.
Social media platforms like Facebook and Instagram are particularly powerful trackers because they have a login — they know exactly who you are. When you visit other websites that have a Facebook "Like" button or Instagram pixel, Facebook is watching. Even if you never click the button, Facebook knows you were there and what you looked at.
Why Advertisers Pay for This Information
Showing you an ad for something you've already looked at is far more likely to result in a purchase than showing a random ad to a random person. If you spent ten minutes looking at winter coats on a clothing website, you're probably more interested in buying a coat than someone who has never thought about coats. An advertiser will pay more money to show an ad to you than to show it to someone with no interest in coats.
This is called targeted advertising or behavioral advertising. Advertisers bid for the right to show ads to specific groups of people based on their browsing history. A shoe company might say to an ad network: "Show our ads to people who have visited shoe websites in the last 30 days." The ad network finds all the people in that category and displays the shoe ads to them. The shoe company pays only when someone actually clicks the ad, or sometimes just for showing the ad to the right audience.
The more detailed the profile, the more an advertiser will pay. This is why ad networks are constantly collecting more information about you — it makes their service more valuable to advertisers, which means more revenue for the ad networks and the websites that host their tracking code.
The Difference Between Cookies and Other Tracking Methods
Cookies are files that websites store on your device. When you return to that website, the cookie tells the website who you are and what you did last time. First-party cookies (set by the website you're visiting) are generally considered less invasive because only that website can read them. Third-party cookies (set by ad networks or other companies) can be read by many different websites, which is why they're more controversial.
Most browsers now allow you to block third-party cookies in the settings, and some browsers like Safari and Firefox block them by default. However, blocking cookies doesn't stop all tracking. Ad networks have moved toward fingerprinting, which doesn't rely on cookies at all. Fingerprinting identifies you based on your device's unique characteristics — your operating system, browser version, screen size, timezone, and other technical details. Because these characteristics are rarely identical across devices, they can identify you with reasonable accuracy even without cookies.
Another method is login-based tracking. If you're signed into Google, Facebook, or another service while you browse, that company can track you across the web even without cookies. When you visit a website with a Google Analytics tracker or a Facebook pixel, Google or Facebook knows it's you because you're logged in. This is harder to block because it relies on your account rather than a file on your device.
What Information Gets Collected and Stored
Ad networks collect far more than just "you looked at shoes." They record your browsing history across thousands of websites, the amount of time you spent on each page, what you searched for, what you clicked on, and whether you made a purchase. They note your location (usually approximate, based on your IP address), your device type, your browser, and sometimes your age and gender if that information is available.
Over months and years, this builds a detailed profile. An ad network might know that you're a 35-year-old woman in Portland who is interested in fitness, has recently searched for arthritis remedies, visited several fertility websites, and spent time reading about graduate programs. This profile is valuable to many advertisers — fitness companies, pharmaceutical companies, fertility clinics, and universities would all pay to show ads to someone matching this description.
The data is usually stored for months or years. Even after you delete your cookies or switch devices, the ad network may still have a record of your interests and behavior. Some ad networks sell or share this data with other companies, which means your profile can be used by advertisers you've never heard of.
How to Reduce Tracking
The most straightforward method is to clear your cookies regularly. In most browsers, you can do this through Settings or Preferences. Look for "Clear browsing data" or "Clear cookies and site data." You can set your browser to clear cookies automatically when you close it, though this may log you out of websites you use regularly.
Using private browsing mode (called Incognito in Chrome, Private in Firefox and Safari) prevents your browser from storing cookies and browsing history. However, this only works while you're in private mode — once you close the window, the protection ends. Ad networks can still track you in private mode if you're logged into an account like Google or Facebook.
Browser extensions that block trackers can reduce tracking significantly. Extensions like uBlock Origin, Privacy Badger, and Ghostery block many tracking pixels and cookies. However, they don't block all methods — fingerprinting and login-based tracking can still happen. These extensions also require you to install and maintain them, and some websites may not work properly with certain blockers enabled.
Most modern browsers and devices now offer a "Do Not Track" setting or a "Limit Ad Tracking" option. On iPhones, this is called "Limit Ad Tracking" and is found in Settings under Privacy. On Android, it's "Opt out of Ads Personalization" in Settings under Google. On computers, most browsers have a "Do Not Track" option in privacy settings. However, these settings are not legally binding — advertisers can ignore them if they choose.
What Websites and Advertisers Are Required to Tell You
In the United States, there is no single federal law requiring websites to tell you about tracking. However, some states have passed their own laws. California's Consumer Privacy Act (CCPA) requires websites to disclose what data they collect and give you the right to request that data or ask them to delete it. Virginia, Colorado, Connecticut, and Utah have similar laws. If you live in one of these states, you may see a "Your Privacy Choices" link on websites, which allows you to request your data or opt out of certain types of tracking.
The European Union's General Data Protection Regulation (GDPR) is stricter. Websites serving European users must get your permission before storing cookies or tracking you. This is why many websites show a cookie consent banner when you visit — they're required to ask before tracking.
Most websites include information about tracking in their privacy policy, but privacy policies are often long and written in legal language. The key sections to look for are "Cookies," "Tracking," "Third-party services," or "Advertising." If you see a privacy policy mention Google Analytics, Facebook Pixel, or ad networks, that means the website is sharing information about you with those companies.
Frequently Asked Questions
Can websites see what I do on other websites?
No, individual websites cannot see your activity on other sites. However, ad networks can see your activity across many websites because they place tracking code on thousands of sites. A shoe website cannot see that you visited a recipe website, but an ad network can see both.
If I clear my cookies, will the ads stop following me?
Clearing cookies will stop cookie-based tracking temporarily, but ad networks can still track you through other methods like fingerprinting or login-based tracking. You would need to clear cookies regularly, use private browsing, and block trackers with extensions to significantly reduce tracking.
Why do some ads seem to know things I never searched for?
Ad networks infer interests based on patterns in your browsing. If you visit multiple parenting websites, they might assume you're a parent and show you ads for children's products even if you never explicitly searched for them. They also buy data from other sources that track your offline behavior.
Does using a VPN stop ads from following me?
A VPN hides your IP address from websites, which prevents location-based tracking. However, it does not stop cookie-based tracking or fingerprinting. If you're logged into Google, Facebook, or another account, those companies can still track you even with a VPN.
Are the ads I see based on my microphone listening to me?
There is no verified evidence that apps or websites are using your microphone to listen to conversations for ad targeting. Tracking through cookies, browsing history, and login accounts is far more reliable and cheaper than audio analysis. The ads you see are almost certainly based on your browsing history, not your conversations.