Tagged: 

  • This topic contains 1 voice and has 0 replies.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32353

    paulmc
    Participant

    Hi,

    I use Statcounter for Web traffic analytics.

    This is the code they give you
    <!– Default Statcounter code –>
    <script type=”text/javascript”>
    var sc_project=xxxxxxxxx;
    var sc_invisible=x;
    var sc_security=”xxxxxxxx”;
    </script>
    <script type=”text/javascript” src=”https://www.statcounter.com/counter/counter.js” async></script>
    <noscript><div class=”statcounter”><a title=”Web Analytics
    Made Easy – StatCounter” href=”https://statcounter.com/”
    target=”_blank”><img class=”statcounter”
    src=”https://c.statcounter.com/xxxxxxxxx/x/xxxxxxxx/x/”
    alt=”Web Analytics Made Easy – StatCounter”></div></noscript>
    <!– End of Statcounter Code –>

    Not sure how to encapsulate in the code provided by dFactory
    if ( function_exists(‘cn_cookies_accepted’) && cn_cookies_accepted() ) {
    // Your third-party non functional code here
    }

    I clearly can’t put the <script> call to counter.js inside the conditional call and the noscript catch all will have to be ditched I guess.

    Any help?

    Thanks

    Paul

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.