Pausing Google Tag Manager tags
Clickio Consent Tool doesn’t pause GTM tags by default. If you want to pause tags prior to the user's decision, follow the steps below.
Step 1
Place this code in <head></head>
section of the site, after our Consent Tool line and before GTM script:
<script>
(window.__lxG__consent__ = window.__lxG__consent__ || {}).consentCallback = function (state) {
if (state !== -1) {(window.dataLayer = window.dataLayer || []).push({'event': 'consentReady'});}};
</script>
Step 2
Create a custom event trigger with Event name "consentReady":
Step 3
Add a new trigger in the Triggering section of the tag:
Read more about custom event triggers in Google Tag Manager.