Tracking Redirects with Google Analytics

I'm going to test out the advice found here:

http://www.seoracle.com/google-analytics-how-to-tutorial/analytics-redir...

on tracking redirects in Google Analytics.

I'm going to use the path redirect module to redirect a dummy page to this page with the info below tacked on:

www.yourdomain.com/redirected-page-name?utm_source=yoursource&utm_medium...

I'll write some more after I hook it up and see if it works....

Ok, I added the redirect using path redirect so that:

http://kristen.org/test-redirect

redirects to:

http://www.kristen.org/content/tracking-redirects-google-analytics?utm_s...

I went to it a few times but it's not showing up yet in Google Analytics. I'll see if I need to configure something on that end...

It may take some time to see anything according to this post: http://drupal.org/node/689264 though I'm not even seeing anything if I drill down. But, this is a new page, so maybe it will pick it up in a few hours.

Meanwhile, I'm going to try changing the campaign/etc to something else:

http://www.kristen.org/content/tracking-redirects-google-analytics?utm_s...

and see if this or the previous or both eventually show up.

Followup: (9/29/10) I was just prodded for the results of my testing. The campaigns *did* show up so just be patient. Here's what it looks like on the Google Analytics campaign screen:

Google Analytics Campaign with RedirectsGoogle Analytics Campaign with Redirects

Comments

fastest and easiest way

I solved the problem with javascript help. Wrote guide how to do it: http://pilotaz.blogspot.com/2013/06/tracking-redirects-with-google-analy...

Tracking redirects

I did the same test about 3 months ago as I was curious whether google would track the redirect in analytics. I started with the main site, but then it got too confusing because 1 sites analytics changed however the redirect numbers didnt change in line with the redirect. How did you go in the end?

Here's a good explanation of GA tracking 301 and 302 redirects

In case you didn't get things working, here is a rundown of how GA reacts to 301 and 302 redirects. Can be pretty confusing.

http://www.atlantaanalytics.com/practicing-web-analytics/how-does-google...

I wouldn't recommend adding parameters in the redirect rule - you may lose tracking of the original referrer, depending on how you do it. Good luck!

I'm a Speaker at DrupalCon Portland