Google Consent Mode v2 Implementation

If you use legacy tags, such as ga.js, analytics.js, or conversion.js, update to gtag.js or Google Tag Manager

2.1. General Dialog Setup
  • TCF Mode (Sites with Advertising). Required for sites using advertising services like Clickio or Google AdSense. This mode ensures compliance with the Transparency and Consent Framework, managing user data in line with advertising requirements.
  • Non-TCF Mode (Sites with no Advertising). For sites that do not serve ads and do not require adherence to the TCF. Enjoy simplified purposes and descriptions for user consent, streamlining compliance without the complexities of advertising regulations.

The default text disclosures and Google vendor settings in both the TCF and Non-TCF modes are designed to comply with Google Consent Mode requirements, and we recommend to use them. If you opt to customise these settings, ensure that the following requirements are met:

  • The initial disclosure text explains that the  data is collected for the purpose of personalizing and measuring the effectiveness of advertising.
  • Google is added as a vendor and its privacy policy URL is set as https://business.safety.google/privacy/.

image-1715337553165.png

3. Install Clickio Consent Main Tag and set default Consent Mode Config

You can install the Clickio Consent tag and the default Consent Mode config in two ways:

Both options are described below.

3.1. Option 1 - Using Google Tag Manager
3.1.1. Install Clickio Consent Template in Google Tag Manager

Access the Google Tag Manager Account

  1. Log in to GTM: Go to Google Tag Manager and log in to your account.
  2. Select a Container: Choose the relevant container for the website where you want to manage consent.

Install the Clickio Consent Template

  1. Navigate to Templates: In the left sidebar, click on "Templates" to open the template management section.

  2. Explore the Community Gallery: Click on the “Search Gallery” button under the "Tag Templates" section to open the GTM Community Template Gallery.

  3. Find the Clickio Consent Template: Use the search bar to find "Clickio Consent" in the gallery. Once you find it, click on the template.

  4. Add the Template: Click on the “Add to Workspace” button to add the template to your GTM container.

  5. Review and Approve: Review the permissions and potential risks associated with the template, then click on "Add" to approve and install it.

image-1715338593398.png

Create a Tag Using the Template

  1. Create a New Tag: Go to the “Tags” section in your container and click on “New” to create a new tag.

  2. Select the Clickio Consent Template:

    • Click on “Tag Configuration” and select “Clickio Consent” from the list of available tag templates.
    • Change tag name from "Untitled Tag" to “Clickio Consent”
  3. Set Up the Trigger:
        • In the same tag configuration window, click on “Triggering” and choose an existing internal trigger "Consent Initialization - All Pages" or create a new trigger based on the "Consent initialization" event type.
        • Please do not use triggers based on the "Page View" or "Initialization" event types. Read more about Page View triggers.
  4. Save the Tag: Save the tag after selecting the appropriate trigger.

image-1715340267123.png

3.1.2. Enable Clickio CMP Main Code 

Please skip this step if you have already installed the main code directly

You can also install the main code directly and use the GTM template to manage the default config only

  1. Access the Template: Go to the "Tags" section within your GTM container, then click the previously created "Clickio Consent" tag.

  2. Enable Clickio CMP:

    • Check the box labeled "Enable Clickio CMP" to automatically include the Clickio CMP code on your page.

      image-1715340480152.png

    • Enter your Clickio Site ID. You can find the Site ID in the Clickio platform under "Consent > yoursite.com > Implementation > Google Tag Manager".

      image-1718377133869.png

  3. Save the Tag: Once configured, save your tag by clicking "Save".

    In the Google Tag Manager (GTM) template settings for Clickio Consent, you can configure Google Consent Mode v2. This section provides you with the flexibility to set up default consent states and update them based on prior user choices. The template includes several parameters that allow you to adjust consent scope, apply region-specific settings, and more.

    image-1715340578570.png

    This option functions correctly only when the 'Enable Consent Mode support' feature is activated in the Clickio Consent settings UI.

    Make sure this setting matches the equivalent setting in the "Consent > yoursite.com > Settings > Consent Scope" section of Clickio Platform to avoid any conflicts.

    • Wait for update (ms): This setting determines how long, in milliseconds, the Google tags should wait before attempting to update the user's consent state. This delay provides a buffer to ensure that any necessary consent changes are effectively captured, helping maintain alignment with user preferences. Read more.
    • Redact ads data: This checkbox allows you to redact ad click identifiers sent in network requests by Google Ads and Floodlight tags when ad storage is denied. Read more.
    • Enable URL Passthrough: This checkbox enables ad click, client ID, and session ID information to be passed through in URLs. Read more
    • Default Consent State Overrides: This parameter table allows you to specify alternative default consent states for specific regions using ISO-3166-1 alpha-2 codes. It also allows you to define a general default consent state for all users not covered by specific region-based settings. The table includes columns for the following:
      • Region (leave blank for universal default): Specify the region for the consent override using ISO-3166-1 alpha-2 codes. You can include multiple countries, separated by commas, such as ES, GB. Leave blank to apply rule as universal default. 
      • Functional (functionality_storage): Enables storage for the website or app's functionality, such as language settings.
      • Personalization (personalization_storage): Enables storage related to personalization, such as video recommendations.
      • Analytics (analytics_storage): Enables storage related to analytics, such as visit duration.
      • Security (security_storage): Enables storage related to security, such as authentication and fraud prevention.
      • Ad Storage (ad_storage): Enables storage related to advertising.
      • Ad User Data (ad_user_data): Sets consent for sending user data to Google for online advertising.
      • Ad Personalization (ad_personalization): Sets consent for personalized advertising.

    If you are implementing custom Default Consent State Overrides, please contact Clickio support to ensure these are supported in your instance of Clickio Consent; otherwise, they may be overwritten during Clickio CMP initialization.

    Once configured, save your tag by clicking "Save".

    3.1.4. Publish Changes
    1. Submit the Container: After configuring your tag, click "Submit" in the top right corner of the GTM interface.

      image-1715340913951.png

    2. Describe Your Changes: Add a description of your changes for future reference, then click "Publish".

    image-1715341011631.png

    3.2. Option 2 - On-page Code
    3.2.1. Clickio CMP main code and Default Consent Mode config

    The Clickio CMP main code and Default Consent Mode config can also be installed directly on the page. You can get codes in "Consent > yoursite.com > Implementation > Install Clickio Consent" section of Clickio Platform.

    image-1718377561841.png

    Place this script to the head tag of your website.

    3.2.2. Review order of the on-page scripts

    Please ensure that all your on-page code snippets placed strictly in this order:

    3.3. Install using a CMS Plugin

    In addition to plugins, we also offer detailed instructions on how to install Clickio Consent in a number of other CMS and site/shop providers.

    4. Consent Mode: Advanced vs Basic implementation

    For more information, please refer to the Google documentation.

    5.1. TCF Mode

    Required for sites using advertising services like Clickio or Google AdSense. This mode ensures compliance with the Transparency and Consent Framework, managing user data in line with advertising requirements.

    In TCF Mode, Clickio CMP aligns Consent Mode flags with the Transparency & Consent Framework, which allows for comprehensive control over user consent and preferences.

    TCF Purpose ID TCF Purpose Name Clickio CMP behaviour when Purpose is denied Google tag behavior when Purpose is denied and "Allow Consent Mode to read TCF signals" enabled
    1 Store and/or access information on a device functionality_storage = denied
    personalization_storage = denied
    security_storage = denied
    ad_storage = denied
    ad_user_data = denied
    ad_storage = denied
    ad_user_data = denied
    3 Create profiles for personalised advertising ad_personalization = denied ad_personalization = denied
    4 Use profiles to select personalised advertising ad_personalization = denied ad_personalization = denied
    5 Create profiles to personalise content personalization_storage = denied  
    6 Use profiles to select personalised content personalization_storage = denied  
    7 Measure advertising performance ad_user_data = denied ad_user_data = denied

    Disables the Google signals feature in Google Analytics (for web tags only).
    8 Measure content performance analytics_storage = denied  
    9 Understand audiences through statistics or combinations of data from different sources analytics_storage = denied Disables the Google signals feature in Google Analytics (for web tags only).
    10 Develop and improve services   Disables the Google signals feature in Google Analytics (for web tags only).

    image-1718205869479.png

    5.2. Non-TCF Mode

    For sites that do not serve ads and do not require adherence to the TCF. Enjoy simplified purposes and descriptions for user consent, streamlining compliance without the complexities of advertising regulations.

    In Non-TCF Mode, Clickio CMP offers a set of non-TCF purposes specifically designed for websites that don't showing ads and don't require full TCF compliance. These simplified purposes also align with specific Consent Mode flags. 

    ID Clickio non-TCF Purpose Clickio CMP behaviour when Purpose is denied
    1 Functionality (Strictly Necessary)  
    2 Website Analytics analytics_storage = denied
    3 Additional Functionality functionality_storage = denied
    4 Content Personalization personalization_storage = denied
    5 Security & Fraud Prevention security_storage = denied
    6 Personalizing and measuring the effectiveness of advertising ad_storage = denied
    ad_user_data = denied
    ad_personalization = denied
    5.3. How to Modify Mapping?

    If you need to modify mapping or configure more advanced settings, contact Clickio support for assistance. They can help you align your Consent Mode configuration with your specific needs and regulatory requirements.

    For detailed steps on how to verify your implementation, please refer to our guide on How to Check Your Google Consent Mode v2 Implementation. This will ensure that your setup is correctly configured and functioning as expected.

    We offer support and troubleshooting options to Clickio Consent clients. Please reach out to the support team in the platform, email support@clickio.com or contact your account manager (personal account management is available to Enterprise clients and Clickio monetization publishers).

    If you encounter Consent Mode implementation issues, you should first contact Clickio support, before contacting Google.

    7.1 Submitting a support request in Clickio Platform

    image-1732109394866.png

    1. Login to the Platform
    2. Navigate to "Help" section
    3. Choose "Category: Consent Mode" 
    4. Describe your issue and click Send

    We will get back to you within the response time period specified for your product plan.