Sub topic 2
Why browsers restrict tracking: Safari, Firefox and Chrome
This chapter assumes you know what a cookie is and how tags fire on a page. It covers what each major browser does, in practical terms, and what that means for the cookies your stack depends on.
Why browsers act
A third-party cookie is set by a domain other than the site the visitor is on. Ad platforms use these cookies to recognize one person across many sites. Browser vendors treat this cross-site recognition as a privacy problem. Users rarely see it or agree to it. Browsers also compete on privacy, so restricting trackers became a product feature.
Safari: Intelligent Tracking Prevention
Safari's Intelligent Tracking Prevention (ITP) is the strictest of the three.
- Safari has blocked all third-party cookies by default since 2020.
- Cookies written by JavaScript through
document.cookieare capped at 7 days. - If a visitor arrives through a link that carries tracking parameters from a domain Safari classifies as a tracker, that cap can drop to 24 hours.
- Safari also limits cookies set through CNAME cloaking, which is hiding a tracker behind a subdomain of your own site.
ITP makes no exception for first-party status. A script-set cookie on your own domain still expires early.
Firefox: Enhanced Tracking Protection
Firefox's Enhanced Tracking Protection (ETP) works in two layers.
- Since 2019 it has blocked requests to known trackers, using a maintained list.
- Total Cookie Protection partitions cookies. Each site gets its own cookie jar, so a cookie set by an ad domain on site A is invisible to the same domain on site B. Firefox turned this on by default in 2022.
Partitioning matters because it stops cross-site tracking even when the cookie is technically allowed.
Chrome: the exception, with caveats
Chrome has the largest market share and took a different path. Google announced the end of third-party cookies, began a 1% test in January 2024, and then reversed course. As of this writing, Chrome still allows third-party cookies by default in normal windows, and Incognito mode blocks them. Google's replacement plans have shifted repeatedly, which a later chapter covers.
Do not treat Chrome's current behavior as a promise. Users can block third-party cookies in settings, and regulators and vendors keep changing the plans.
Side-by-side comparison
| Browser | Third-party cookies | Script-set first-party cookies | Main mechanism |
|---|---|---|---|
| Safari | Blocked by default | Capped at 7 days (24 hours in some cases) | ITP |
| Firefox | Partitioned per site; known trackers blocked | Not capped by default | ETP and Total Cookie Protection |
| Chrome | Allowed by default; blocked in Incognito | Not capped | User settings |
What this means for your stack
You cannot rely on one cookie behavior across your audience. A visitor on Safari may look like a new person after 7 days. A returning Firefox user cannot be linked across sites by an ad network. Your analytics will see inflated new-visitor counts and shorter customer journeys.
Exercise
A visitor clicks a Facebook ad in Safari, browses your site, and returns 10 days later to buy. Your tag stores a visitor ID with document.cookie. What does your analytics most likely record, and why?
Show answer
It most likely records a new visitor on the return visit. Safari caps cookies written by JavaScript at 7 days, so the ID expired before day 10. The purchase cannot be linked to the original ad click through that cookie.