• Resolved jperksmower

    (@jperksmower)


    Hello,

    I am having an issue with the “Insert GTM compatibility code snippet in the active theme” section on this page: https://www.webtoffee.com/how-to-attain-gdpr-compliance-by-using-google-tag-manager/

    I am trying to use the following example code given on the page, but I receive an error “Uncaught TypeError: CLI.consent is undefined”:

    <script>
    function CookieLawInfo_Accept_Callback()
     {
     if (CLI.consent.analytics)
     {
     dataLayer.push({'event': 'cli_cookieconsent_analytics'});
     }
     }
    </script>

    Please help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jperksmower,

    Greetings from Webtoffee!

    The article you are referring to is from our premium version documentation. As such the mentioned filter will not be available in the free version. You cannot built a custom script blocker using a freed version plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘CLI.consent is undefined’ is closed to new replies.