Skip to main content

Configuring Google Tag Manager tags to be consent aware

Comments

7 comments

  • Mads

    I dont think this guide is complete. The setup given above for "custom consent event trigger" will fire regardless of consent is given…

    Alternatively you can add the following listener for consent with i.e. GA4:

    Data Layer Variable (dlv - Usercentrics) name: Google Analytics 4
    Version 2
    Set Default Value: false

    Reference variable above in trigger with following…

    Custom Event - variable with event name: (consent_status.*)
    Check the box for “Use regex matching”
    Trigger fires on Some Custom Events:
    dlv - Usercentrics | contains | true

    I hope some people find this usefull.

    There is also a guide at this link that seems to fit:
    https://termageddon.freshdesk.com/support/solutions/articles/66000522404-google-s-basic-consent-mode-version-2-v2-instructions

    0
  • Richard van der Velde

    Hi Mads,

    Since we rely on consent mode we don't need anything other than the consent event.
    Essentially we're just waiting for Usercentrics CMP to announce that we know what a visitor has consented too and then allow the tag to assess whether it has permission to load using the additional consent settings on the tag.

    1
  • Mads

    Hi Richard.
    Thanks for clarifying. I find your articles very useful! =)

    0
  • ricou

    Hi,

    In the “Category based configuration” : 

    how to map the category “Marketing” with the “Select Require additional consent for tag to fire and select the appropriate storage category.” because Marketing is not allowed (as-storage, analytics_storage…).

    Thanks.
     

    0
  • Richard van der Velde

    Hi Ricou,

    Marketing is mapped to ad_storage.

    It just occurred to me that it might not be immediately obvious how the categories are mapped to the storage types.
    I'll add a little table to the article to show how categories are mapped to storage types.

    1
  • ricou

    thanks a lot !

    0
  • James Duffy

    I'm looking at the recent updates including mapping categories to googles consent modes but I don't see functionality_storage or personalization_storage being updated e.g.

    For the consent_status update I see:

    ```

    dataLayer.push({
     action: "onAcceptAllServices",
     event: "consent_status",
     type: "EXPLICIT",
     ucCategory: {marketing: true, functional: true, essential: true},


     gtm.uniqueEventId: 2595
    })

    ```

    So for above I clicked Allow All from the banner

    But within the tag manager debug I see everything has been granted except functionality_storage and personalization_storage is denied.

     

    0

Please sign in to leave a comment.