Tagged: footer
Hello,
What is the best way to insert this activecampaign tracking script into my footer?
<script type=”text/javascript”>
var trackcmp_email = ”;
var trackcmp = document.createElement(“script”);
trackcmp.async = true;
trackcmp.type = ‘text/javascript’;
trackcmp.src = ‘//trackcmp.net/visit?actid=25226940&e=’+encodeURIComponent(trackcmp_email)+’&r=’+encodeURIComponent(document.referrer)+’&u=’+encodeURIComponent(window.location.href);
var trackcmp_s = document.getElementsByTagName(“script”);
if (trackcmp_s.length) {
trackcmp_s[0].parentNode.appendChild(trackcmp);
} else {
var trackcmp_h = document.getElementsByTagName(“head”);
trackcmp_h.length && trackcmp_h[0].appendChild(trackcmp);
}
</script>
Thanks,
Eric
Hey Eric!
Please add following code to Functions.php file in Appearance > Editor
function my_custom_code(){
?>
<script>
jQuery(window).load(function(){
jQuery('#wrap_all a').removeAttr('title');
jQuery('#wrap_all img').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'my_custom_code');
Best regards,
Yigit