Key Takeaways
- Tracking affiliate links properly means you can see exactly which pages, which specific links, and which pieces of content are actually generating clicks, rather than relying only on the summary reports your affiliate networks provide after the fact.
- Pretty Links is the most widely used WordPress plugin for affiliate link management, since it lets you cloak long, ugly tracking URLs into clean, branded links on your own domain while recording click data directly inside your WordPress dashboard.
- Rank Math is primarily an SEO plugin, but it plays a specific and useful supporting role in affiliate link tracking through its own click tracking and event tracking features when connected to Google Analytics, giving you a second, independent data source alongside Pretty Links.
- Cloaked links, meaning clean redirect URLs on your own domain rather than raw affiliate tracking URLs, are not just a tracking convenience. They also make your links easier to manage at scale, since updating one redirect destination updates every place that link is used across your entire site at once.
- Setting up proper UTM parameters alongside your cloaked links gives you the ability to see affiliate performance broken down inside Google Analytics as well, rather than depending on Pretty Links alone as your only source of click data.
- A consistent link naming and folder structure inside Pretty Links, organized by affiliate program or by content category, makes it dramatically easier to audit, update, and analyze your links as your site grows beyond a handful of affiliate partners.
- This guide walks through the complete setup process for both plugins, how they work together rather than competing with each other, and the specific reporting each one gives you to actually understand what content is driving real affiliate income.
Introduction
Publishing affiliate content without a proper link tracking system in place means you are essentially operating blind between the point someone clicks your link and the point a commission eventually shows up in an affiliate network report weeks later. You can see total commissions per program, but you often cannot easily see which specific article, which specific placement within that article, or which specific call to action actually drove the click that led to the sale. Proper link tracking closes that gap, and it is one of the more overlooked pieces of infrastructure for a site that is serious about improving its affiliate income deliberately rather than guessing at what is working.
This guide walks through exactly how to set up and use Pretty Links, the most widely used WordPress affiliate link management plugin, alongside Rank Math, which plays a smaller but genuinely useful supporting role in this same tracking picture through its own analytics integration. Together, these two tools give you a considerably clearer picture of what content is actually converting than relying on your affiliate network’s dashboard alone.
What You Will Learn
In this guide, you’ll learn:
- Understand exactly what link cloaking is and why it matters for both tracking and long term link management.
- Be able to install and configure Pretty Links correctly from scratch.
- Know how to create, organize, and categorize your affiliate links properly as your site grows.
- Understand how to read and use the click data Pretty Links provides.
- Know how Rank Math’s tracking features complement Pretty Links rather than duplicating it.
- Be able to add UTM parameters to your links for deeper reporting inside Google Analytics.
- Have a clear, ongoing system for auditing and maintaining your affiliate links over time.
What Link Cloaking Actually Is and Why It Matters
Link cloaking means taking a long, unattractive affiliate tracking URL, often filled with lengthy tracking codes and parameters that mean nothing to a reader, and replacing it with a clean, short, branded redirect link hosted on your own domain instead. Rather than a reader seeing a raw affiliate URL, they see something like yoursite.com/go/product-name, which then redirects them to the actual destination behind the scenes.
This matters for three distinct reasons that go beyond simple appearance. Cloaked links look more trustworthy and professional to a reader who might otherwise hesitate to click an unfamiliar, complicated looking tracking URL. Cloaked links are dramatically easier to manage at scale, since if an affiliate program changes its tracking URL structure, you update the destination in one single place inside your cloaking plugin, and every instance of that link across your entire site, potentially spread across dozens or hundreds of posts, updates automatically without you needing to manually edit each individual page. Cloaked links also give you a genuine, independent click tracking layer that exists entirely within your own WordPress dashboard, separate from whatever reporting your affiliate network happens to provide.
Setting Up Pretty Links From Scratch
Step 1: Install and Activate the Plugin
From your WordPress dashboard, go to Plugins, then Add New Plugin, and search for Pretty Links. Install and activate the free version, which covers everything most affiliate sites genuinely need for proper link tracking and management. A premium version exists with additional features such as advanced reporting and automatic keyword linking, but the free version is a fully capable starting point.
Step 2: Configure Your Basic Settings
Navigate to the Pretty Links menu that now appears in your WordPress dashboard sidebar, and go to its Options page. Set your default link prefix, the short path that will appear before each individual link slug, commonly something like go or recommends, so your final cloaked links read cleanly as yoursite.com/go/product-name or yoursite.com/recommends/product-name.
Confirm the default redirect type is set appropriately. A 301 permanent redirect is the standard, correct choice for affiliate links, since it properly signals to both browsers and search engines that the redirect is permanent, and it is the appropriate choice for essentially every affiliate link use case.
Step 3: Create Your First Cloaked Link
Go to Pretty Links, then Add New. Paste the full, actual affiliate tracking URL provided by your affiliate program into the Target URL field. In the Pretty Link field, type the clean, short slug you want to use, such as go/bluehost or recommends/best-hosting.
Give the link a clear, descriptive title in the Name field, something that will make sense to you later when reviewing a list of dozens of links, rather than a vague or generic label. Assign the link to a category, covered in more detail in the next section, and click Create.
Your cloaked link is now live and ready to use anywhere across your site, in blog posts, in your navigation menu, in email newsletters, or anywhere else you need to reference this specific affiliate offer.
Organizing Your Links With a Consistent Structure
As your site grows beyond a small handful of affiliate links, a consistent organizational structure inside Pretty Links becomes genuinely important for your own sanity and for meaningful reporting later.
Create categories inside Pretty Links that reflect either your affiliate programs directly, such as a Hosting category and a Software category, or your content structure, depending on which organizing principle makes more sense for how you plan to review your data later. Use a consistent naming convention for your link slugs themselves, such as always structuring them as go/brand-name-product, so that a quick glance at your full links list immediately tells you what each one is without needing to click into it.
Consider using nested folder style slugs where appropriate, for example go/hosting/bluehost and go/hosting/siteground, which keeps related links visually grouped together within your links list even as the total number grows into the dozens or hundreds over time.
Reading and Using Your Pretty Links Click Data
Once your links are live and receiving traffic, Pretty Links records click data directly inside your WordPress dashboard, viewable under the Pretty Links menu in a reports section.
This report shows you total clicks per link over whatever date range you select, which lets you directly compare how much traffic different affiliate links are receiving relative to each other. This is genuinely useful information on its own, since it often reveals that a small number of your published pages are responsible for the overwhelming majority of your affiliate link clicks, information that should directly inform where you focus future content updates and where you might consider adding additional relevant affiliate links.
Compare your Pretty Links click data against the actual commission and conversion data reported by your affiliate network for the same link over the same time period. A link receiving a healthy number of clicks but generating unusually few actual commissions relative to other similar links may indicate a conversion problem specific to that particular offer or that particular piece of content, worth investigating directly rather than assuming your overall traffic or content quality is the issue.
How Rank Math Complements This Tracking Setup
Rank Math is fundamentally an SEO plugin, and it is not a replacement for Pretty Links as your primary affiliate link cloaking and management tool. Its relevant role in this specific tracking picture is narrower but still genuinely useful.
Rank Math includes an Analytics module that, once properly connected to your Google Analytics and Google Search Console accounts, brings search performance data, including which specific pages are attracting organic traffic and for which specific keywords, directly into your WordPress dashboard. This matters for affiliate tracking specifically because it lets you correlate your Pretty Links click data with the actual organic search traffic that page is receiving, giving you a fuller picture than either data source provides on its own.
A page generating strong Pretty Links click numbers but very little organic search traffic according to Rank Math’s connected analytics data is likely converting well through some other traffic source, direct traffic, social sharing, or an email newsletter, which is valuable strategic information about where that particular page’s real audience is actually coming from.
To connect this, go to Rank Math’s dashboard inside WordPress, navigate to its Analytics section, and follow the guided connection process to link both your Google Analytics property and your Google Search Console account. Once connected, Rank Math surfaces this combined data directly within your WordPress dashboard rather than requiring you to separately log in to Google Analytics every time you want to check performance.
Adding UTM Parameters for Deeper Google Analytics Reporting
For an additional, independent layer of tracking beyond what Pretty Links records on its own, add UTM parameters to the target URLs behind your cloaked links, which allows Google Analytics to break down your affiliate traffic and conversions by specific campaign, source, and content placement.
A UTM parameter is a small piece of text appended to the end of a URL that Google Analytics reads and uses to categorize incoming traffic. A typical structure includes a source parameter identifying where the click came from, such as your blog, a medium parameter identifying the type of placement, such as an affiliate link or a banner, and a campaign parameter identifying the specific piece of content or promotion involved.
Rather than manually typing these parameters every time, use Google’s free Campaign URL Builder tool to generate them correctly and consistently, then paste the resulting full URL, complete with its UTM parameters, into the Target URL field when creating your Pretty Link, so that the cloaked link redirects through to the affiliate offer while still carrying the UTM data that Google Analytics needs to properly categorize the resulting traffic and any tracked conversions.
This gives you a genuinely independent, third data source alongside your Pretty Links click reports and your affiliate network’s own reporting, useful specifically for cross referencing and catching any discrepancies between the three that might otherwise go unnoticed.
Ongoing Link Maintenance and Auditing
Set a recurring schedule, monthly or quarterly depending on how many affiliate links your site has, to audit your existing cloaked links for accuracy and continued relevance.
Check that each link’s target URL still correctly points to an active, working affiliate offer, since affiliate programs occasionally restructure their tracking URLs, discontinue specific products, or change their commission terms without much advance notice, and an outdated redirect destination can quietly cost you commissions for weeks before anyone notices.
Review your click data periodically to identify links that are receiving meaningful traffic but converting poorly, which may indicate a need to update the surrounding content, test a different call to action, or reconsider whether that specific affiliate program is still the right fit for your audience compared to when you first added it.
Remove or update links to affiliate programs you are no longer actively part of, since a cloaked link quietly redirecting to an expired or terminated affiliate relationship serves no purpose and can create a confusing or broken experience for a reader who clicks it.
Frequently Asked Questions
Is Pretty Links free version enough, or do I need the premium version?
The free version of Pretty Links covers link cloaking, basic click tracking, and category organization, which is sufficient for most affiliate sites, especially when just starting out. The premium version adds features such as more detailed reporting and automatic keyword linking, which become more valuable as your site and link volume grow significantly.
Does Rank Math replace the need for Pretty Links?
No. Rank Math is fundamentally an SEO plugin, and its role in this picture is limited to bringing connected Google Analytics and Search Console data into your WordPress dashboard, which complements rather than replaces the dedicated link cloaking, redirection, and click tracking that Pretty Links specifically provides.
Why do my Pretty Links click numbers not exactly match my affiliate network’s reported clicks?
Some discrepancy between these two numbers is normal and expected, since Pretty Links records a click the moment someone clicks your cloaked link on your own site, while your affiliate network records a click once its own tracking system successfully registers the referral, and factors such as ad blockers or browser privacy settings can occasionally prevent the affiliate network’s own tracking pixel from firing even though the Pretty Links click was recorded successfully.
Should I use a 301 or a 302 redirect for my affiliate links?
Use a 301 permanent redirect for affiliate links in virtually all cases, since this correctly signals to both browsers and search engines that the redirect is a permanent, intended arrangement rather than a temporary one, which is the accurate description of a standing affiliate link relationship.
Can I use Pretty Links to track links other than affiliate links?
Yes. Pretty Links works equally well for cloaking and tracking any outbound link you want visibility into, including links to your own social media profiles, lead magnets, or any other external destination where click tracking would be useful, not exclusively affiliate links.
How do UTM parameters help if I already have Pretty Links click data?
UTM parameters give you a second, independent data source inside Google Analytics itself, allowing you to see affiliate related traffic broken down by source and campaign alongside all of your other site traffic in one place, and to cross reference that data against your Pretty Links reports to catch any inconsistencies between the two.
Related Articles
- Affiliate Marketing Glossary: 50 Essential Terms You Need to Know
- How to Disclose Affiliate Links the Right Way (FTC 2026 Guide)
Final Thoughts
Proper affiliate link tracking is one of the quieter, less glamorous pieces of infrastructure behind a genuinely well run affiliate site, and it is also one of the pieces most commonly skipped entirely by beginners who focus purely on publishing content without ever building the systems to understand how that content is actually performing.
Pretty Links gives you clean, professional, manageable links along with a genuine, independent record of click activity directly inside your own WordPress dashboard. Rank Math adds a complementary layer of connected search and analytics data. UTM parameters add a third, independent verification layer inside Google Analytics itself. Together, these three pieces give you a considerably clearer picture of what is actually working than relying on your affiliate network’s own reporting alone ever could.
Set this up once, properly, early in your site’s life, and the ongoing maintenance becomes a quick, routine task rather than a recurring burden, while the insight it provides compounds in usefulness every month as your content library and link volume continue to grow.

The SiteLaunchLab Team — helping beginners build websites, choose the right hosting, and grow their online business. We research, test, and review the best tools and platforms so you can make confident decisions without the confusion.