• Resolved atomicdev

    (@atomicdev)


    Hi,

    I just want to make sure I got this right…

    Where it says “The below script will be added to the page if user enables this cookie.”

    So say I’m using this for Analytics, I add this right?

    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’https://www.google-analytics.com/analytics.js&#8217;,’ga’);
    ga(‘create’, ‘UA-#######-1’, ‘auto’);
    ga(‘send’, ‘pageview’);
    </script>

    Is that correct?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Script snippet’ is closed to new replies.