The link cloaking I’ve added to the Stallion SEO Ad Theme is a very cool feature.
Why Hide/Cloak Affiliate Links?
There are two reasons to hide/cloak affiliate links (any link).
1. Hide the source of the link from your visitors so they don’t know they are about to go to an affiliate site AND so other affiliates can’t easily steal your affiliate links (apparently it’s a problem).
2. To protect a sites link benefit, Google does not want us linking to affiliate sites and other sites we don’t recommend. Unfortunately Google took away the only way to tell Google etc… a link shouldn’t pass link benefit when it changed how nofollow links work (stupid Google). A nofollow link used to pass no link benefit to the page it was linking to and the ‘saved’ link benefit was reused on the followed links from the page. Google currently deletes the link benefit of nofollow links so we should avoid using nofollow!!!
Stallion Theme Link Cloaking
Stallion uses advanced javascript and css coding to ‘hide’ affiliate links from Google and other search engines, it works because search engines don’t read the javascript/css coding as a link (it’s not a link, the javascript makes it act like a link). The downside of this is a small number of your real visitors (estimated below 10%) who have javascript turned off will not see the links either, they will only see the anchor text of the link.
This is not actually cloaking the links for your visitors, you can still see the source of the links as you hover over them (when javascript is turned on), but to search engines they are cloaked/hidden.
If you run the Massive Passive Profits Autoblog Plugin and soon the WP Robot 3 Autoblog Plugin (adding this feature in the next Stallion update) Stallion can automatically ‘hide’ the affiliate links from search engines. Note: the two links above are affiliate links that have been cloaked using a simple PHP redirection script (see later) AND use the Stallion link cloaking feature to ‘hide’ them from search engines.
If you run the Massive Passive Profits Autoblog and have turned link cloaking on your Amazon affiliate links etc… will be cloaked/hidden from search engines. If you view source of an autoblog page you will see the affiliate links have been replaced with some code that looks little like a link (the javascript/css coding converts it to a link), you can see the code below.
How to Cloak/Hide a Link Using Stallion
Lets say you have a standard text link like this one:
<a href="http://www.stallion-theme.com/">Stallion Theme</a>
This links to the Stallion home page “http://www.stallion-theme.com/” with the anchor text “Stallion Theme”. This is the actual link: Stallion Theme.
It’s very easy to turn it into a hidden link using Stallion by changing it to.
<span class="affst" title="tests" id="http://www.stallion-theme.com/">Stallion Theme</span>
You place the URL (http://www.stallion-theme.com/) in the id=”" part of the code and the anchor text (Stallion Theme) before the closing </span>. As long as “Cloak Affiliate Links” is turned on under the “Stallion Promotion Options” page it will be cloaked/hidden.
That’s it the link is cloaked/hidden from Google. You can do this manually to any link that Stallion has access to within the content of a post or page linking to any page.
You can do the same with image links by replacing the anchor text with image code:
<span class="affst" title="tests" id="http://www.stallion-theme.com/"><img src="http://www.stallion-theme.com/stallion.png" alt="Stallion Theme" /></span>
Basically if you have any link with format:
<a href="...">...</a>
It can be replaced with the code above.
Stallion and a Simple PHP Redirection Script to Hide AND Cloak Links
The above feature is pretty cool on it’s own, you can use it to save all that link benefit that would be wasted by linking to affiliate sites directly or using nofollow links. Now the interesting part is when we bring in other tools.
I’ve been using a free very simple PHP redirection script for years. I have it installed on one domain, my 45 Year Old Millionaire Make Money Online Blog and use the script for a lot of affiliate links, especially Clickbank products (the Massive Passive Profits and WP Robot 3 autoblog links above use the script, hover over them). This means if an affiliate product is no longer available (happens a lot with Clickbank products) you edit one file related to the redirection script and every link to that affiliate product is changed (you could link it to a similar affiliate product for example).
You can get the free PHP Redirection Script here (note used the cloaking code to hide this link, no link benefit wasted) and install it on one of your domains. I put it under the folder /tracking/ and renamed some of the files (I forget why), but doesn’t really matter where you put it you can keep the default settings.
My settings results in links like this:
http://www.45-year-old-millionaire.co.uk/tracking/track.php?id=##
Where ## is a number.
If you go with the defaults your setup will be something like this:
http://www.domain.com/ccount12/click.php?id=##
To incorporate this script into Stallion edit the test.js file found in the /stallion-seo-theme/ folder.
You will find this line of code:
case 'testing': theURL = 'http://www.45-year-old-millionaire.co.uk/tracking/track.php?id='; break;
Change to:
case 'testing': theURL = 'http://www.domain.com/ccount12/click.php?id='; break;
This will now use your PHP redirection script to cloak links (obviously you change domain.com to your domain
).
Log into the PHP Redirection Script and add a link, it should be given ID = 1 so will go to the link:
http://www.domain.com/ccount12/click.php?id=1
We use this code to incorporate this link into a WordPress post or page:
<span class="affst" title="testing" id="1">Anchor Text of Link</span>
When you create a second cloaked link it will be ID = 2 so change the id=”1″ to id=”2″ and so on.
In this way you can have as many cloaked links as you have IDs with this script.
This concept will work with pretty much any redirection script. If you have a script that generates URLs like
http://www.domain.com/UNIQUECODE1
You add
case 'testing': theURL = 'http://www.domain.com/'; break;
To the test.js file and build your link code like:
<span class="affst" title="testing" id="UNIQUECODE1">Anchor Text of Link</span>
Already use more than one PHP redirection script, not a problem you can add more than one type of link format. To use the two examples above, in your test.js file (note the second line uses testing2 instead of testing, each line needs a unique string (can be almost anything)):
case 'testing': theURL = 'http://www.domain.com/ccount12/click.php?id='; break;
case 'testing2': theURL = 'http://www.domain.com/'; break;
Now link code
<span class="affst" title="testing" id="1">Anchor Text of Link</span>
Will use the top format (testing) and
<span class="affst" title="testing2" id="UNIQUECODE1">Anchor Text of Link</span>
Will use the bottom format (testing2).
Automation of Link Cloaking
Want a bit of automation in your link cloaking so you aren’t endlessly copying and pasting IDs etc… Not a problem.
I’ve been using this technique on affiliate sites with thousands of links and cloak the lot with a simple technique.
I’ve created a small number of affiliate sites using Shareasale datafeeds and use a simple PHP redirection script to cloak the links with format:
http://www.domain.com/buy-now.php?id=##
Create a file called buy-now.php (you can name it anything you like as long as you change relevant parts below to match the filename) and put it in the root of your domain (can put it anywhere, but easier for me to explain if it’s in the root
)
<?php
$id=$_GET['id'];
header('Location: http://www.shareasale.com/m-pr.cfm?merchantID=SHAREASALEMERCHANTID&userID=YOURSHAREASALEID&productID='.$id);
?>
Replace
SHAREASALEMERCHANTID : you get this from the datafeed
and
YOURSHAREASALEID : that’s your Shareasale User ID
Add this to your Stallion test.js file:
case 'tests4': theURL = 'http://www.domain.com/buy-now.php?id='; break;
And use the link format:
<span class="affst" title="tests4" id="UNIQUEPRODUCTID">Buy Now</span>
UNIQUEPRODUCTID : is the Unique product ID from the Shareasale datafeed.
Your affiliate links will now look like this when hovered over:
http://www.domain.com/buy-now.php?id=123456
When building the site (normally with a database import script) you would use the above link code format instead of a normal affiliate link, in this way it’s all automated. Some of my sites where built before I used this technique, I edited the MySQL database (ran a few SQL queries) to search and replace the original affiliate links with nofollow links to the sort of code above (will explain how in a comment when I have the time).
I’d link to an affiliate site that uses this technique, but it’s never a good idea to show your affiliate sites around as makes it easier for Google to find and downgrade them (Google hates affiliate sites).
You can use the concept on any affiliate source that uses a general format with a unique code to identify each product like “http:www.ALLLINKSHAVETHISBIT?ID=UNIQUETOEACHPRODUCT”. You put the link part that’s the same for all products into the redirection script (for most Sharesale datafeeds it’s “http://www.shareasale.com/m-pr.cfm?merchantID=SHAREASALEMERCHANTID&userID=YOURSHAREASALEID&productID=”) and the unique product ID into the link code.
It’s taken me years to pull these techniques together and you get it as part of Stallion, I would have paid thousands for these techniques 5+ years ago, they protect so much link benefit and make it harder for search engines to find and downgrade affiliate sites. Now all I need is to find the time to actually build affiliate sites
David Law


32 responses to Stallion Theme Cloak Affiliate Links Tutorial
PHP Redirection Script
Hi David.
Am just trying to set up affiliate links for cloaking following your tutorial. Awesome stuff.
When I come to change the “tests.js” file your tutorial mentions change the line that starts with “case ‘tests2′: etc etc
When I look at ‘tests.js’ I see a line that says ‘testing2′ etc like this: (there’s actually a ‘testing’ line of code as well
case ‘testing2′: theURL = ‘http://www.45-year-old-millionaire.co.uk/tracking/track.php?id=’; break;
I’m guessing that this is the line but I just wanted to double check.
And just to confirm, having set up my first ID using ccount for Vipre Homepage the actual code that I’ll put into my page would be as follows:
Vipre Homepage
Would that be correct David?
Presumaly there’s no easy way to change the “testing2″ without changing lots of other code is there?
Incidentally will I have to set this all up again when you release future updates of Stallion?
And finally re Shareasale datafeeds. I started to sign up so I could get auto link cloaking but then checked the pricing. It is $550 to join isn’t it?
Thanks in advance
Nigel
Stallion Theme Cloak Affiliate Links Tutorial
PHP Redirection Script
Sorry David it looks like my comment was seen as a java script!!
So my line of code would be (in quotes this thime!):
“span class=”affst title=”testing2″ id=”1″>Vipre Homepage”
Is that correct?
Thanks
NIgel
PHP Redirection Script
Hi david.
Can’t quite get this working. I’ve created the PHP redirection and have ID 1 pointing to my Vipre Homepage. That redirection link works fine.
But whenever I hover over the link on my page it isn’t showing the Anchor text, it just shows the actual link that the Redirection php has created like this: “http://www.pctoolsinsights.com/ccount/click.php?ID=1″
My post is here (Hover over “VIPRE Products” paragraph 5
I’m now using “testing” not “testing2″ as referred to in my earlier post.
I can email the tests.js file if needed.
Sorry about this David. Quite close though.
Nigel
Stallion Theme Cloak Affiliate Links Tutorial
Link Cloaking is Working
Checked the page and the cloaked links you added are working now.
BTW you don’t need target=”_blank” it’s built into the javascript.
David
Thanks for prompt respone david.
Should it come up with “Vipre Products in the bottom left toolbar instead of the redirection code
Nigel
Hide url of link in status bar
You should see whatever is in the id=”" part of the link code, so if a redirected URL you see the redirect URL in the status bar. So it’s working.
There is a way to hide a link destination in the status bar, but not tried it with this script so not sure if it would work. Search in Google for “hide url of link in status bar”. I’ve no idea if it will work with the javascript added to Stallion.
I don’t use that type of technique on my sites, don’t see the need for it.
David
Stallion Theme Cloak Affiliate Links Tutorial
PC Tools Insights Cloaking Links
…and if it’s good enough for you Dave it’s certainly good enough for me!
Thanks for all you help earlier today, much appreciated.
Nigel
Stallion Theme Cloaking Links
There are three lines of code in the test.js file
case 'tests': theURL = ''; break;case 'testing': theURL = 'http://www.45-year-old-millionaire.co.uk/tracking/track.php?id='; break;
case 'testing2': theURL = 'http://www.45-year-old-millionaire.co.uk/tracking/track.php?id='; break;
Looks like I was looking at another version of the test.js file when I copied the code. So yes test2 should have been testing2 (will edit the tutorial later).
The first line is for the redirection free link cloaking (doesn’t need a Php script) and the automated link cloaking built into the Massive Passive Profits plugin addon part of Stallion. So ideally you wouldn’t touch that line.
The other two lines are examples and can be changed (as described in the tutorial) or deleted if you don’t use them. Doesn’t really matter which one you change as long as you match it to the link code.
If you change the “testing” line in the test.js file and then use the “testing2″ link code in your posts it won’t work. You can change testing2 etc… to anything you like as long as the string of text you use in the test.js file matches the link code (the title=”testing2″ bit). I’d suggest getting an example link working with the default code then change testing/testing2 to whatever you like.
When I update Stallion you would make sure you don’t overwrite the test.js file.
It’s free to join Shareasale, they are an affiliate network.
David
Stallion Theme Cloak Affiliate Links Tutorial
SEOPressor Internal Links to Other Site Pages
Hi David.
Another hole you’ve knocked in the SEOpressor theory?
I know SEOpressor isn’t one of your products and I know you haven’t tried it but daniel tan, who promotes it, is quite a well respective WordPress guru so could you clarify this for me please.
One of the parameters that SEOpressor uses is that you must have an internal link to another page of your site. I always do this to get a little green tick in the SEOpressor boxes.
Before using your link cloaking and redirection scripts today I would have had a link something like this: <a href=”http://pctoolsinsights.com/remove-unwanted-toolbars/”>Remove Unwanted Toolbars</a> which SEOPressor sees.
With your great scripts it now looks like this: “Remove Unwanted Toolbars”
does it matter that Google apparently doesn’t see any links between pages David and can it affect any rankings? (Incidentally I’m guessing not but if you could just explain when you have a few spare minutes I’d appreciate it.
Many thanks
Nigel
Stallion Theme Cloak Affiliate Links Tutorial
SEO Importance of Internal Links and Anchor Text
I wouldn’t generally advise hiding/cloaking links to your own pages as they’ll pass no PR/link benefit and so will be less likely to rank well. There’s an argument for hiding/cloaking privacy pages and similar pages that are irrelevant to a sites rankings and waste link benefit, but the page you mention above appears to be one you’d want SERPs for.
“SEOpressor uses is that you must have an internal link to another page of your site”
I can’t see a lot of SEO logic in this, you sure it’s not link to a related page on the site? So if a page was about “Stallion Theme Cloak Affiliate Links Tutorial” you’d ideally want links from the page with anchor containing one or more of the relevant keywords. Not much to gain linking from this page to one that’s not relevant beyond having more links to the page you are linking to.
I’m lazy when it comes to internal linking (and external linking to other sites I own) and try to automate it as much as possible.
I use plugins like the Related Posts plugins (free from WordPress SEO Plugins) you see below the Comment form on this page and on a few sites the SEO Smart Links WordPress Plugin (link on the plugin page above): never seem to find the time to setup the SEO Smart Links Plugin on most of my sites (not automated enough
) but you can see it in action at John F. Kennedy Assassination Conspiracy Theories.
Links off a page are important if you can get many of them to use anchor text related to the SERPs you are after for the page the links are off. If I wasn’t so lazy I’d manually splatter relevant links to internal pages and other sites I own through out my posts.
SEO wise anchor text has more SEO benefit for the page the anchor text is on than standard body text. So if you have a page about “Link Cloaking” and a link from that page to a page about link cloaking and the link has anchor text “Link Cloaking” (or related anchor text), changing the link to a hidden/cloaked link (using Stallion) will turn the link into standard body text as far as Google etc…. goes and so SEO benefit (from the anchor text) will be lost. However, if this is a link to an affiliate site you loose more SEO benefit (you loose link benefit) by linking out to an affiliate site that you don’t want to waste link benefit on compared to the SEO gain from relevant anchor text.
Basically do hide/cloak affiliate links, don’t hide/cloak links to your own pages. If you hide/cloak an affiliate link with anchor text that was highly relevant to the page the link is on try to add another link using similar anchor text to one of your relevant pages.
David
Stallion Theme Cloak Affiliate Links Tutorial
Stallion Cloak Affiliate Links?
David,
I’m trying to cloak my affiliate link to go to offered affilate sale page and have turned on the “Cloak Affiliate Links” in the Promotion Options page but I’m still seeing the entire affiliate link in the lower left hand corner of my blog page when I hoover over the link?
This is the code I used per your Stallion instructions:
JOB CRUSHER TACTICS.
Can you tell me what I’m doing wrong please?
Thanks,
Randy
Stallion Theme Cloak Affiliate Links Tutorial
Cloaking Affiliate Links with Stallion
It’s normal to see the URL when you hover over the Stallion Cloaked links.
If you’ve used the span type code described in the Stallion Theme Cloak Affiliate Links Tutorial above and it looks like the code above (when you edit the post it’s on) and when you click the link it opens in a new window you’ve got it right.
BTW you can’t post code into a WordPress comment. If you need to show code either use email or link to where the code is.
David
Stallion Theme Cloak Affiliate Links Tutorial
Clickbank Link Cloaking
David:
Is it possible to cloak the links on the pre-built Clickbank Widgets? The customer made widgets seem easy enough to cloak, but I think it would be important to cloak the pre-built widgets as well. Please let me know.
Jamie
Stallion Theme Clickbank Ads Use Javascript
Like the AdSense ads, and Chitika ads, Clickbank uses javascript to server it’s ads, so they are already ‘hidden’ from search engines.
If an ads built using javascript in a way that there isn’t a URL shown in the code (view source) you can be reasonably confident Google and other search engines can’t see the links as text links (no SEO value is passed).
If you can see the links in the javascript there’s a possibility search engines can read a link from the code. The Clickbank ads network uses javascript search engines can’t decipher into text links.
David
Stallion Theme Cloak Affiliate Links Tutorial
Thank You
Thank you so much for the prompt reply.
cloaking question
Please do not post on forum:
Hi, I have a question about link cloaking. If i have 300 or so posts already posted from Massive Passive plugin, and I want to automatically cloak all url’s attached to the posts back to my main web site, is there a way this can be done automatically. I cant see myself going through all the posts and copy pasting all links to re direct back to my page. I do not want my readers clicking on links from competition links in posts that MPP gathered. Thanks, Mike
Stallion Theme Cloak Affiliate Links Tutorial
Stallion Theme Link Cloaking
Currently the Stallion theme has an extra options page (under the Massive Passive Profits menu : SEO) that cloaks all links the Massive Passive Profits plugin creates.
What this does is stop link benefit from being wasted through affiliate links etc… what it doesn’t do is stop your visitors from clicking those links: which is what you ideally want with affiliate links so you make money from Amazon sales etc….
I can’t think of a way to automatically redirect all links on Massive Passive Passive Profits content to a page of your choice.
David
Stallion Theme Cloak Affiliate Links Tutorial
Breaking the Stallion Theme Link Cloaking Script
After posting the comment above had a thought.
If you aren’t using the Stallion link cloaking script for anything else you could break it so the Stallion affiliate link code isn’t converted to a clickable link by the javascript.
The result would be all Massive Passive Profits links would turn into non clickable text and images (for the Amazon buy now image links will just be an image).
In the /stallion-seo-theme/ folder edit the file test.js and delete it’s contents (turn it into a blank file).
Not tested the above, but 99% sure it will leave you with all links created by Massive Passive Profits plugin becoming plain text that if you hover over a tool-tip with the word “tests” will appear.
This will mean you can’t use the link cloaking feature for other links on the site as you’ll have broken it.
David
Stallion Theme Cloak Affiliate Links Tutorial
Cloaking Affiliate Links
Okay Okay my head is swimming. I have been following you on this subject ….only after following the “all in one seo” bantor, and just erased a paragraph and will replace it with -WOW!
The real reason I am here is to clarify: Cloaking should be done for affiliate sites only, true? (So as not to ruffle google feathers). So my internal links and my links to other sites that are not affiliate sites can be left alone correct? I am asking because if a bot catches a link to another site, did i just send it away to not return and finish the crawling of my own site? Does the bot follow all internal links out or just take it into consideration and continue within my own site? Sorry if this sounds silly but a girls gotta know these things!
Thanks for taking the time.
SueBee
Stallion Theme Cloak Affiliate Links Tutorial
Which Links Should I Cloak?
The short answer is cloak any links you don’t want to send SEO benefit to.
For me that includes all affiliate links.
Does not include any links to my own sites (unless there’s a reason I don’t want two of my sites linked together).
Does not include links generally.
I wouldn’t worry about the Googlebot leaving your site, even if your site had no links off the domain when it’s spidered enough pages it will leave anyway and will be back at regular intervals: more incoming links you have from other indexed pages more often you’ll be spidered.
How many pages a bot will spider at a particular time seems random, the links it follows are random, so it won’t hit your home page and follow every link on the page until it runs out. Bots act like a random link clicker, hit page A and randomly click a link, over time all links are clicked.
This is why there’s an SEO Myth Google won’t follow more than 100 links from a page, the reality is Google advises not to have more than 100 links from a page because each link (on page with 100 links) has a 1 in 100 chance of being followed every time a spider hits a page.
If you have a page with 1,000 links it’s going to take a LONG time for all 1,000 links to be followed randomly and if on that page there’s a link to an important page you really want indexing and it has links from no or few other pages it might never be indexed.
Best advice on the number of links per page is it depends on the site and how many other sites link into that site (and how popular the pages are the incoming links are from). More incoming links you have more often a bot will find your site and more links it will follow within your site.
You can submit an XML sitemap to Google, but I don’t see the point, if Google can’t find the pages of your site naturally via incoming links it isn’t going to rank them well because you’ve added an XML sitemap of everything. I personally don’t want Google to find a page via an XML sitemap, if I think I’ve done everything right and a page isn’t indexed through random spidering I want to know, having it indexed via an XML sitemap means I might not realise there’s a problem. If an important page isn’t being spidered regularly it’s easily solved (when I know there’s an issue), add more links directly to that page. Remember getting a page indexed is a waste of time if it doesn’t also generate traffic.
Well, that comment went all over the place
David
Stallion Theme Cloak Affiliate Links Tutorial
Affiliate Links - Cloaking - robot_txt
Gotcha and Thank you. As I pondered my day away on the many websites and the many new things learned and in need of rectifying on those sites, it brought me to this question: I have been misinformed on what my robot_txt file should be blocking or not blocking. This is the crux of my problem at present. So if this isnt prying, just what should be on the robot file? admin info I assume and what needs to be there if we dont want crawl errors?
Should everything on robot be transformed to be cloaked instead of blocked or is this as you said above – and no you dont have to repeat yourself from above – I got you
– but you can see how my mind would wander to the aspects of robot_txt, yes?
Stallion Theme Cloak Affiliate Links Tutorial
WordPress Blogs and the robots.txt file
The robots.txt file is about blocking and allowing access to bots to specific parts of a site. Not the same as cloaking links.
Generally speaking most entries within a robots.txt file are a waste of time. The default action is allow spidering, telling a bot it can spider something it would have spidered anyway, is a waste of time.
Most directories and files you added to your robots.txt file is a waste of time and one is potentially damaging:
Do you use the default setup of having images under /wp-content/ ? If so you are blocking their spidering via
User-agent: *
Disallow: /wp-content/
You allow spidering of the uploads folder to Googlebot, but what about Bing and other search engines?
If you ever add a stand alone file with extension .php, won’t be spidered.
Personally as a user with about 70 WordPress sites I don’t really use a robots.txt file, mine includes this:
User-Agent: *
Crawl-Delay: 20
Which slows down spidering for some bots (Googlebot ignores it). I’ve had problems with too many bots spidering the hell out of my sites and it causing resource issues on the server, if a few spiders slow their crawl rate might help a bit. Only use if you have an issue (I have a lot of links to my sites which means spiders pretty much take up permanent residence on my servers).
That’s the entire contents of 95% of my sites (100 domains) robots.txt files.
If some admin files are being indexed or you want other parts of a site not indexed without wasting link benefit see Stallion WordPress SEO Plugin.
David
Stallion Theme Cloak Affiliate Links Tutorial
Thanks David! I am already moving everything slowly to your Stallion theme and am using the plug-in where I havent had time for Theme change. And thanks for all your help today!
BlogAds private ads an alternative to Adsense?
Do you have any experience with something like Blogads.com? This is not like Adsense in that you set up the code and the ads appear. Nor is it like the traditional Adsense alternatives that clone this model (for example like Chitika based on a publisher ID), nor an affiliate like Clickbank.
Rather it is selling private ads via a marketplace. I image you can choose to not pass link juice and therefore it is legal in Google’s views as you are not selling links? It would be simply selling ad space which is fair and square in google’s eyes.
I am sure they do not like the competition, but is there any way they could have problems with it?
Do you think it is a good way to monetize a blog as although not as effcient as Adsense the percentage you keep is 70%.
I imagine to integrate into the Stallion theme, I set up an ad widget like you have recommended (http://www.stallion-theme.com/stallion-theme-kontera-in-text-ads-tutorial#comment-3509), something that does not pass link juice but displays the link.
Stallion Theme Cloak Affiliate Links Tutorial
Monetizing a WordPress Blog While Avoiding a Google Penalty for Selling Links
I’m not familiar with Blogads, though understand what they are offering and considered using a service like them (not got around to it
). Have you looked at their ad output (I couldn’t find an actual ad example on their site), does it pass link benefit?
If it’s javascript based or uses nofollow it’s not a Google penalty issue.
Not having access to their code I can’t say for sure how to integrate. If it’s simple javascript code like you get with AdSense then yes the sort of code I used in the comment you linked to added to a text widget should work.
On a similar note you can build custom ads via the Stallion Custom Ads Widget and the Stallion 125px by 125px banner ads widget (you don’t have to keep the ads 125px wide) with both options the Stallion link cloaking is built in, so if you use them to sell ads and don’t want to pass link benefit link cloaking can be used so there’s no risk of a Google penalty for selling links that pass link benefit. Obviously won’t include any timing options for ads running out etc… so completely manual.
David
Stallion Theme Cloak Affiliate Links Tutorial
Hi David,
I’m trying to use the PHP Simple Script, but when I hover over the link I see this
http://mydomain.com/#1 [notice the #1]
but if I click on the link created by PHP Redirection Script
http://www.mydomain.com/ccount/click.php?id=1
it works fine
I’m using the same title=tests2 as used in the test.js file
Any hits?
Thanks
Cloaking Affiliate Links
Sounds like you’ve made a mistake in the code, no idea what without seeing the code used in the test.js file and a link.
URL to the site this is on?
David
Hi David,
sorry for not replying before but I wanted to test it with the latest version of Stallion. I realized the blog where I’m having issues with is running Stallion v6.0 (so I think it’s not worthy digging deeper). I’ll upgrade soon.
I was able to change the default installation, and you can see it here
When I hover over the links (Programa para ver un video en menos tiempo & Programa para ver un video más lentamente) , (sorry they are in Spanish – let me know if you want me to change them) I notice the link looks cloaked, but it is the same when I entered the links in this format:
<a href="http://www.mydomain.com/haz/clic.php?id=1">Programa para ver un video en menos tiempo</a>In other words, I do not see the difference when I use any way:
this:
<a href="http://www.mydomain.com/haz/clic.php?id=1">Programa para ver un video en menos tiempo</a>or this:
Programa para ver un video en menos tiempo
which leads me to think… is there a way to “audit” my sites and check if I’m wasting any link benefit?
Thanks
Héctor
Stallion Theme Cloak Affiliate Links Tutorial
Cloak Affiliate Links Tutorial
I can confirm the Stallion cloaked links are setup correctly. They are meant to look and act like normal text links until you view source.
The way to check is to view source, I tend to use Firefox for browsing and found an interesting anomaly when viewing source the ‘quick’ way.
The quick way is selecting the text/link etc… you want to view source followed by right-click and “View Selection Source” which pops up a window with just the content you want to check.
With the link cloaking script which uses javascript which is apparently not loaded correctly on the “View Selection Source” pop up you get a messed up text link/cloaked link: I spent about 2 hours trying to figure out what I’d done wrong code wise when I added cloaking to Stallion when the code was spot on
So to view source use the not so quick way, don’t select anything on the page and right-click followed by “View Page Source” which pops up the entire pages code (and loads te javascript correctly).
You can achieve similar in IE and Chrome etc…
If you see the code like
<span class="affst" title="testing" id="UNIQUECODE1">Anchor Text of Link</span>and in the browser with javascript turned on you see a normal text link it worked.
Also clicking the link will open the link in a new window.
Since the javascript code is loaded at the bottom of the page code wise there can also be short delay before the text of the cloaked links is converted into a text link on the fly by the javascript.
I see you are using the Yoast WordPress SEO Plugin with some damaging SEO settings, your category links are nofollow. Nofollow deletes link benefit, if you plan to use a WordPress SEO plugin don’t use the nofollow or noindex settings. Also the Yoast plugin if the canonical URL feature is used breaks the Stallion SEO Super Comments pages, it adds a canonical URL back to the original post the comment is from which means Google doesn’t index the SEO Super Comments post! This will be true for any plugin that disables the WordPress canonical URLs and adds their own.
In Stallion 6.3 (next update, working on it now) I’ve added the All In One SEO Pack Plugin code directly into Stallion with major improvements, it takes Stallion SEO to another level. Since it uses the All In One SEO Pack Plugin code, Stallion will use that plugins settings related to titles etc… for specific posts. Not looked into this yet, but as I understand it there’s plugins for moving data from various WordPress SEO plugins (like Yoast WordPress SEO) and other themes into All In One SEO so they should work for Stallion’s All In One SEO basic settings.
I’ve stopped adding new features to Stallion 6.3 and working on debugging the new and some old code, so the update should be live soon.
David
Stallion Theme Cloak Affiliate Links Tutorial
Leave a reply to Stallion Theme Cloak Affiliate Links Tutorial