Introduction
Germany has some of the strictest rules in Europe when it comes to cookie consent and the processing of personal data. In 2023, a German administrative court issued a landmark ruling that directly impacts the use of Google Tag Manager (GTM) by website operators. The court decided that GTM requires explicit user consent before activation, reinforcing the obligations set out by the General Data Protection Regulation (GDPR) and Germany’s Telecommunications-Telemedia Data Protection Act (TTDSG).
Under GDPR and TTDSG, website owners must obtain prior user consent before placing or accessing any non-essential cookies on user devices. This includes marketing tags, tracking codes, and the use of analytics platforms like Google Analytics, when implemented through GTM. The decision makes it clear that even though Google Tag Manager is technically a free tool, its role in tag management systems and data processing operations is significant enough to trigger the strict rules around valid consent and data protection regulations.
For website operators, this ruling raises the stakes. A failure to obtain consent properly may lead to GDPR violations, complaints to the data protection authority, and substantial fines. Beyond legal compliance, the ruling emphasizes the central role of consent management platforms (CMPs) in enabling lawful data use and ensuring data protection information is communicated transparently.
Cookie Consent Requirements
Under TTDSG Section 25, explicit user consent is mandatory for storing or accessing any data on user devices, unless such actions are strictly necessary for providing the requested service. While some technical cookies may qualify for this exception, the court clarified that Google Tag Manager does not. GTM primarily supports website owners and tag management implementations, not the website visitor directly.
The German court also stressed that GTM involves processing personal data such as IP addresses, device configurations, and referrer URLs. Since these data points can be linked back to individuals, the processing must meet a lawful basis under GDPR Article 6. Without prior consent, the use of GTM constitutes unlawful data processing.
As a result, cookie banners and consent management solutions are no longer optional but essential. Consent banners must provide clear and easily accessible information about data collected, third-party providers, and the purposes of tracking tags. Only after a user has given voluntary consent should GTM or other third-party services be activated.
Consent Management Solutions
To comply with GDPR and TTDSG, many website operators now rely on consent management platforms (CMPs). These platforms are designed to handle consent states, opt-in preferences, and the ongoing consent management cycle.
A robust CMP offers features like:
- Customizable cookie banners with multi-language and geo-targeting capabilities.
- Integration with Google Consent Mode to ensure Google Tag behavior aligns with user consent.
- Secure storage of consent information for auditing and compliance purposes.
- Regular updates to match evolving privacy laws and GDPR article requirements.
Using a CMP, website owners can ensure that tracking codes and marketing tags only fire after receiving effective consent. More importantly, CMPs protect against dark patterns by making sure consent is truly voluntary and not manipulated through deceptive design. Regularly reviewing these implementations ensures continued legal compliance.

Data Protection and Processing
Under GDPR, any data processing operations involving personal data require a lawful basis. This includes collection, transmission, analysis, and storage. Since GTM can handle sensitive data collected from user behavior and user devices, its use without explicit user consent is a breach of GDPR compliant practices.
For example, GTM can transfer IP addresses, country information, and device settings to Google servers in the US or other third countries. Such data transfers raise additional challenges, as the European Union requires that cross-border transfers provide an equivalent level of data protection. Without proper consent, sending personal data to third-party providers outside the EU risks non-compliance.
Data protection authorities in Germany and across the European Union are actively monitoring these cases. They have the power to enforce legal requirements, issue warnings, and impose fines. This underscores the need for website operators to implement proper consent management before activating GTM or any analytics platforms.
Regulatory Oversight
The German data protection authority has already investigated companies for non-compliant Google Tag Manager usage. These enforcement actions highlight how closely regulators are watching the use of tag management systems and their impact on data protection regulations.
Authorities can impose penalties such as:
- Fines up to EUR 300,000 for TTDSG breaches.
- Restrictions on data processing operations until compliance is demonstrated.
- Reputational damage that undermines the business model of companies relying on user behavior tracking.
The administrative court’s ruling is more than just a German issue. It sets a precedent for other EU countries under the ePrivacy Directive and GDPR. Website operators across the European Union should take this as a warning to implement consent management correctly and avoid gdpr violations.
Avoiding GDPR Violations
To remain compliant, website operators must ensure that Google Tag Manager only runs after prior consent is given. If consent is denied, GTM and related tracking tags should not be activated at all. This avoids unlawful data processing and GDPR violations.
Some key steps include:
- Obtaining valid consent through transparent cookie banners.
- Respecting the user’s right to reject cookies or disable non-essential cookies.
- Avoiding dark patterns or deceptive banner designs.
- Regularly reviewing GTM configurations to ensure they don’t bypass consent mechanisms.
Failure to do so risks legal consequences. Proper consent is not just a technical requirement; it is also a legal compliance necessity and a way to build user trust.
Implementing Cookie Consent
Cookie banners are now a mandatory element of any website operating in Germany. These banners must provide data protection information, including what cookies are set, why they are used, and whether they involve third-party providers.
Best practices for cookie banner implementation include:
- Providing an opt-in/opt-out choice for each cookie category.
- Explaining clearly what data processing operations occur.
- Ensuring that rejecting cookies is as easy as accepting them.
- Allowing users to withdraw consent at any time.
By adopting these measures, website owners demonstrate respect for user consent while reducing the risk of legal requirements being breached.
Google Tag Manager and Cookie Consent
While Google Tag Manager itself does not set cookies directly (except in Preview and Debug mode), the tracking tags it deploys often do. This means that the GTM implementation requires proper consent before activation.
Key points for GTM and cookie consent include:
- GTM reads cookies and transfers data collected via the data layer, including user behavior information.
- Google servers may store cookies and transfer data to third countries, requiring user consent.
- Google Consent Mode can adapt how tags behave depending on consent states, ensuring gdpr compliance.
- Integrating GTM with a consent management platform ensures tracking codes only fire when consent has been given.
This technical integration helps balance business model needs with privacy laws.
Developer and Agency Solutions for German Cookie Consent Compliance
The recent German court ruling has major technical implications for developers and digital agencies managing Google Tag Manager (GTM) and related tag management systems. To ensure GDPR compliance and adapt to the stricter cookie consent rules, agencies must rethink how GTM and other scripts are implemented within the website code.
Here are the key actions developers can take:
- Block GTM until consent is given: GTM must remain inactive until the user provides explicit consent through the consent banner. This prevents tracking tags or marketing tags from firing prematurely.
- Load Google Analytics 4 outside GTM: If GA4 was previously deployed via GTM, it should now be loaded directly within the store (for example, embedded in the theme.liquid file or through a custom pixel). This ensures correct functionality with Google Consent Mode v2 (advanced mode).
- Separate strictly necessary services: Any scripts or third-party services deemed strictly required (e.g., essential payment or security integrations) should be implemented outside GTM. By placing them directly in the store code, they remain unaffected by the consent flow while still complying with GDPR.
- Implement Consent Mode correctly: With Google Consent Mode v2, businesses can control how tags behave based on consent states. Even if a user rejects non-essential cookies, aggregated data can still be modeled in compliance with privacy laws.
How Pandectes Makes This Easier
With the Pandectes Consent Management Platform, these adjustments become much simpler. Pandectes provides:
- Automatic blocking of Google Tag Manager until the user grants valid consent.
- Native support for implementing Google Consent Mode v2 (advanced mode).
- Options to move strictly necessary scripts outside GTM using store integrations (via theme.liquid or custom pixels).
- A streamlined interface for website owners and agencies to stay aligned with German cookie consent laws and broader European Union privacy laws.
In practice, Pandectes ensures that developers, agencies, and website operators can focus on their business model without worrying about misconfigured GTM implementation or non-compliant tracking codes.

Consent Management Best Practices
To comply with data protection regulations, organizations should follow these best practices:
- Load the consent management platform before the tag manager.
- Consider server-side tag management systems to limit client-side data processing before consent.
- Document any claims of technical necessity for specific cookies.
- Use privacy-friendly alternatives to reduce reliance on third-party services.
- Regularly review CMP and GTM configurations to maintain gdpr compliant status.
These steps reduce risks associated with processing personal data and strengthen legal compliance.
Cookie Consent and User Experience
While compliance is crucial, website operators must also consider the user experience. Overly complex or intrusive cookie banners can frustrate visitors and reduce engagement. At the same time, banners must not use dark patterns to manipulate user consent.
The GDPR requires that:
- Consent banners must be easily accessible and informative.
- Users should be able to revoke consent as easily as they gave it.
- Data protection information should be presented in plain language.
Balancing transparency with usability helps website owners maintain user trust, optimize consent rates, and ensure legal requirements are met.
Technical Implementation
Implementing a CMP with Google Tag Manager GTM requires technical expertise and careful planning. Website code must be configured so that GTM only fires after opt-in consent is provided.
Key technical considerations include:
- Choosing a specialized CMP provider (such as Pandectes or CCM19) for gdpr compliance.
- Running website scans to detect new cookies or scripts.
- Keeping the GTM container updated to avoid compliance gaps.
- Documenting how information is managed in stores and ensuring compliance with the ePrivacy Directive rules.
Done correctly, these steps ensure proper consent management and minimize exposure to gdpr violations.
Website Owner Responsibilities
The German court ruling makes it clear: website owners bear the full responsibility for consent management. They must:
- Implement cookie banners and consent management platforms.
- Respect users’ decisions to reject cookies.
- Regularly review and update consent solutions for ongoing compliance.
- Document all data processing operations and demonstrate adherence to privacy laws.
By doing so, they not only ensure legal compliance but also strengthen user trust.
Consequences of Non-Compliance
Non-compliance with GDPR and TTDSG can result in serious consequences, including:
- Fines up to EUR 300,000 for TTDSG violations.
- Even higher fines under GDPR article penalties.
- Investigations by the data protection authority.
- Loss of user trust and reputational damage.
These risks demonstrate why it is essential for website operators to prioritize effective consent management and avoid gdpr violations.
Benefits of Compliance
On the positive side, full compliance with GDPR and TTDSG offers important benefits:
- Increased user trust through transparency and data protection.
- Reduced legal risks and fewer chances of gdpr violations.
- A stronger business model that respects user consent.
- Competitive advantages in markets where privacy laws are valued.
By ensuring proper consent management, website owners can achieve both legal compliance and a better user experience.
Conclusion
The German court ruling on Google Tag Manager reinforces the necessity of explicit user consent before activation. For website operators, this means stricter obligations under GDPR and TTDSG, including the use of consent management platforms and cookie banners.
Maintaining compliance requires regular reviews, technical diligence in GTM implementation, and a strong focus on user consent. By embracing these practices β and leveraging solutions like Pandectes β website owners can avoid GDPR violations, protect personal data, and build lasting user trust.


