You look at a pair of boots on a shopping site. A few hours later, the same boots appear in an ad on your social feed, then on a news site, then in another app. It can feel a little spooky, like the internet is following you around.
In a sense, it is. Much of that following happens through cookies and other tracking technologies. They aren't magic and they aren't always bad, but understanding them helps you decide how much you're comfortable sharing.
What a Cookie Actually Is
A cookie is a small text file that a website stores in your browser. It holds a bit of information the site can read later, such as an identifier that says "this is the same visitor as before."
Cookies are what make many everyday conveniences possible:
- Staying logged in when you return to a site
- Keeping items in your shopping cart
- Remembering your language or display preferences
- Keeping your place in a multi-step form
Without cookies, you'd have to log in again on every page and your cart would empty itself constantly.
First-Party vs. Third-Party Cookies
The key distinction is who sets the cookie.
First-Party Cookies
These come from the website you're actually visiting. If you're on a bookstore's site, its cookies remember your login and your cart. These are generally the helpful kind, and blocking them often breaks things.
Third-Party Cookies
These are set by a different company whose code is embedded in the site, such as an advertising network, an analytics provider, or a social media button. Because the same third party may be present on many websites, its cookies can recognize you as you move from site to site. That's how an ad network can know you looked at boots on one site and show you boots on another.
Third-party cookies are the main source of cross-site tracking, and many browsers now restrict or block them by default. Policies differ between browsers and continue to change.
Other Ways Sites Track You
Cookies aren't the only tool. Others include:
- Tracking pixels. Tiny invisible images or snippets of code on a web page or in an email. When they load, they tell a company that you opened the page or email. Social platforms and advertisers offer pixels that businesses install on their websites to measure ad results.
- Device fingerprinting. Combining details about your device, such as browser version, screen size, and installed fonts, to create an identifier that can recognize you even without cookies.
- Logged-in tracking. When you're logged into a big platform, its buttons and tools embedded on other websites may connect your visits to your account.
- App permissions and identifiers. Mobile apps can collect data through permissions you grant and through advertising identifiers on your phone.
Why Companies Track
Tracking serves several purposes, some more welcome than others:
- Making sites work: Logins, carts, and settings.
- Measuring use: Which pages people visit, so the site can improve.
- Personalized advertising: Showing ads based on your interests and behavior.
- Ad measurement: Checking whether an ad led to a purchase.
Much of the free internet is paid for by advertising, and tracking makes that advertising more valuable. That's the trade-off you're often being asked to accept.
Those Consent Banners
Many websites show a pop-up asking you to accept cookies. These banners exist largely because of privacy laws in various places that require sites to ask before using certain kinds of tracking.
When you see one, you usually have more choices than the big "Accept all" button suggests:
- Reject all or Necessary only keeps essential cookies and declines most tracking.
- Manage preferences or Settings lets you choose categories, such as allowing analytics but declining advertising.
Taking a few seconds to choose "necessary only" is a simple habit that reduces tracking across many sites.
Settings That Give You More Control
In Your Browser
Most modern browsers let you:
- Block third-party cookies
- Clear cookies and site data, either manually or automatically when you close the browser
- Use a private or incognito window, which doesn't keep cookies after you close it
- Turn on tracking prevention features, depending on the browser
Keep in mind that private windows don't make you invisible. Websites, your employer or school network, and your internet provider can still see activity. Private mode mainly stops your own browser from keeping a history and cookies.
On Your Phone
Your phone's settings usually include privacy options for apps, such as controlling which apps can access your location, contacts, or camera, and, on some phones, limiting app tracking or resetting your advertising identifier. Look in the privacy section of your phone's settings.
On Social Platforms
Many social platforms let you review and adjust how information from other websites and apps is used to show you ads. Look in the platform's settings for sections about ads or off-platform activity. The official Help Center explains the current options.
Should You Block Everything?
You can, but there are trade-offs. Blocking all cookies will break many sites, and you'll be logged out constantly. A balanced approach works for most people:
- Allow first-party cookies so sites work normally.
- Block or limit third-party cookies in your browser.
- Choose "necessary only" on consent banners when you can.
- Review ad settings on the platforms you use most.
- Clear cookies now and then, or use private windows for one-off browsing.
The Bigger Picture
Tracking is woven into how much of the internet works. You don't have to opt out of the modern web to protect your privacy, but you also don't have to accept every default. A few settings and habits shift the balance back toward you, and the boots will follow you around a lot less.