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

Does Google Analytics (Or Any Analytics) Track 301 Redirects?

Discussion in 'White Hat SEO' started by newyorkcity, Nov 9, 2012.

  1. newyorkcity

    newyorkcity Registered Member

    Joined:
    Apr 29, 2012
    Messages:
    69
    Likes Received:
    2
    I'm looking at google analytics after redirecting www to no-www and also changing the permalink structure in wordpress and I've noticed a drop in traffic. Most of the drop is from Direct traffic which is 63% while others are in the single digits.

    In the Visitor Flow section its showing 100% drop for some pages with the old permalink structure which was similar to
    Code:
    www.site.com/2012/06/06/article
    but if I visit the URL that is reported as 0 traffic today the redirect is fine and crawling the page with Screaming Frog its redirecting with a 301. When I check the Real Time section I see that users are also finding the page there fine.

    So is this because Google Analytics does not track redirects? Is there a way to?
     
  2. Endire

    Endire Elite Member Premium Member

    Joined:
    Mar 27, 2012
    Messages:
    1,756
    Likes Received:
    1,061
    Gender:
    Male
    newyorkcity,

    I can for sure say Google Analytics (and most likely other tracking software) does not track 301 redirects. Note that this is true for server-side redirects (301 or 302) because the browser never sees the redirecting domain. So if you get a visitor from a link in an SERP, the referrer will show up as that particular search engine. If it comes from another website, it will show up in reports as that site.

    This thread goes a little more in depth,

    http://productforums.google.com/forum/#!topic/analytics/KQ2RPsLR35Y

    Hope that helps,

    Shawn
     
  3. m4dm4n

    m4dm4n Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2010
    Messages:
    221
    Likes Received:
    92
    Occupation:
    /dev/full
    Location:
    /dev/urandom
    only serverside tracking can track 301 redirects ( that is tracking installed on the server hosting the code - or in the code itself ) the analytics code is inserted in the page after the 301 are processed and because of that, it can not track them
     
  4. newyorkcity

    newyorkcity Registered Member

    Joined:
    Apr 29, 2012
    Messages:
    69
    Likes Received:
    2
    thanks for the replies! Helps me out a lot!

    Is there any good serverside tracking I could use for wordpress to track the redirects?
     
  5. moneyfreak

    moneyfreak BANNED BANNED

    Joined:
    Oct 13, 2009
    Messages:
    162
    Likes Received:
    250
    GA cannot track 301 redirects. Use any cloaking plugin with WP to do the redirect. With that you can track the redirects.