Tagged: x
-
AuthorPosts
-
May 20, 2016 at 11:31 am #1001751
PedantasParticipantHello, 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’;
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–>How to do it? 🙂
May 20, 2016 at 6:03 pm #1002218
FriechModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1001751 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
