1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about G Analytics

Discussion in 'White Hat SEO' started by JasonG, Jan 17, 2011.

  1. JasonG

    JasonG Regular Member

    Joined:
    May 28, 2009
    Messages:
    321
    Likes Received:
    92
    Occupation:
    Teacher, IM hobbyist
    So, I just threw up G analytics on my new site to track the visits and all of that, and I usually do that with my sites, however, this site is different. I usually make one page niche sites, and it tracks visits to that one page.

    My question - this site I am in the process of developing has about 90 sub pages... do I have to install the script on each page I put up or can I just put it on the home index.html and if someone clicks on a subpage from g**gle i.e. mainKW.C0M/SecondaryKW analytics will still log that as a visit to my site?

    I hope I am making myself clear.

    Thanks for the help BHW
     
  2. Nerevar

    Nerevar Jr. VIP Jr. VIP

    Joined:
    Jun 30, 2010
    Messages:
    426
    Likes Received:
    168
    If it's HTML you need to put it on every page you want to track. On the other hand if you're including footer with PHP you can just put it there once.
     
    • Thanks Thanks x 1
  3. goldsandhu

    goldsandhu Newbie

    Joined:
    Jan 7, 2011
    Messages:
    3
    Likes Received:
    0
    i have my site made in .aspx, now do i need to put code on all pages or only on homepage
     
  4. wpbacklinks

    wpbacklinks Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 27, 2010
    Messages:
    3,399
    Likes Received:
    1,339
    Gender:
    Male
    Occupation:
    Affiliate Marketer
    Location:
    Everywhere
    Nerevar right, if you are using wordpress, just place the GA code on footer.php
     
  5. exchageis

    exchageis Registered Member

    Joined:
    Apr 16, 2009
    Messages:
    98
    Likes Received:
    8
    Yes it will need to be put in every file if you are running a static site with seperate html files per page, but for your ASP site you have a common file such as a header or footer files that is shared/used on all of yoru pages then simply putting into this single file will be suffice.
     
  6. JasonG

    JasonG Regular Member

    Joined:
    May 28, 2009
    Messages:
    321
    Likes Received:
    92
    Occupation:
    Teacher, IM hobbyist
    I use xsitepro to make all my sites... I'm not that proficient in site building so that has suited my needs perfectly. Not sure where to put the code, right now it's in the Head area... lol I think that should work according to exhageis.
     
  7. Damsa

    Damsa Registered Member

    Joined:
    Jul 26, 2010
    Messages:
    71
    Likes Received:
    11
    You have to put it on all page you want to track.