What "ads following you" actually means, and why it happens

When you see the same ad for shoes on five different websites, that is not a coincidence. Advertisers use tracking pixels and cookies — tiny files stored on your device — to follow where you go online and build a profile of your interests. A company you visited once can then buy space on other sites to show you ads based on that profile.

This tracking happens through several routes. When you visit a website, that site may load ads from a third-party ad network like Google Ads or Facebook Pixel. That network drops a cookie on your device and records that you were there. Later, when you visit a completely different website that also uses the same ad network, that network recognizes your cookie and shows you a targeted ad.

The ads themselves are not the only thing being tracked. The ad networks collect data on what you click, how long you look at things, what you buy, and what you search for. This data is valuable — it is how ad networks make money, and it is why they work so hard to follow you.

Key Takeaways

  • Clearing your browser cookies removes the tracking files that let ad networks recognize you across websites, though new cookies will be created the next time you visit tracked sites.
  • Turning on your browser's private or incognito mode stops cookies from being saved to your device during that session, but does not hide your activity from your internet service provider or the websites you visit.
  • Blocking third-party cookies in your browser settings prevents ad networks from dropping tracking files, though some websites may not work properly if you block them completely.
  • Installing a privacy-focused browser extension like uBlock Origin or Privacy Badger blocks many ad trackers before they load, reducing the number of ads you see and the data collected about you.
  • Changing your ad preferences in Google, Meta, and other platforms lets you opt out of certain types of targeting, though you will still see ads — they just will not be based on your browsing history.

How to clear cookies and browsing data from your browser

The fastest way to remove tracking cookies is to clear your browser's cache and cookies. This erases the files that ad networks use to recognize you, but it does not stop new ones from being created the next time you visit a tracked website.

In Chrome: Open the menu (three dots, top right), select Settings, then Privacy and Security, then Clear Browsing Data. A window will open. Make sure "Cookies and other site data" is checked, set the time range to "All time," and click Clear Data. Repeat this process in any other browser you use regularly — Firefox, Safari, Edge, or Opera.

In Firefox: Open the menu (three lines, top right), select Settings, then Privacy & Security. Scroll to "Cookies and Site Data" and click "Clear Data." Check both boxes and click Clear.

In Safari on Mac: Open Safari menu, select Settings, then Privacy. Click "Manage Website Data," select all, and click Remove.

Clearing cookies is not permanent. The moment you visit a website with ads, new tracking cookies will be created. For ongoing protection, you need a different approach.

Using private or incognito mode to prevent cookies from saving

Private browsing mode (called Incognito in Chrome, Private in Firefox and Safari) stops your browser from saving cookies to your device during that session. When you close the window, the cookies are deleted. This means ad networks cannot build a long-term profile of your browsing across multiple sessions.

To open a private window: In Chrome, press Ctrl+Shift+N (Windows) or Command+Shift+N (Mac). In Firefox, press Ctrl+Shift+P (Windows) or Command+Shift+P (Mac). In Safari, press Command+Shift+N.

Private mode has limits. Your internet service provider can still see which websites you visit, and the websites themselves know who you are if you log in. Private mode only hides your activity from other websites and ad networks — it does not make you anonymous.

If you want private mode to be your default, you can set it: In Chrome, open Settings, then On Startup, and select "Open the New Tab page." Then open a new incognito window and set it as your default. In Firefox, go to Settings, then Privacy & Security, and under "History," select "Firefox will use custom settings for history." Then check "Always use private browsing mode."

Blocking third-party cookies in your browser settings

Most modern browsers let you block third-party cookies — the ones dropped by ad networks and trackers, not the ones from the website you are actually visiting. Blocking them reduces tracking without breaking most websites.

In Chrome: Open Settings, then Privacy and Security, then Cookies and Other Site Data. Select "Block third-party cookies." Note that Chrome is phasing this out in favor of a system called Privacy Sandbox, which is less transparent but still reduces some tracking.

In Firefox: Open Settings, then Privacy & Security. Under "Enhanced Tracking Protection," select "Strict." This blocks third-party cookies and many trackers by default.

In Safari: Open Settings, then Privacy. Check "Prevent cross-site tracking." This blocks third-party cookies and limits how much data trackers can collect.

Some websites may not work properly if you block third-party cookies — a login button might not appear, or a video might not play. If that happens, you can temporarily allow cookies for that site, or switch to a less strict setting.

Installing a browser extension to block ads and trackers

uBlock Origin is a free extension that blocks ads and many trackers before they even load. It is available for Chrome, Firefox, Safari, and Edge. Install it from your browser's extension store, and it works immediately with no setup required.

Privacy Badger, made by the Electronic Frontier Foundation, is lighter weight and focuses specifically on blocking trackers rather than all ads. It learns which trackers follow you and blocks them automatically.

Ghostery shows you which trackers are on each website and lets you block them selectively. The free version is useful; the paid version adds more features.

These extensions reduce the number of ads you see and limit the data collected about you, but they do not stop websites from knowing you visited them. If you log into Facebook or Google while using these extensions, those companies still know who you are and what you do on their sites.

Changing your ad preferences on Google, Meta, and other platforms

You cannot opt out of seeing ads entirely on most platforms, but you can opt out of certain types of targeting. This means you will still see ads, but they will be based on what you are looking at right now, not on a profile built from your browsing history.

On Google: Go to myaccount.google.com, select Data & Privacy, then Ad personalization. You will see the interests Google has assigned to you. Toggle off "Ad personalization" to stop Google from using your browsing history to target ads. You will still see ads on Google Search and YouTube, but they will not be personalized.

On Meta (Facebook and Instagram): Open Settings, then Ads, then Ad Preferences. You can see the categories Meta has assigned to you and remove them. You can also limit ads based on your activity off Meta by going to Off-Facebook Activity and clearing your history.

On Amazon: Go to your account, select Login & Security, then scroll to "Advertising Preferences." You can opt out of personalized ads there.

These changes take a few days to take effect, and they only apply to those specific platforms. They do not affect tracking by other ad networks on other websites.

Why you still see ads even after clearing everything

Clearing cookies, blocking trackers, and opting out of personalization will reduce the number of ads you see and make them less targeted. You will not eliminate ads entirely unless you pay for ad-free versions of services or use a very aggressive ad blocker.

Some ads are not based on tracking at all — they are based on context. If you search for "running shoes" on Google, Google will show you running shoe ads because of that search, not because of a cookie. That happens in real time and cannot be blocked by clearing old cookies.

Some websites also use fingerprinting instead of cookies. Fingerprinting collects information about your device — your browser type, screen size, installed fonts, time zone — and uses that to recognize you without a cookie file. Blocking cookies does not stop fingerprinting, though some extensions like Privacy Badger can limit it.

Frequently Asked Questions

Will clearing cookies slow down my computer?

No. Clearing cookies frees up a small amount of storage space, but the difference is not noticeable. Cookies are tiny files — usually a few kilobytes each. You would need millions of them to affect your computer's speed.

If I block all cookies, will websites still work?

Most will, but some may not. Websites use cookies for legitimate reasons — to keep you logged in, to remember your preferences, to put items in your shopping cart. If you block all cookies, you may have to log in every time you visit a site. Blocking only third-party cookies usually avoids this problem.

Do I need to clear cookies on my phone too?

Yes. Mobile browsers work the same way as desktop browsers. In Chrome on Android, open Settings, then Privacy, then Clear Browsing Data. In Safari on iPhone, open Settings, then Safari, then Clear History and Website Data.

Can websites tell if I am using an ad blocker?

Yes, some can. A few websites detect ad blockers and ask you to disable them or pay for an ad-free version. Most do not. If a site asks you to disable your ad blocker, you can choose to do so for that site only in your extension settings.

Does a VPN stop ads from following me?

A VPN hides your IP address from websites, but it does not stop cookies or fingerprinting. Ad networks can still track you across websites using cookies even if you use a VPN. A VPN is useful for privacy from your internet service provider, but it is not a substitute for blocking cookies and trackers.