• Resolved Otta

    (@otta)


    Hi there,

    Is this a possible way to work with the script of google tag manager for the prior consent?

    <!– Google Tag Manager –>
    <script type=”text/plain” data-cookieconsent=”marketing”>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
    https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,’script’,’dataLayer’,’GTM-XYZ’);</script>
    <!– End Google Tag Manager –>

    Thank you

    • This topic was modified 6 years, 10 months ago by Otta.
    • This topic was modified 6 years, 10 months ago by Otta.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Google Tag Manager Prior Consent’ is closed to new replies.