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.

Analytics Code

Discussion in 'Google Analytics' started by LastDrop, Oct 31, 2010.

  1. #1
    Hi friends. ı registered for Analytics. I read there that I must copy and past the code before </head> tag in my web page ! Will I past this code to theme which I used ? And which file? Index.php or what ?
     
    LastDrop, Oct 31, 2010 IP
  2. sawmynaden

    sawmynaden Peon

    Messages:
    201
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Depends how your website's been developed. Usually, you would want the tracking code to be in all your pages.
     
    sawmynaden, Oct 31, 2010 IP
  3. LastDrop

    LastDrop Active Member

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    50
    #3
    Thank you sawmynaden. My site is Wordpress. I copied and pasted the code to footer.php. Is it ok ?
     
    LastDrop, Nov 1, 2010 IP
  4. sawmynaden

    sawmynaden Peon

    Messages:
    201
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No prob. Wordpress should have a file called header.php. It's better if you paste the code in there.
     
    sawmynaden, Nov 1, 2010 IP
  5. LastDrop

    LastDrop Active Member

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    50
    #5
    Ok thanks a lot again. I changed the file and pasted the code for header.php now...
     
    LastDrop, Nov 1, 2010 IP
  6. sydneysuperyacht

    sydneysuperyacht Peon

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    as i know, I will put google analytics code above the </body> tag...
     
    sydneysuperyacht, Nov 1, 2010 IP
  7. infoman66

    infoman66 Peon

    Messages:
    58
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I agree sydneysuperyacht... It is good practise to put javascript code to the end of content, before </body> tag... (It is good from angle of SEO (page speed response, and for analytic result - track only full page load)...
     
    infoman66, Nov 4, 2010 IP
  8. Revasmith

    Revasmith Guest

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah you are right....Its really simple....you have to paste your code before closing the body tag.
     
    Revasmith, Nov 8, 2010 IP