Skip to content

Google Consent Mode

Konstantinos Pappas edited this page Mar 19, 2025 · 1 revision

Google tag

On the “Consent Mode” tab, you can enable Google Consent Mode v2 (GCM) and integrate with:

  • Google tag (gtag.js)
  • Google Tag Manager (GTM)

If you’re using Google tag, you can configure everything directly from the plugin’s settings page.

Google Tag Manager

If you’re using Google Tag Manager, you can get our Google Tag Manager template via the Community Template Gallery (or import it manually by downloading the template.tpl file from the GitHub repository).

Integrating with Google Tag Manager

Selecting Google Tag Manager (GTM) template as the Implementation will show a panel containing step-by-step directions that will guide you through:

  • Importing the Google Tag Manager template
  • Create a new tag
  • Configuring the Pressidium Cookie Consent tag

For your convenience, we’ve also included the steps here:

Adding the Google Tag Manager template

  1. Navigate to Google Tag Manager
  2. Select your workspace
  3. Navigate to the Templates tab
  4. Click Search Gallery, under the Tag Templates section
  5. Search for Pressidium Cookie Consent
  6. Select it and click Add to workspace

Alternatively, you can manually import the template by following these steps:

  1. Download the GTM custom template
  2. Navigate to Google Tag Manager
  3. Select your workspace
  4. Navigate to the Templates tab
  5. Click New, under the Tag Templates section
  6. Select the kebab menu (three dots) located in the top-right corner of the Template Editor
  7. Click Import
  8. Select the previously downloaded template.tpl file
  9. Click Save
  10. Close the Template Editor

Creating a new tag

Creating a new tag

  1. Navigate to Google Tag Manager
  2. Select your workspace
  3. Navigate to the Tags tab
  4. Click New to create a new tag
  5. Give the tag a name (e.g. Cookie Consent)
  6. Click Choose a tag type to begin setup, under Tag Configuration
  7. Select the Pressidium Cookie Consent template, under the Custom section
  8. Configure the tag as needed
  9. Click Choose a trigger to make this tag fire, under the Triggering section
  10. Select Consent Initialization - All Pages
  11. Click New to create a new trigger
  12. Click Save
  13. Click Submit to submit your changes

Configuring the Pressidium Cookie Consent tag

Configuring the Pressidium Cookie Consent tag

Important

You need to add at least one row under “Default consent states”. If you don’t want to set different consent states for different regions, you can add a single row and leave the “Regions” field blank.

  1. Navigate to Google Tag Manager

  2. Select your workspace

  3. Navigate to the Tags tab

  4. Select the previously created Cookie Consent tag

  5. Under the Tag Configuration section, you can configure the following settings:

    • Default consent states
    • Ads data redaction
    • URL passthrough

    Under Default consent states, click Add Row to add a new row for each region. For each row, you can set the regions as a comma-separated list of ISO 3166-2 codes (leave blank to have your selection apply to all regions) and the default consent state for each consent type

    If two rows are set with values for a region and subregion, the one with a more specific region will take effect. For example, if you have ad_storage set to true for US, and ad_storage set to false for US-CA, a visitor from California will have the more specific US-CA setting take effect. For this example, that would mean a visitor from California would have ad_storage set to false.

    Region Ad storage Behavior
    US true Applies to all US states except California
    US-CA false Applies to California
    Unspecified true Applies to all other regions
  6. Once you are done configuring the tag, click Submit to submit your changes

Clone this wiki locally