Thursday, August 6, 2009

How do I track 301 Redirect in Google Analytics?



301 RedirectMy previous posts on Why 301 Redirect (Permanent Redirection) Is Important? and How to do 301 Redirect (Permanent Redirection)? explained about the importance of 301 redirection and the way to do 301 redirection in your site.

I received some mails from my visitors asking queries on how to track the 301 redirect using Google analytics. So I thought of explaining it in my new post.

We can track the visits from the 301 redirect landing on your domain in two ways.

Let us assume that you have redirected www.olddomain.com to www.newdomain.com using 301 redirect.

Using Campaign tracking code

In this method you have to use the campaign tracking code to the domain to which you are redirecting.Instead of redirecting www.olddomain.com to www.newdomain.com, you can redirect to www.newdomain.com/?utm_source=olddomain&utm_medium=referrer&utm_campaign=301redirect

When using this method, you can track the visits from www.olddomain.com at Traffic Sources >> Campaigns

Using Javascript:

In this method you can place your Google Analytics code in www.olddomain.com just before the redirect script. Make sure your redirect script should have atleast 1 second time delay for the analytics code to work.

When using this method, you can track the visits from www.olddomain.com at Content >> Top Content

I believe my posts on 301 redirection would have explained about the insights of 301 redirect. If you have liked this post please subscribe to my blog feed to get my latest post updates.

If you find this post more useful then, Please

Subscribe to this Blog:

Click here to Subscribe to FREE email updates from "Internet Marketing Insights"

Stumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditAdd To FacebookAdd To Yahoo

People who read this post also read :





0 comments:

 

Creative Commons License

Blog directory Internet Marketing Insights - Blogged Internet Blogs - Blog Catalog Blog Directory