Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question
    
/?utm_source=foo.com&utm_medium=redirect&utm_campaign=301 This should do the trick ! –  HackToHell Jun 13 '11 at 6:45

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.