Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1090814
    VIN123
    Participant

    Hello,

    I would like instructions for placing my analytic’s code in footer for all pages. I added a plug in ( header and Footer ) but I think its slowing my site down. Could you please give me instructions and code for placing my analytic’s please?

    Thank You

    #1090815
    VIN123
    Participant
    This reply has been marked as private.
    #1090827
    Rahul
    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. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

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

    function google_analytics_footer_output() { 
      
    /*Place your Google Analytics Code here*/
    
      }
    add_action( 'wp_footer', 'google_analytics_footer_output', 30 ); ?>

    Hope it helps, Cheers!

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