Back to home

gdpr logo

Cookies Management
via TCF Modal (Ultimate GDPR Plugin)

Script loading based on User Cookie Preferences

Analytics Tag
Marketing Tag
Functional Tag

* Grey indicates an inactive tag.

* Green indicates a tag has been loaded.

Demonstration Overview

This demonstration illustrates how script loading can be managed through Google Tag Manager (GTM) based on user Cookie Preferences.

  • Script Control: This solution manages GTM tag activation rather than blocking cookies directly. Inactive tags result in their associated JavaScript scripts not executing, thus no cookies are created in the user’s browser.
  • This demonstration includes three GTM tags added in Google Tag Manager (GTM)
    1. Analytics Tag
    2. Marketing Tag
    3. Functional Tag
  • Google Consent mode communicates user choices to GTM, which may trigger specific tags based on tag setting: "Require additional consent for tag to fire"

Explore how these tags activate in accordance with the selections made in the Cookie Preferences tab of the TCF modal. Make your choice and observe the real-time results as the tags trigger, typically executing JavaScript on the page.

Additional note: This demonstration showcases 3 example tags. In your actual setup, you might use a variety of unique tags, such as Facebook Pixel, Google Analytics, Remarketing Pixels, Visitor Analytics, Hotjar, YouTube Video Views, Customer Engagement Beacons, and many more.


Plugin Configuration Details

- TCF 2.2 Integration: Enabled
- Google Consent Mode v2: Enabled
- Implementation of the Google Tag Manager (GTM) tracking code in the HEAD section of the webpage.

Example GTM Setup for Triggering tags based on consent

- Add a new GTM tag.
- Under Consent Settings (BETA), select "Require additional consent for tag to fire" and specify: analytics_storage.
- Set the trigger to "All Pages" or "ultimategdpr_tcf_consent_updated" (custom event).