Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: phranque
I thought I would post this here becuase I have checked the net, Google Search, WM Tools Etc and found no real answers.
What I am trying to achieve is as folows:
The client has asked if we can make these links trackable and record click off stats in the mySQL database.
The method we need to use is as follows:
The link looks like this:
Why so many steps and why not just put that URL in the href in the first place?
Why have step 3 at all?
The website owner has been very specific that he wants to be very clear about the fact that this is an advert and to not confuse the user, he wants to be clear.
The fact is that the website owner is worried that this type of redirect may cause his site to be treated as an affiliate site and not it's true purpose by the search engines.
He is pretty savvy as am I when it comes to SEO, but this redirect and record system, and indeeed how to do it right, is a grey area.
So the main questions are as follows:
Anyone any comments on if we are doing anything ethically wrong here?
<a href="http://www.example.com" id="1234">Click here</a>
I considered writing something into the code to remove the "javscript" but, again that would be seen as showing different content to different users and I believe Google and other SEs penalise that too?
I can't see too many problems with your current setup. The straight link to the site with the
A couple of things - firstly, you should exclude /out.jsp in robots.txt (advanced bots seek out URLs in JS snippets, you want them to only follow the href URL and not your click-tracker). Secondly, your "step 3" mentions an interstital page, is this necessary? Can't you simply count the click and issue the 301 instead of having a separate "Go" page?
You should also avoid using
- I simply use the following on a directory site:
<a href="http://example.com/" onclick="window.location.href='/rd.php?id=123';return false;">link text</a>
I have asked a related question here:
So I have written the following into the client's robot.txt to reflect the following:
is this correct becuase 'out.jsp' will always have an additional parameter?
Secondly, your "step 3" mentions an interstital page, is this necessary? Can't you simply count the click and issue the 301 instead of having a separate "Go" page?
Well that would be a better idea, but the store owner requires that the user is actually EXPLICITLY TOLD where they are going and the page stays there for a few seconds.