Google Analytics Setup

Discussion in 'Infoway WordPress Theme' started by molatin, May 21, 2013.

  1. molatin

    molatin Member

    Joined:
    Aug 11, 2012
    Messages:
    558
    Likes Received:
    19
    I have pasted my tracking code into the theme general options.

    I have also checked this page - https://support.google.com/analytics/answer/1008080?hl=en - as advised in another thread.

    That page states this:

    'Once you find the code snippet, copy and paste it into your web page, just before the closing </head> tag*. If your website uses templates to generate pages, enter it just before the closing </head> tag in the file that contains the <head> section. (Most websites re-use one file for common content, so it's likely that you won't have to place the code snippet on every single page of your website.)

    For the best performance across all browsers we suggest you position other scripts in your site in one of these ways:
    • before the tracking code snippet in the <head> section of your HTML
    • after both the tracking code snippet and all page content (e.g. at the bottom of the HTML body)'
    I have two questions:
    1) Does the theme insert the tracking code 'just before the closing </head> tag*' on each and every page on the site automatically?

    2) RE this:
    '...position other scripts in your site in one of these ways:
    • before the tracking code snippet in the <head> section of your HTML
    • after both the tracking code snippet and all page content (e.g. at the bottom of the HTML body)'
    Do I need to do this or anything else to ensure full analytics reporting?

    ALSO:

    I have just checked this page: https://support.google.com/analytics/answer/1032399
    'Checking Browser Source Code for Analytics Tracking'

    The website is not showing any trace of tracking code on any page.

    Please advise.


    Thank you.
     
  2. Nitesh

    Nitesh Support Staff

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

    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.

    It will work.
     

Share This Page