Cookies 

Cookies: types, consent and what browsers allow today

Three people talk in front of a computer screen in a modern office.
Ralph Grundmann · Last updated on 3 October 2026

Cookies are an essential part of online marketing. They allow website operators to recognise visitors, store settings and measure the success of campaigns. This article explains the differences between first-party and third-party cookies, the rules on consent and how the major browsers handle cookies today.

What are cookies?

Cookies are small text files that a website stores in the browser. They can contain information about navigation, language settings, login details, the contents of a shopping basket or other preferences, enabling a personalised experience of the website. Despite their small size, cookies play a central role in how modern websites work and in measuring online marketing campaigns.

Other storage locations in the browser, such as web storage, work in a similar way. Legally, they are treated like cookies.

First-party and third-party cookies

First-party cookies are set by the website you visit. They are needed for basic functions such as login and the shopping basket and are also used to measure user actions on the site, for example in web analytics.

Third-party cookies are set by third parties such as advertising networks whose content is embedded on the page. They are mainly used for targeted advertising and for tracking users across websites, for example for retargeting.

Cookies and consent: what the law requires

In Germany, section 25 of the Telecommunications Digital Services Data Protection Act (TDDDG) governs the use of cookies. Until May 2024 the act was called the TTDSG; the cookie rule in section 25 is unchanged in substance. Information may only be stored on or read from a user’s device with consent. Cookies that are strictly necessary for a service the user has explicitly requested, such as the shopping basket or login, are exempt. The rule applies equally to web storage, tracking pixels and reading device characteristics. It implements the EU ePrivacy Directive, so similar rules apply across the EU.

The General Data Protection Regulation (GDPR) also applies to the further processing of the data. In practice this means that in Germany analytics and marketing cookies require consent via a cookie banner, and declining must be as easy as accepting. Other countries differ in detail: the UK, for example, now exempts purely statistical cookies from consent under certain conditions. How Google Analytics and Google Ads handle declined cookies is governed by Consent Mode v2.

What browsers allow today

Independently of the law, browsers restrict cookies themselves:

  • Safari blocks third-party cookies completely. First-party cookies set via JavaScript expire after seven days at most, and in some cases after just 24 hours.
  • Since 2022, Firefox has confined cookies to a separate storage area for each website by default. A cookie set on one site cannot be read on other sites.
  • Chrome still allows third-party cookies. Google cancelled its long-announced phase-out and, in October 2025, retired most of the Privacy Sandbox technologies intended as a replacement.

Ad blockers and privacy-focused browsers add to this. Third-party cookies therefore only reach some users, and even first-party cookies are shorter-lived in Safari than expected.

Third-party cookies and data protection

Third-party cookies are problematic from a data protection point of view because they make it possible to track users’ behaviour across many websites without users always being able to recognise or control this. Data protection laws such as the GDPR and the California Consumer Privacy Act (CCPA) therefore require transparency and control over one’s own data.

For businesses, this means that marketing that relies solely on third-party cookies loses reach and measurement accuracy. If you want to keep understanding and reaching your target groups, you need your own data and valid consent.

The importance of server-side tracking

With the restrictions on cookies, server-side tracking is coming into focus. Measurement data is first sent to your own server and passed on from there to analytics and advertising services. This server sets cookies as first-party cookies. In Safari they can remain valid longer than cookies set via JavaScript, but only if the tracking server technically belongs to the website. If Safari detects a third-party server behind the subdomain, it caps these cookies at seven days as well. Server-side tracking improves data quality and gives you control over which data third parties receive.

Important: server-side tracking also requires consent if information is stored on or read from the browser. Even without access to the device, processing personal data needs a legal basis under the GDPR, which for marketing purposes is usually consent. So the cookie banner is still needed. Server-side tracking makes measurement with consent more reliable. We explain the difference in our article client-side tracking vs. server-side tracking.

Best practices for handling cookies

  1. Transparency and consent: use a clear cookie banner in which users can decline as easily as they can accept. This builds trust and meets the legal requirements.
  2. Tie technology to consent: all tags may only set cookies after the relevant consent. A cookie and tracking switch helps with this, as does Consent Mode v2.
  3. Focus on first-party data: build on your own data rather than third-party cookies. It is more privacy-friendly and more accurate for your analysis.
  4. Consider server-side tracking: it makes measurement less dependent on browser restrictions and gives you control over the sharing of data.
  5. Follow changes in the law: keep up to date with changes in data protection law and adjust your banner and privacy policy.
  6. Regular checks: regularly check which cookies your website actually sets, before and after consent.


 Your next step 

Would you like your cookies, banner and tracking reviewed and adjusted?

Our page Consent management explains how we work. In an initial consultation, we clarify what makes sense for your website.


Request a consultation
 Frequently asked questions 

Cookies: the key questions

What is the difference between first-party and third-party cookies?

First-party cookies are set by the website you visit, third-party cookies by a third party whose content is embedded on the page. Third-party cookies are mainly used for tracking across several websites.

Do I need consent for every cookie?

No. Cookies that are strictly necessary for a service the user has explicitly requested, such as the shopping basket or login, are allowed without consent under section 25 TDDDG. In Germany, analytics and marketing cookies require consent.

Is Chrome getting rid of third-party cookies?

No. Google cancelled the planned phase-out and retired most of the Privacy Sandbox technologies in October 2025. Safari and Firefox, on the other hand, already restrict third-party cookies by default.

What is the TDDDG?

The Telecommunications Digital Services Data Protection Act governs, among other things, the use of cookies in Germany. Until May 2024 it was called the TTDSG. The cookie rule in section 25 is unchanged in substance.

 Request a consultation 

Questions about this topic?

Tell us briefly what it is about. You will speak directly to Ahmed Badia.
Microsoft Partner Badge
SISTRIX-zertifizierte Agentur
4.9
Based on 32 reviews

Reviews from our Google Business Profile. We check every review against our client projects.

Request a consultation
Ahmed Badia
Ahmed BadiaSenior Software Developer Team LeadCall: +49 228 243 313 54

* Required

Please enter your name.

Please enter a valid email address, e.g. name@company.com.

For a call back.

Please enter your number with area code, e.g. +49 228 243 313 53.

Please tell us briefly what it is about.

Free and without obligation. We usually reply on the same working day.

Information on how we process your data: Privacy policy