Integration with Google Tag Manager - Official Pandectes Template
The Pandectes GDPR compliance app offers an official template in Google Tag Manager to integrate the cookie consent banner with it. This allows you to handle Google Consent Mode V2 inside the Google Tag Manager and manage your tags to run according to user consent.
### Prerequisites
You need to have the cookie banner active.
You need to have connected your GTM to your store, through theme.liquid.
You need to have the in-app integration with Google Consent Mode V2 disabled.
Go to GTM's templates, then click on Search Gallery.

Search for "Pandectes", and select the "Pandectes CMP (Consent Mode)"
Then click on "Add to Workspace"
And confirm, by clicking "Add"
You have now successfully added the template!
Go to the Tags, and create a new tag
Name it "Pandectes Consent". Click on "Tag Configuration" and select the "Pandectes CMP (Consent Mode)"
Leave all the options as-is - Then click on "Triggering"
For the trigger, select "Consent Initialization - All pages"
And the tag is ready! Now, we can assign consent categories to our other tags.
Open the tag that you would like to assign consent to.
Click on "Tag Configuration" then "Advanced Settings"
Select Consent Settings (BETA) and Choose the "Require additional consent for tag to fire". Then, click on "Add required consent"
From the dropdown, select the consent mode category that you want to assign to the tag, so that it fires when that category is accepted.
For your convenience, here is a table with the google consent mode Categories, corresponding to the Cookie banner Categories
For example, if we want the tag to fire when the Performance cookies are allowed, we would choose analytics_storage:

Save the new tag settings, and that's all! The tag will only fire whenever consent is given to it
This is a method to add a consent category to multiple tags - to save time.
Go to the Admin panel, and choose Container Settings

Make sure the Enable consent overview is selected:
Then, in your Tags, select the Shield Icon:
This will open the "Consent Overview" Panel. Choose the tags that you want to assign a consent category to, and click on the "Shield" Icon.
Assign consent just like we did before:

Video Guide
### Prerequisites
You need to have the cookie banner active.
You need to have connected your GTM to your store, through theme.liquid.
You need to have the in-app integration with Google Consent Mode V2 disabled.
Step 1: Adding template from gallery
Go to GTM's templates, then click on Search Gallery.

Search for "Pandectes", and select the "Pandectes CMP (Consent Mode)"



Step 2: Creating tag from template
Go to the Tags, and create a new tag




Step 3: Assign consent categories to your tags
Open the tag that you would like to assign consent to.






Save the new tag settings, and that's all! The tag will only fire whenever consent is given to it
OPTIONAL Pro tip - if you have many tags
This is a method to add a consent category to multiple tags - to save time.
Go to the Admin panel, and choose Container Settings

Make sure the Enable consent overview is selected:




Updated on: 26/03/2025
Thank you!