Google Analytics Tracking Code

Discussion in 'Woodpecker WordPress Business Theme' started by karenhong801, Feb 1, 2014.

  1. karenhong801

    karenhong801 New Member

    Joined:
    Jan 14, 2014
    Messages:
    1
    Likes Received:
    0
    When I paste the Google Analytics tracking code in the "Tracking Code" field under "General Settings", it's displaying in the upper left-hand corner of the page. (see attached screenshot). I've since removed it so it doesn't display. Any tips on how to make it not display?
     

    Attached Files:

  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    I think you are only adding UA number there. Add complete Google analytic code.
    It will work.
    Please check demo GA code given below for reference.

    Code:
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
     
      ga('create', 'UA-XXXXXX', 'ink.com');
      ga('send', 'pageview');
     
    </script>

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page