Pausing Google Tag Manager tags

  1. Place this code in <head></head> section of the site, after our Consent Tool line and before GTM script:
(window.__lxG__consent__ = window.__lxG__consent__ || {}).consentCallback = function (state) {
if (state !== -1) {(window.dataLayer = window.dataLayer || []).push({'event': 'consentReady'});}};
  1. Create a custom event trigger with Event name "consentReady": img01.png

  2. Add a new trigger in "Triggering" section of the tag: img02.png

Read more about custom event triggers in Google Tag manager.

Back to top