Forum Moderators: phranque

Message Too Old, No Replies

Tracking apache redirects with google analytics

         

sdowns71

7:08 pm on Feb 11, 2011 (gmt 0)

10+ Year Member



Hello,

I'm trying to determine a way to ensure that my Google Analytics (GA) account is tracking my apache redirects.

Here is a sample rule I currently have in place.

RewriteRule ^/clients(/(.*))?$ /global/eng/pages/offerings/perspectives/manufacturer/ [L,R]

GA does not currently track this. How do I enable such tracking? Would it be a setting within GA or a config change on my server?

Thanks
Steve

g1smd

8:12 pm on Feb 11, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When any
example.com/clients/
URL is requested, your server immediately responds with a 302 redirect. No HTML page is served for the original URL request and hence no tracking can take place for that URL.

Be aware that your redirect is a 302 redirect.

Additionally, it promotes duplicate content because if a non-www URL is requested, user is redirected to another non-www URL. If a www URL is requested, user is redirected to a www URL.

The redirect should clarify the domain name being redirected to. Include it in the redirect target.