1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

google analytics code

Discussion in 'Google Analytics' started by sudhakararaog, Dec 23, 2009.

  1. #1
    is it a good idea to place the google analytics javascript code at the very bottom of the page just before

    </body>

    or should it be within the <head> and </head>
     
    sudhakararaog, Dec 23, 2009 IP
  2. Blasingame

    Blasingame Peon

    Messages:
    761
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is you site based on true html or php w/html

    More then likely php w/html... if so add the script outside the php code
     
    Blasingame, Dec 23, 2009 IP
  3. newlogo

    newlogo Peon

    Messages:
    3,932
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    google anlytic code always should be at bottom of page so all click will cover before </body> tag
     
    newlogo, Dec 23, 2009 IP
  4. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #4
    From Google:

    We generally recommend that you place the Google Analytics tracking code immediately before the closing </body> tag of your pages in order to avoid any issues with page loading delays for visitors with slow connection speeds. However, there are several situations where it might make more sense for you to install the code in the head:

    * When using frames
    * If your pages call _link or _linkByPost
    * If you're using custom JavaScript functions that may conflict with the ga.js file

    http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55574
     
    explorer, Dec 24, 2009 IP
  5. cecille20

    cecille20 Peon

    Messages:
    414
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Its is better to follow what Google Analytics instructions.
     
    cecille20, Dec 24, 2009 IP
  6. mastersync

    mastersync Peon

    Messages:
    158
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    place it before </body> on footer according to analytic instructions
     
    mastersync, Dec 25, 2009 IP