Forum Moderators: open
I just came across a page with this setup in its outbounds:
<a href="/content/link?www.domain.com/">
This almost feels like a newbie question, but I'm trying to figure out what's going on with the link?www.domain.com/ part. I'm sure it's simple. It kind of smells like a redirect to me.
They're using a script to redirect so that they can record the outgoing link you clicked on. A lot of sites are doing this as it's the only way to find out where your visitors go to when they exit your site.
Thanks. That's what it looked like, and it's precisely what I'm trying to avoid. For the record, here's why (a partial list):
Banner ad redirect-page indexed as mirror site by Google
[webmasterworld.com...]
Is using a redirect to track outward bound links bad?
[webmasterworld.com...]
Our company Lisiting is being redirected.
[webmasterworld.com...]
Google indexing redirect pages
How can I get google to stop indexing redirects?
[webmasterworld.com...]
<a href="/content/ <-- directory name
link <-- filename of redirect script
?www.domain.com/" <-- variable
>
For reference, if anyone needs to collect click rates but want to leave a clean link for the search engines, you should do something like:
<a href="http://www.google.com/" onclick="window.location.href='/redirect.cgi?id=12345';return false;">Google</a> OK, it won't count the clicks of users with JS disabled, but that includes all the search bots so it's often a good thing - it gives a better impression of clickthru rates of real customers rather than the automated sort.
...if anyone needs to collect click rates but want to leave a clean link for the search engines...
Could you elaborate on the javascript portion of the code you've posted. I assume it still requires CGI scripting of some sort on the originating site to count the links. I'm wondering whether there's an easy conversion, from the first method to the method you suggest, that I could suggest to linking partners as a way of linking to us without taking the chance of messing us up (per the threads I've posted).
From your example, you may be able to use the following (test it first, though!):
<a href="http://www.domain.com/" onclick="window.location.href='/content/link?www.domain.com/';return false;">Link text here</a>
(test it first, though!)
encyclo - Thanks again. Actually, I can't test it, because I'm not the one with the outbound link counting setup... but maybe I can persuade someone with such a script installed to give it a try. I will bounce it off one of the directories that once did link to us (before I had the redirect yanked) and see if they'd like to give this setup a try. I will report back if it works.