Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Is this type of link good for google?

         

serenoo

10:26 am on Jan 14, 2009 (gmt 0)

10+ Year Member



I have an affiliation website where the outbound link are in this way:

<a href="http://other-site.example.com" onclick="javascript: this.href='http://my-site.example.com/links/logclick/?link=1370&site=109568&goto=http%3a%2f%2fwww.out-website.com">text</a>

I have no possibility to change this in a normal textual link. Otherwise I woiuld not here.

My questions are:
Do these kind of links pass the pr?
Do these kind of links considerated cloaking?

[edited by: Receptional_Andy at 10:53 am (utc) on Jan. 14, 2009]
[edit reason] Please use example.com - it can never be owned [/edit]

tedster

5:33 pm on Jan 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello serenoo, and welcome to the forums.

Completely javascript links do not pass PageRank. However that link style only includes some javascript - there IS still a direct href attribute in the anchor element, so it is a normal link that can pass PageRank.

Cloaking means serving googlebot different source code than you serve to a browser. Google may not execute the javascript, but as long as you serve it to googlebot and to browsers, it's not cloaking.

serenoo

7:41 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



Thank you Tedster for your reply.
That mean you will exchange a link with that code, right?

tedster

8:05 pm on Jan 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes - <a href="other-site.example.com"> is a true link. The javascript method that your mark-up includes is only an added attribute. It might just as well be "onmouseover()" to create a special hover effect, or something like that. The fact that it includes an onclick() method does not detract from the basic link that is already present there.

simstar

8:16 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



Yes it is just like the normal a href link in google. Don't worry about that code. If you start playing around with the basic html for hyperlinks then your in trouble, you aren't though, so its fine.

serenoo

8:43 pm on Jan 14, 2009 (gmt 0)

10+ Year Member



I do not think onclick() method is irrelevant, because I think it is executed and href is ignored by the browser.
Indeed they put that code to count the clicks.

I only scare that google could think: hey you have a website on href, but you have another on onclick(). What are you doing?
Google could be right because they are different websites even if they point to the same external website.
What do you think?

leadegroot

9:48 pm on Jan 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it passes PR and no, it isn't cloaking.
It might be considered deceptive by some, but it doesn't meet the technical definition of cloaking (assuming you serve this unchanged to all visitors, bot and human).