-
Notifications
You must be signed in to change notification settings - Fork 15
Google Consent Mode

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.

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).
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:
- Navigate to Google Tag Manager
- Select your workspace
- Navigate to the Templates tab
- Click Search Gallery, under the Tag Templates section
- Search for Pressidium Cookie Consent
- Select it and click Add to workspace
Alternatively, you can manually import the template by following these steps:
- Download the GTM custom template
- Navigate to Google Tag Manager
- Select your workspace
- Navigate to the Templates tab
- Click New, under the Tag Templates section
- Select the kebab menu (three dots) located in the top-right corner of the Template Editor
- Click Import
- Select the previously downloaded
template.tplfile - Click Save
- Close the Template Editor

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

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.
-
Navigate to Google Tag Manager
-
Select your workspace
-
Navigate to the Tags tab
-
Select the previously created Cookie Consent tag
-
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_storageset totrueforUS, andad_storageset tofalseforUS-CA, a visitor from California will have the more specificUS-CAsetting take effect. For this example, that would mean a visitor from California would havead_storageset tofalse.Region Ad storage Behavior UStrueApplies to all US states except California US-CAfalseApplies to California Unspecified trueApplies to all other regions -
Once you are done configuring the tag, click Submit to submit your changes