Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I moved my downloadable files to amazon s3 and used that link from my wordpress site. I realized that if I use amazon link, google analytics wont be able to track all the files. correct? whats the easiest way to make a redirection to use a url pointed to my domain and redirects to amazon link when user clicks on it?

share|improve this question
up vote 0 down vote accepted

You are correct but also incorrect at the same time.


If people are hotlinking to the file, i.e not visiting your site first then the GA will not be loaded therefor it will not be tracked.

Page Visit Downloads

If they visit your page and then click a download button for example this event will be tracked no problem regardless if it includes an external file.

Hotlinking Prevention

The question how do I prevent hotlinking on Amazon S3 has been asked a few times and I suggest you dig around on the net if you want to prevent hotlinking, personally I don't bother. I can see the stats of my downloads from the S3 without GA.

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.