Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #729269

    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

    #729667

    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

    • This reply was modified 7 years, 10 months ago by Yigit.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.