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

How do I have to alter a Referral link to my website to specifically track it with Google Analytics? I already discovered the URL Builder but isn't there are shorter way?

For example:

  • http://domain.com?ref=special => easy to filter/track/view in Google Analytics

How are you doing this?

share|improve this question
up vote 4 down vote accepted

You can create your own URL using the URL builder (or your own flavor of it if you want the whole thing to be automated) and then assign it to an affiliate ID and store it in a database. Then whenever that affiliate ID is used redirect to the URL with the Google Analytics code in it. That's how my clients are doing it. It works like a charm.

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.