• Resolved kaznim

    (@kaznim)


    Hi, I have script for traffic tracking from our local ad provider. I have that script in footer. How can i block that script before user agree with terms?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @kaznim,

    You could add it to the Script Center as a third-party script to load when consent is obtained (Complianz > Integrations > Script Center > “Add a third-party script”).

    Or manually, by adapting the <script></script> tags, so Complianz knows on which consent level to unblock it. The classes below work for Complianz 6.0 and upwards.

    // Functional
    <script type="text/javascript" data-category="functional"></script>
    // Preferences
    <script type="text/javascript" data-category="preferences"></script>
    // Statistics
    <script type="text/plain" data-category="statistics"></script>
    // Marketing
    <script type="text/plain" data-category="marketing"></script>

    Kind regards,
    Jarno

    Thread Starter kaznim

    (@kaznim)

    Hi @jarnovos

    Its working, thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block custom script before cookie agree’ is closed to new replies.