This article outlines settings in the Peppered Platform related to the integration with Google Tag Manager (GTM).
GTM & Consent levels
Visitors of your website can give different levels of consent through a cookie banner. This can be a third party cookiebanner, or when using the included Peppered Cookie banner.
The Peppered Cookie banner uses four Cookie consent levels:
- undefined: the user did not supply a level of consent
- default: only cookies required for the Peppered Platform website to function
- limited: some cookies are allowed, for embedded content and anonymous statistics
- all: all cookies, including ad-tracking etc. are allowed
Different consent levels can trigger different tools in the Google Tag Manager. To properly set-up consent levels, check out the article.
Setting up Google Tag Manager (GTM)
All Google Tag Manager settings are found in System > Control Panel > Marketing > Google Tag Manager.

- Google tag manager code Place your GTM code here
- Custom script source Place any other custom scripts here
- AdPage Pixel Domain When using AdPage server side tracking, insert the Pixel domain here. More information about Server side tagging
- Load Tag Manager always ”Yes” will load GTM directly, even when no consent has been given. More information below.
- Legacy datalayer When active, it uses an older version. Not suited for newer implementations.
- Hashed visitor email This is used for ad retargeting. This must be clearly explained in your cookie banner and will only come into effect if "all" consent is given when our cookie banner is used. When using a third party cookie banner, this data is always passed, as consent is handled elsewhere.
- Hashed full details This allows Google to create more complete user profiles. This must be clearly explained in your cookie banner and will only come into effect if "all" consent is given when our cookie banner is used. When using a third party cookie banner, this data is always passed, as consent is handled elsewhere.
Loading GTM
For Cookie consent levels 3 and 4 we always load the Google Tag Manager. The two levels can be differentiated in Tag Manager by using the Data Layer (version 2) variable "cookieConsent". It will have the value of either "limited" or "all".
Using triggers
If you want to add tags that require consent for "all" cookies, e.g. if you want to re-target, you will need to split your tags by trigger.
First, set up the variable by adding a new user-defined variable (type "data layer variable", name "cookie_consent", version "Version 2").
You can set a default value here to "limited" (since GTM does not work at all unless the consent level is "limited").
In Triggers, you will have to set up (at least) two triggers:
- Page Views with limited cookies
- Page Views with all cookies
The first (limited) can be used for all tags where the visitor remains anonymous. In most cases, basic Google Analytics and E-commerce tracking should fit this level of consent.
The second trigger can be used for all tags that go further than that, like Google Adwords.
Related articles
