Google Analytical QUS

Discussion in 'Google Analytics' started by pradeep.onlineinfo, Jun 29, 2010.

  1. #1
    Hello All,
    Where should i upload my Google analytical code in my web site source code page.
    Under the head tags like:

    analytic code
    </head>

    OR

    Under closing body tag:

    analytic code
    </body>

    And also suggest me should i upload to my all web page or for only my home page?
     
    pradeep.onlineinfo, Jun 29, 2010 IP
  2. ROAR

    ROAR Well-Known Member Affiliate Manager

    Messages:
    1,869
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Put it an the bottom in front of </body>
     
    ROAR, Jun 29, 2010 IP
  3. ankurbatla

    ankurbatla Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Put your Google Analytic Tracking code any where under the <body> tag but it should be before closing of </body> , But the best practice say that you should put your GA Code just befoe </body> so that the GA Java Script Code will execute after the load of your page.
     
    ankurbatla, Jun 29, 2010 IP
  4. jeremyheckard

    jeremyheckard Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you're using Wordpress, like so many of us are, there are plugins that make it even easier =)
     
    jeremyheckard, Jun 29, 2010 IP
  5. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #5
    does wordpress allows to put it inside the <head></head>? Google suggests for the best performance to have analytics code the head, not in the body.
     
    atxsurf, Jun 29, 2010 IP
  6. Fleury75

    Fleury75 Peon

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Analytics works great in both areas. To put Analytics in the WP head you would have to edit core templates.
     
    Fleury75, Jul 15, 2010 IP
  7. pradeep.onlineinfo

    pradeep.onlineinfo Active Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #7
    pradeep.onlineinfo, Jul 15, 2010 IP
  8. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have put it before the </body> tag.
     
    KimiGermany, Jul 15, 2010 IP
  9. pradeep.onlineinfo

    pradeep.onlineinfo Active Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #9
    pradeep.onlineinfo, Jul 17, 2010 IP
  10. magda

    magda Notable Member

    Messages:
    5,197
    Likes Received:
    315
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Depending on what platform or cms your site is built on, it doesn't hugely matter as long as it's in the code of every page.
    Most people put it at the end of the body tag, so it only gets called up when the page has fully loaded, but there are specific occasions when it should go in the head tag - such as when you are adding a tracking code to an event and you want to be sure the first part of the GA code has loaded before the second part is called up
    And you DO need it on every page, unless it is being put in the template in which case it's automatically on every page.


    And don't be so rude and picky to people who are trying to help you. All the previous posters gave you correct answers.
     
    Last edited: Jul 17, 2010
    magda, Jul 17, 2010 IP
  11. pradeep.onlineinfo

    pradeep.onlineinfo Active Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #11
    Hello magda thx for the ans and very well explained, i m really apologize for all of them if they think that i m rude. I m sorry all of you

    i m not expert in seo, i am confused coz most of the person says b4 body and google article says b4 head that is y i was confused.

    I m apologize if i m wrong.

    I m sorry Magda
     
    Last edited: Jul 18, 2010
    pradeep.onlineinfo, Jul 18, 2010 IP
  12. seo Shruti

    seo Shruti Greenhorn

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #12
    Put your Google Analytics code before </body>. Include code in the pages you want to track.
     
    seo Shruti, Jul 19, 2010 IP
  13. seo.raj

    seo.raj Active Member

    Messages:
    273
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #13
    Now, Google have changed Analytic s code put before </head> tag. But if you can put it before</body> then also work analytic code.
     
    seo.raj, Jul 19, 2010 IP