Google Analytics

Discussion in 'BusinessGrow One Page WordPress Theme' started by rsjhunter, Nov 24, 2013.

  1. rsjhunter

    rsjhunter Member

    Joined:
    Nov 20, 2013
    Messages:
    43
    Likes Received:
    0
    I got this code from google analytics - where would i past it on a page?

    <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-45952796-1', 'zerochlorine.com');
    ga('send', 'pageview');


    </script>




    Any more tips for bring people to my website?
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to
    Appearance > Theme Option > General Settings > Tracking Code
    and paste your tracking code there.
     
  3. rsjhunter

    rsjhunter Member

    Joined:
    Nov 20, 2013
    Messages:
    43
    Likes Received:
    0
    how can i paste to all pages. Got it on the theme option page as suggested above
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    If we add GA code in
    Theme option > General settings > Google tracking code, Then theme will automatically place it just above </head> tag.
    But because of some reason, if it is not working at your site then you can manually add GA code in the header.php.
    For it Go to the
    Appearance > Editor > header.php and place code just above </head> tag.
    Check link given below for reference.
    https://support.google.com/analytics/answer/1008083?hl=en


    Note:- Theme sharing common header for all the pages.
     

Share This Page