What Are Cookies? A Simple Explanation
A cookie is a small piece of text that a website stores in your browser. There is nothing mysterious about it: cookies are one of the oldest web technologies, invented at Netscape in 1994.
When you visit a website, the server can send a cookie, which your browser saves. On your next visit, the browser sends it back. That is how a site remembers you between visits.
Most cookies do useful work. A cookie keeps you logged in so you do not enter your password on every page. It remembers what is in your shopping cart, your language and whether you chose dark mode. Without cookies, every page load would start from scratch.
Technically, a cookie is a name and a value, such as "session_id=abc123" or "language=en", plus some metadata: which domain set it, when it expires and whether it may only travel over encrypted connections. Cookies cannot run code, read your files or install software.
The privacy problem comes from one specific use: cookies set by a domain other than the one you are visiting. That distinction, first-party versus third-party, is the basis of most web tracking.
First-Party vs Third-Party Cookies
A first-party cookie is set by the website you are visiting. You go to example.com, and example.com stores a cookie. Only example.com can read it. These cookies keep you logged in, remember preferences and hold your shopping cart.
A third-party cookie is set by another domain. You go to example.com, but the page embeds an ad or script from ads.tracker.com, and that domain sets its own cookie. The important part: ads.tracker.com can read and update the same cookie on every website that embeds its script.
That is what makes cross-site tracking possible. If tracker.com runs on thousands of sites (news, shops, blogs), its cookie lets it see your activity on all of them. It knows you read an article about running shoes, then visited a shoe shop, then a review site.
First-party cookies stay with one website. Third-party cookies follow you across the web, which is why browsers have targeted them first.
The line is not always clean. With CNAME cloaking, a tracking company runs under a subdomain of the site you visit, such as analytics.example.com instead of tracker.com, so its cookies technically count as first-party. Safari limits cookies set this way, and some content blockers detect the trick.
How Third-Party Cookies Track You Across the Web
Here is how cross-site tracking works in practice. An ad network, call it AdTrack, provides scripts to thousands of websites. When you visit Site A, a news site, your browser loads AdTrack's script with the page. AdTrack sets a cookie with a unique identifier, such as "user_id=x7f9k2".
Now you visit Site B, a clothing shop that also uses AdTrack. Your browser loads the script again and sends along the cookie. AdTrack now knows that the person who visited Site A also visited Site B. Over days and weeks it builds a profile: you read about technology and cooking, you shop for running shoes and books, you look at travel sites on Friday evenings. AdTrack may not know your name, but it knows your habits in detail.
The profile is then used for targeted ads. On Site C, AdTrack recognises your cookie and shows you the running shoes you looked at on Site B. That is why ads seem to follow you around the web.
The largest ad companies are present on a large share of popular websites. Google's analytics and advertising services in particular show up on most of the sites studied in large tracking surveys, which gives Google a view across much of the web.
Tracking scripts record more than which pages you visit: how long you stay, what you click, how far you scroll, what you search for, what goes into the cart and what you buy. That data feeds profiles that are used and traded for advertising.
Cookies in 2026: Chrome, Fingerprinting and Other Methods
Safari and Firefox have blocked third-party tracking cookies by default for years. Chrome has not. Google announced in 2020 that Chrome would phase them out, delayed the plan several times, and in 2024 and 2025 abandoned it: Chrome keeps allowing third-party cookies by default, and users can block them in the settings. Google has since announced it will retire most of the Privacy Sandbox technologies, including the Topics API, that were meant to replace them.
Even where cookies are blocked, tracking continues through methods that need no cookies.
Browser fingerprinting identifies you from technical details of your browser and device: screen resolution, fonts, graphics card, time zone, language, system version and more. Each detail is common; the combination often is not. In the EFF's Panopticlick study, 84 percent of the browsers tested had a unique fingerprint. Larger later studies found lower rates, but even a fingerprint shared with a few thousand other people narrows you down a lot. Fingerprinting stores nothing on your computer, so there is nothing to delete. The browser has to resist it by presenting standardised or randomised values.
Server-side tracking moves the reporting from your browser to the website's server, which forwards your activity directly to the ad or analytics service. Your browser never sees that request, so browser-based blockers cannot stop it.
Logins are a tracking method of their own. While you are signed in to Google, Meta or Amazon, they recognise you through your account, with or without cookies from other sites.
The tracking that replaces third-party cookies is often harder to see and harder to block. A cookie banner at least tells you something is happening. Fingerprinting and server-side tracking do not.
How to Actually Protect Yourself from Tracking
Because tracking goes beyond cookies, protection works in layers.
Your browser. Use one that blocks third-party cookies by default and resists fingerprinting. Safari and Firefox do both well; Brave blocks even more out of the box. In Chrome, you can block third-party cookies yourself in the privacy settings. Consider a search engine that does not build a profile of you, such as DuckDuckGo.
A content blocker. uBlock Origin is the reference for blocking tracking scripts and ads in Firefox. In Safari, uBlock Origin Lite and AdGuard do a similar job. Blocking a script before it loads is more effective than limiting it afterwards.
Cookie hygiene. Even with third-party cookies blocked, link decoration and bounce tracking can carry identifiers through first-party cookies. Firefox's Total Cookie Protection keeps each site's cookies separate; clearing site data from time to time helps in any browser.
Your IP address. It reveals your approximate location and helps link activity across sites. Safari can hide it from known trackers, and a VPN or iCloud Private Relay hides it more broadly.
The apps outside the browser. This is the part most guides skip. Many Mac apps contact analytics and advertising services directly, and no browser setting touches that. NetMute shows which domains each app on your Mac contacts and marks the known trackers among them. Its Tracker Shield blocks known tracking domains in your apps as well as in the browser: the 50 most active in the free version, 300+ with Pro. In browsers that resolve names on their own, such as Brave, name-based blocking needs one extra setting; the app's "Where NetMute protects" check shows where blocking works.
A private browser for the web, a content blocker for scripts, and app-level blocking for everything else cover the main ways tracking data leaves your Mac.

