Google Tag Manager Community templates by CookieScript

How to use Google Tag Manager Community templates by CookieScript?

Written by NelsonLast update 3 months ago

We have designed two Google Tag Manager community templates that will help you to deploy and configure CookieScript in GTM easily. 

Tag template

This template should be used to deploy a CookieScript banner code. No coding is required in this case, all you need to do is to enter your banner code URL and the Tag template will do the rest for you. 

Important: Tag template comes with built-in integration for Google Consent Mode, so if you do not want to use the consent mode, do not use the template, but add the banner as a custom HTML code. 

You will find all the info in the Instructions to deploy the CookieScript banner in Google Tag Manager

Variable template

Google Tag Manager Consent State Variable template is designed for easier configuration of Tags. The Template does not have any settings, it just allows you to create a User-Defined variable that can later be used to read the current user consent state. This is useful when you want to fire a Tag on a click (or some other event), but need to be sure that the user accepted certain Cookie Categories. 

Instructions for how to use the Consent State Variable can be found in the Consent State Variable setup guide.

Note: Variable returns the value of the consent for the Cookie Categories used in the Cookie Banner (Performance, Targeting, etc.). If you want to fire tags depending on the built-in Google Consent Mode, follow the guide for Google Consent Mode implementation instead.

Did this answer your question?