How To Cloak Your Affiliate Links In WordPress : Step By Step

Being an affiliate marketer, you need to make sure you receive your commissions for each sale you deliver.

One thing that most of the newbies ignore is handling the affiliate links with care and keep them organized.

In this post, i will help you to cloak your affiliate links so that you never loose a commission again and this will also help you to organise them and eventually this will lead us to a secret to earning more out of the existing links.

I have written a detailed post on link cloaking and it’s benefit so make sure you check that out.

Affiliate links should be cloaked before being attached to any of your content. This will make sure no one can mess with your links and your commissions.

That being said, let’s head on to our step by step process for cloaking an affiliate link.

Step 1 : Install ThirstyAffiliates Plugin.

ThirstyAffiliates is an amazing easy to use and beginner friendly plugin that helps you to organize, cloak, manage, export/import, track and attach image files to your affiliate links. Read the whole ThirstyAffiliates review.

we have to install this plugin and activate it. This will help us to cloak our affiliate links with one click.

Add new link panel

This is an plug n play plugin so as soon as you have activated it, head on to the next step.

Step 2 : Naming and Cloaking the affiliate link

Naming and editing the affiliate link

This step is as simple as it sounds. If you look at thr upper part of the image, you will notice a name section.

I have an affiliate link of Hostgator and i will now enter the name Hostgator in the name section. This will help me to identify the link easily i will be then able to add this link into my content easily from my editor.

Once you have filled in the link and it’s name field click on the save link button. That’s all. You can now proceed to add this link in your new as well as existing posts.

Step 3 : Adding the cloaked link into your posts and pages

Adding the new cloaked link in your post through visual editor

For adding the link you just cloaked, go to your WordPress tinyMCE editor. On the above side of your editor’s header in visual mode, you can see a logo saying “TA” in a green blueish color. Click on this element.

If you want to link your cloaked affiliate link to an existing word of your content you can do so by first selecting the word and then hitting the ThirstyAffiliates logo on the editor.

Select the link as it appears and save it

The moment you click on the TA logo, a small window appears right above the text in the blank section of your editor. In this window, enter the name of your link, for instance i have entered ” Hostgator”. This is the same link we just cloaked a moment ago in this tutorial.

Select the Hostgator from the suggestions as they appear as soon as you start to type the first few words.

Click on the blue arrow that appears at the right side of the window as shown in the image above. That’s all. The link is now attached with your desired text.

Additional Settings

You can also attach images with your affiliate links by click on the select image tab situated just below the save button as shown in the image below.

Adding images to cloaked links

If you know about how redirection works, you can also set 302, 301 and 307 redirection on individual links. For setting up the rule for all of the cloaked links you can go to the plugin settings and change the universal redirections rule.

Redirection and follow, nofollow links settings

You can also Do follow and No follow the links universally through these settings.

You can also categorieze the individual cloaked links into specific categories. I strongly recommend you to do this from the first day. This will help you to stay organised in future.

Categorise the link

If you aren’t satisfied with ThirstyAffiliates, there’s another popular plugin that does the same job. It’s is called Prettylinks.

To cloak affiliate links with prettylinks, follow these simple steps.

Step 1 : Download and install the prettylinks plugin.

Head on to the shortlinks by prettylinks hompage and get the plugin. Install and activate it on your WordPress blog and move to the next step.

Step 2 : Open the prettylinks panel

Prettylinks tutorial: enter the name of the link and below that the link

Open the prettylinks panel and click on add new button. Here, enter the link you want to cloak and enter the name you want to give that link.


you can also change the redirection rule of the link. The preferred one is 301 perma redirection.

That’s it. Nothing more is required. The rest of the process remains the same.


Both of the plugins give you an opportunity to track the clicks on your cloaked affiliate links. You can check the report by going to the plugin panel and then the reports section. Here’s one of my reports to give you an idea :-

Cloaked links report of how may clicks each link got

The report shows you the chart of clicks you get on each individual links you can also analyse the chicks on one particular link of your choice at a time by entering it’s name in the search bar.

Both plugin works the same and it’s upto you which one you choose.

If this guide has helped you, them share it on Facebook and if you have any question, ask them in the comments section below.

Similar Posts:

Exclusive Discounted Price At Hostgator Hosting

Author: Aayush Bhaskar Verma

My name is Bhaskar and i will walk you through a bunch of over my shoulder guides and content marketing tips that i use for my blog.

2 Replies to “How To Cloak Your Affiliate Links In WordPress : Step By Step”

Leave a Reply

Your email address will not be published. Required fields are marked *