Cookie Consent Manager

GTM Integration

Premium feature.

For Google Tag Manager to react to consent decisions you need triggers, variables and tags in it. This page generates them as a ready-made container file — all you have to do is import it.

Generating the container

  1. Optionally enter the GA4 measurement ID and the Google Ads ID.
  2. Select what should be included: GA4 configuration tag, Google Ads conversion tag, Facebook pixel base code.
  3. Download container JSON.

The file contains triggers on the plugin's dataLayer events, variables for the accepted groups and the selected tags, which only fire when consent exists.

Importing into Google Tag Manager

  1. Google Tag Manager → Admin → Import Container
  2. Select the downloaded JSON file
  3. Choose a workspace and the import mode Merge
  4. Review tags, triggers and variables and publish the container

Choose Merge, not Overwrite — otherwise you lose your existing configuration.

Verifying afterwards

Start the GTM preview mode and walk through the storefront:

  • Before any decision no tracking tag may fire.
  • After Accept all, prems_cookie_consent_accepted and PremsCookieConsentUpdate appear in the dataLayer and the tags fire.
  • After Only necessary, prems_cookie_consent_rejected appears and the marketing tags stay silent.

Avoiding double tracking

If GTM already loads GA4, then Load gtag.js directly through the plugin must not be enabled in the plugin configuration and there must be no GA4 preset under Cookies & Scripts. Pick exactly one route — see Google Consent Mode & Tracking.