Stallion All In One WordPress SEO Theme V7.0

The Best WordPress SEO Theme

  31 responses to Stallion Theme Cloak Affiliate Links Tutorial

  • Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 08:34)

    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

    • Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 08:39)

      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

      • Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 10:04)

        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

        http://pctoolsinsights.com/how-to-cancel-mcafee-auto-renewal/

        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

    • Stallion WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 10:01)

      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

  • Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 20:13)

    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

    • Stallion WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (April 9th, 2011 at 21:02)

      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

  • Randy Nelson
    Comment on Stallion Theme Cloak Affiliate Links Tutorial (May 9th, 2011 at 00:12)

    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

    • Stallion WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (May 9th, 2011 at 00:36)

      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

  • Comment on Stallion Theme Cloak Affiliate Links Tutorial (May 26th, 2011 at 22:29)

    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 WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (May 27th, 2011 at 01:35)

      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

  • 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 WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 10th, 2011 at 10:41)

      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

      • Stallion WordPress SEO Theme Author
        Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 10th, 2011 at 11:23)

        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

  • SueBee Weiss
    Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 19th, 2011 at 11:42)

    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

    • Stallion WordPress SEO Theme Author
      Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 19th, 2011 at 14:14)

      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

      • SueBee Weiss
        Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 20th, 2011 at 01:30)

        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

        • Stallion WordPress SEO Theme Author
          Comment on Stallion Theme Cloak Affiliate Links Tutorial (July 20th, 2011 at 03:14)

          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

  • 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

  • Héctor
    Comment on Stallion Theme Cloak Affiliate Links Tutorial (February 14th, 2012 at 05:24)

    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

      • Héctor
        Comment on Stallion Theme Cloak Affiliate Links Tutorial (February 19th, 2012 at 02:17)

        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

        http://blogcanadiense.com/recomienda/

        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

  • Hi David,

    I wonder if you could please give me some ideas:

    There is a local business that’s interested in my blog for promoting his business.

    How could I use stallion (or any other piece of software) for tracking visitors to the local business from my site? But, there is a caviat:
    - how do I demonstrate and show the local business the visitor came from my blog?
    - how could I track the local business conversions from readers coming from my site?

    Thanks a lot

    Héctor

    Stallion Theme Cloak Affiliate Links Tutorial

    • Tracking Links and Conversions

      The script I mention above counts the number of clicks, but it wouldn’t provide that information to your customer or track conversions.

      Beyond the above Stallion doesn’t track clicks etc… I’d look for a plugin. I doubt you’ll find a plugin that tracks conversions on the site you link to though, that’s down to the site owner to track and provide the info.

      What you are basically looking for is an affiliate program like Clickbank or Amazon where their system tracks everything so you and they know the information is accurate. Not really what you are looking for though.

      David

      Stallion Theme Cloak Affiliate Links Tutorial

Leave a reply to Stallion Theme Cloak Affiliate Links Tutorial

Stallion All In One WordPress SEO Theme V7.0 Google Plus
Stallion All In One WordPress SEO Theme V7.0 Facebook
Stallion All In One WordPress SEO Theme V7.0 Twitter
Stallion All In One WordPress SEO Theme V7.0 Linkedin
Stallion All In One WordPress SEO Theme V7.0 StumbleUpon
Stallion All In One WordPress SEO Theme V7.0 YouTube Channel
Stallion All In One WordPress SEO Theme V7.0 Flickr
Stallion All In One WordPress SEO Theme V7.0 RSS Feed