Helping people with computers... one answer at a time.

It's often very desirable to see what links people are clicking on. Redirection services can often provide that information.

Can I track what links people are clicking on, even if they go off my site?

You bet!

There are a class of services on the web that were originally intended to provide a way to replace an excessively long URL (Amazon.com book references are infamous for this) with a much shorter one. They do this by providing a redirection service ... you give the service a URL, and you get a token back. Then instead of linking to, or telling people about, the huge unreadable URL you started with, you give them a link to the service that includes the token. The user ends up at the same place as the big long ugly URL, without having to have even seen it, much less type it in.

Why am I talking about redirection when the question was about link tracking? Because some of these services will give you exactly what you're asking for - detailed reporting of the traffic going through those links of yours.

Newsletter publishers, by the way, get another benefit. Should the target of your link change, you've previously not had a way to correct all the now-broken links you've emailed out. Not so any more - simply go to the redirection service, and update the old token to it's new link, and everything is working once again.

If you're curious how this works, or if like me, you're a do-it-yourself kinda person, you can have a look at a simple CGI script that handles redirection - redir.pl. You'll have to add your own reporting and such, but it could be educational, and perhaps even useful in many instances.

Article C1830 - August 15, 2003

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Post a comment on "Can I track what links people are clicking on, even if they go off my site?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...