Access your interface

Enter your email address to access your personal interface.

← All articles

Blog · Tips

Cookies, ad blockers, GDPR: how to avoid losing data

Contents

Marketing data collection loses data in three places: third-party cookie blocking, ad blockers, and the lifetime browsers impose on cookies set in JavaScript. The answer is the same for all three, and it is technical before it is legal: first-party collection, set up server-side.

First party and third party: two regimes, not two variants

A cookie is a text file, but there are two kinds depending on who sets it. A first-party cookie carries the domain name of the site visited; a third-party cookie carries that of another domain, usually a service provider’s.

The two have not been treated the same way for a long time, and the gap has only widened. Safari has limited cross-site tracking since Intelligent Tracking Prevention arrived in 2017, and Firefox blocks third-party cookies by default. The CNIL, the French data protection authority, requires prior consent for those used for advertising, and it made the point with fines: €150 million for Google and €60 million for Facebook in January 2022, on the issue of refusal alone.

What 2018 could not foresee: the lifetime of first-party cookies

This article used to say that first-party cookies were “treated kindly”. That is no longer true, and it is the most important correction in this update.

Since ITP 2.1, in February 2019 (opens in a new window), Safari has capped at seven days the lifetime of any persistent cookie set in JavaScript through document.cookie. And if the landing URL carries cross-site tracking parameters (a gclid, an fbclid), the cap drops to 24 hours.

So the distinction that matters is no longer first party versus third party, it is who sets the cookie:

  • set by JavaScript in the browser, it lasts seven days, sometimes one;
  • set by the site’s server, in the Set-Cookie header of an HTTP response, it lasts as long as intended.

A purchase journey spread over three weeks, which is common in travel, cars or insurance, does not exist for data collection capped at seven days: the returning visitor is a new visitor. That is the technical reason for server-side first-party collection, and it holds regardless of any compliance question.

Ad blockers

The second gap is an old one and has not shrunk: according to GWI data reported by eMarketer (opens in a new window), nearly 30% of internet users worldwide use an ad blocker at least occasionally, and European rates are above that average.

An ad blocker does not distinguish between uses: it works from lists of domains. A tag served from a known third-party domain is blocked, whether it is there to sell advertising or to measure your own site.

Why your TMS must be first party

This is the most concrete consequence, and it is worth repeating as it stands: a tag management system wraps all of the site’s tags, including those that have nothing to do with advertising.

If it is served from a third-party domain and gets blocked, everything inside it is blocked too: measurement, but also chat, personalisation and A/B tests. A third-party TMS therefore makes your site’s functioning depend on lists you do not control.

Two predictions from 2018 that did not come true

This article announced two regulatory and technical changes. Neither happened, and it is better to say so than to let readers think they are in force.

  • The ePrivacy Regulation does not exist. The article cited “the updated text of the ePrivacy directive”, which was meant to require browsers to ask users for permission. Proposed in 2017 and never adopted, it was formally withdrawn by the European Commission on 5 February 2025 (opens in a new window), for lack of agreement between the co-legislators and because it had become outdated. The 2002 ePrivacy Directive, transposed country by country, still applies.
  • Chrome has not removed third-party cookies. After six years of announcements, Google confirmed in April 2025 that it would not remove them (opens in a new window) and would keep the existing settings. And in October 2025, most Privacy Sandbox technologies, presented as their replacement, were put on the path to retirement.

The right conclusion to draw is not “the third-party cookie has been saved”. Safari and Firefox still block it, lifetime caps still apply, and the standardised replacement that was supposed to arrive will not. In other words, no one is going to fix your data collection for you.

In short

Three losses, one answer. A first-party collection tool, set up server-side on your own domain, keeps long journeys intact, withstands blocking lists and stays under your control. It is also what makes your compliance demonstrable, because you cannot prove anything about data when you do not know where it is: see the benefits of centralised data collection.

The most common mistakes in these set-ups are gathered in the 7 mistakes to avoid in data collection.