Will my method of navigation work with google analytics?

Discussion in 'Google Analytics' started by Tomas Sandven, Jun 23, 2010.

  1. #1
    I'm writing a CMS system in my free time, and I'm wondering about a few things concerning google. For instance, google analytics is a must in most web development projects. My CMS loads pages using a javascript function to fill the content div with content from a database via AJAX. It also changes the address to #pagename. Obviously the correct page content loads if the user pastes the #pagename link directly into the address field as well.

    I'm wondering if google analytics treats this method well, and works if i paste the google analytics script into the individual page contents, or had it run on link click. How would this turn out regarding tracking the hits on individual pages, and would google recognize the addresses with anchor suffixes even though content loads using Ajax? Thanks of someone could shed some light on this.

    I'm also wondering how this method of navigation would be treated by googlebot. I simply have no clue how this would look on google's search results. Any information on this would be helpful as well.

    Thanks for all replies
    --
    codemonkey
     
    Tomas Sandven, Jun 23, 2010 IP
  2. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #2
    analytics is javascript that you put in the head or the body of the page. if page reloads - it counts in as page impression regardless what url is. You will have to test whether different anchors going to show up in the analytics but I doubt, it is probably programmed to cut them off
     
    atxsurf, Jun 29, 2010 IP
  3. createdevelop

    createdevelop Well-Known Member

    Messages:
    267
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Probably the only solution is to test it out.

    However I think that having the analytics code on each page will result in it tracking the pageviews of each page themselves, ie exactly what you are looking for.
     
    createdevelop, Jun 30, 2010 IP