My domain foo.com redirects (via a permanent 301) to bar.com. I want to know how many visitors to bar.com come from having first visited foo.com. I'm using Woopra - originally, I thought the referrer would be foo.com, but it turns out that this is not the case. I'm fine with writing custom JS if that is required, but I have a pretty user friendly hosting account, which means that I can't really fiddle with Apache or whatever to log the redirects.Is there a way to do this?
How can I find the number of users who visit my site via a redirect?
redirects;analytics;301 redirect
With a correctly done 301 redirect, as you've noticed, the referred will be the original referer, not the directed URL (foo.com in your example).You should be able to see the 301 redirects to bar.com in the log files for your foo.com site.If for some reason you can see the log files for your foo.com web server, then you could track them using Google Analytics.In the 301 redirect, add campaign tracking variables to the bar.com URL you are redirecting to, including foo (or whatever you fancy) as the campaign or source. Note that this will, of course, overwrite any earlier source attribution.Make sure though that bar.com has canonical URLs in the head of it's pages, to avoid any problems of duplicate content.