homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

Outbound link - onclick - redirect - track - send to page. It's OK?

Msg#: 4679992 posted 2:53 pm on Jun 15, 2014 (gmt 0)

I want to store clicks from outbound links into database.
And I need to have normal links in href parametres, like href="http://www.example.com".
The way I am considering is to do it by changing URL with JS when user click on link.
"onclick" -> link is changed from "http://www.example.com" to "example.net/redirect/product-xyz/" -> data is stored into database -> user is redirected to "http://www.example.com"
But, It's "kosher" for google? Could it be penalised?

[edited by: brotherhood_of_LAN at 3:31 pm (utc) on Jun 15, 2014]
[edit reason] generalised link [/edit]



WebmasterWorld Administrator 5+ Year Member

Msg#: 4679992 posted 6:41 pm on Jun 15, 2014 (gmt 0)

I think that as long as you are redirecting to the exactly the same URL to which you are linking in href you should be fine.

In fact this is very similar to how Google Analytics Outbound links tracking works [support.google.com...]

What I would do however is make sure that the target URL is passed on as a parameter to the redirect script. This would ensure that you do not have the same URL redirecting to different targets (which would happen if you perform redirect based on, lets say, referrer).


Msg#: 4679992 posted 10:20 pm on Jun 15, 2014 (gmt 0)

Just for clarify, admin changed my original sample link "mycatalogue dot com/redirect/product-xyz/" to "example dot net/redirect/product-xyz/" It could seem like one site..


WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month

Msg#: 4679992 posted 1:02 am on Jun 16, 2014 (gmt 0)

The reason it was replaced with example.com and example.net was to ensure that anyone can see that it is redirecting to a different domain, while still following the forum TOS to always use "example.com" in place of posting actual domains here.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved