Pandectes GDPR Compliance tag template for the Google Tag Manager
Shopify stores using Google Tag Manager (GTM) can take advantage of the Google Consent Mode and make it play with the banner of the Pandectes GDPR Compliance by following these step-by-step instructions. We assume that you have already created a GTM account, created a website container in GTM, and added the GTM container snippet to your storeβs theme as required.
https://support.google.com/tagmanager/
1. Loading the template in the GTM
First, navigate to the βTemplatesβ section of the Tag Manager container. Under the βTag Templatesβ, click on the βSearch Galleryβ button.
Search for the βPandectes GDPR Compliance by Pandectesβ tag template, click on the result and then click on the button βAdd to workspaceβ. The tag template will require the following permissions which are needed by the code inside the template to execute:
- Accesses consent state
- Accesses global variables
- Reads cookie value(s)
- Writes to the data layer
Once you review the permissions, click on the βAddβ button to load the template under your containerβs templates.
2. Create the tag and configure the trigger.
Navigate to the βTagsβ section of your Tag Manager container. Click on the βNewβ button to add a new tag. In the popup that opens, click anywhere on the βTag Configurationβ box where it says βChoose a tag type to begin setupβ. Then search for or locate the βPandectes GDPR Compliance by Pandectesβ tag and you will be presented with the following options:
Depending on your cookies policy, set the storage categories to the proper value. If you want all storage categories to start as blocked when the page loads, select βDeniedβ in the drop-down menus.
To learn more about consent configuration for the Google Tag Manager read this article.
https://support.google.com/tagmanager/answer/10718549?hl=en
Go on and set the βRedact Ads Dataβ and βURL Passthroughβ according to your needs.
Once the tag has been configured, you have to configure when it is triggered. Click on the βTriggeringβ box right below and select the βConsent Initialization β All Pagesβ trigger. Click on the βAddβ button to enable the trigger.
Once the triggers are also setup click on the βSaveβ button to load the tag. On the popup that prompts you to rename the tag, click on the βSaveβ button.
The new tag should now display under your βTagsβ list.
3. Submit the changes
Click on the βSubmitβ button to save the changes in your GTM container and then on the βPublishβ button to activate the tag on the store.
You have now completed all the steps to load the Pandectes GDPR Compliance tag on your container.