Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

My domain redirects (via a permanent 301) to I want to know how many visitors to come from having first visited

I'm using Woopra - originally, I thought the referrer would be, 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
/? 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 ( in your example).

You should be able to see the 301 redirects to in the log files for your site.

If for some reason you can see the log files for your web server, then you could track them using Google Analytics.

In the 301 redirect, add campaign tracking variables to the 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 has canonical URLs in the head of it's pages, to avoid any problems of duplicate content.

share|improve this answer

Your Answer


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.