Cloaking affiliate links in WordPress protects from being indexed by search engines and makes URL short and understandable. It also helps to centrally edit and replace affiliate links without changing the URL that you place on the pages of your website or blog.
An example of how this works.
Initially, an affiliate link may look like this:
After masking it may look like this:
How to cloak affiliate links in WordPress using the plugin
Example, how to cloak affiliate links in WordPress using the Go Redirects URL Forwarder plugin.
1) Go to “Plugins” – “Add New“. Find, install and activate the Go Redirects URL Forwarder plugin.
2) Go to “Settings” – “Permalinks“. Click the “Save Changes” button. This must be done for the forwarding to start working.
3) Go to “Redirects” – “Add New“. Add a title and external affiliate URL. Click the “Publish” button.
4) Go to “Redirects“. Copy the resulting forward URL.
Now you can use this URL on your website or blog.
Photo by Christian Holzinger on Unsplash