Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1201061
    cece101
    Participant

    Hello. I want to add analytics tracking code to all pages:

    http://www.leadformix.com/bf/index.php?module=WebsiteRegistration&action=install&verifyId=f7d04c5eb37e45d4914c5a9798185cb6&siteId=7925

    what is the best way to do this? Thanks!

    website – buildmywordpresswebsite.com

    #1201192
    Jade
    Moderator

    Hi there,

    You may add this code in the functions.php in the child theme:

    add_action ('wp_head', 'my_script', 9999);
    
    function my_script () {
    ?>
    <!-- LeadFormix -->
    <script type="text/javascript">
    var pkBaseURL = (("https:" == document.location.protocol) ? "https://vlog.leadformix.com/" : "http://vlog.leadformix.com/");
    <!--
    bf_action_name = '';
    bf_idsite = 7925;
    bf_url = pkBaseURL+'bf/bf.php';
    (function() {
        var lfh = document.createElement('script'); lfh.type = 'text/javascript'; lfh.async = true;
        lfh.src = pkBaseURL+'bf/lfx.js';
        var s = document.getElementsByTagName('head')[0]; s.appendChild(lfh);
      })();
    //-->
    </script>
    <!-- /LeadFormix -->
    
    <?php
    }

    Hope this helps.

    #1205502
    cece101
    Participant

    ok. done. i will let you know if i have any problems. Thanks.

    #1205529
    Prasant Rai
    Moderator

    Sure, let us know how it goes.

    Thanks.

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