Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1001751
    Pedantas
    Participant

    Hello, I need to add this code to the top of the <BODY> tag of my landing pages:

    <!– Clickcease.com tracking–>
    <!–googleoff: all–>
    <script type=”text/javascript”>
    var script = document.createElement(“script”);
    script.async = true;
    script.type = “text/javascript”;
    var target = ‘https://clickcease.com/monitor/stat.js&#8217;;
    script.src = target;
    var elem = document.head;
    elem.appendChild(script);
    </script>
    <noscript>
    <img src=”https://monitor.clickcease.com/stats/stats.aspx&#8221;
    alt=”Click Fraud Protection”/>
    </noscript>
    <!–googleon: all–>
    <!– Clickcease.com tracking–>

    How to do it? 🙂

    #1002218
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Then add the code below on your child theme’s functions.php file.

    add_action( 'x_before_site_begin', 'x_print_clickcease' );
    function x_print_clickcease(){
      ?>
    
    <!– Clickcease.com tracking–>
    <!–googleoff: all–>
    <script type="text/javascript">
    var script = document.createElement("script");
    script.async = true;
    script.type = "text/javascript";
    var target = 'https://clickcease.com/monitor/stat.js';
    script.src = target;
    var elem = document.head;
    elem.appendChild(script);
    </script>
    <noscript>
    <img src="https://monitor.clickcease.com/stats/stats.aspx"
    alt="Click Fraud Protection"/>
    </noscript>
    <!–googleon: all–>
    <!– Clickcease.com tracking–>
    
      <?php
    }

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1001751 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>