X

How to Track Affiliate Links in Google Analytics (Easy Way)

How to track affiliate links in Google Analytics

Want to learn how to track affiliate links in Google Analytics? By tracking your affiliate links, you can find out exactly how your users are interacting with them on your site. Then, using the gathered data, you can optimize your links for better conversions and revenue.

In this article, we’ll show you how to track affiliate links in Google Analytics in 3 easy steps.

Why Track Affiliate Links?

Without a doubt, affiliate marketing is one of the most popular ways to make money online. If you have a good amount of regular traffic coming to your WordPress site, you can earn a tidy sum of money by adding affiliate links on your site. Affiliate links are links to sales pages for other people’s products with your affiliate id attached. So, when people buy products through that link, you earn a certain amount of commission money.

When managed properly, affiliate marketing can give you good perennial income. However, successful affiliate marketing isn’t possible without proper data and analytics. You need actual statistics on how your users are interacting with the affiliate links to optimize said links and to run affiliate marketing campaigns well.

That’s why you need to track your affiliate links. Here’re few benefits of affiliate link tracking:

  • Get actual data on user interaction: You can find out exactly how users interact with your affiliate links. Analyze where people are clicking the most.
  • Identify your most profitable links: Find out which links are leading to the most conversions and focus on them.
  • See most converting pages: View which pages are leading most affiliate sales and optimize them for more revenue.

In a nutshell, affiliate tracking helps you to see how users view and interact with your affiliate links. It provides comprehensive data with which you can optimize your affiliate marketing strategies and maximize your earnings.

Tracking Your WordPress Affiliate Links in Google Analytics

Google Analytics is the best web analytics platform available on the market. It helps you track your entire website traffic and their interactions on your site. As such, affiliate tracking is just 1 type of metric that Google Analytics tracks.

Although Google Analytics has the ability to track a wide variety of metrics, advanced tracking like affiliate links and eCommerce reports are a bit tricky for beginners to set up. Fortunately, there’s an EASY way to use Google Analytics in WordPress: MonsterInsights.

MonsterInsights

MonsterInsights is the most popular WordPress Google Analytics plugin on the web. It simplifies the whole process of using Google Analytics in WordPress. Using MonsterInsights, you can set up Google Analytics affiliate tracking in just 2 minutes.

But, before that, you’ll need to add and manage your affiliate links properly in WordPress. So, we’ve parted this tutorial in 3 steps as given below:

Step 1: Managing Your Affiliate Links in WordPress Using ThirstyAffiliates

ThirstyAffiliates is the best affiliate management plugin for WordPress. It allows you to add your affiliate links from one place in your dashboard, organize them by categories, and manage them efficiently. Most importantly, it allows you to cloak your affiliate links (i.e. to transform long complex affiliate links into short pretty links).

For example, here’s what an affiliate link normally looks like:

https://example.com/products/?product_id=123&affiliate_id

Now, you can cloak the link and make it short like the branded URL shown below:

http://www.yoursite.com/recommends/product-name

The main benefit of managing affiliate links with ThirstyAffiliates is that it stores your affiliate links in your site’s backend, so you can find the links easily anytime you want to add them to content. They’re searchable by names.

Second, cloaking transforms long, ugly affiliate links into pretty links. It also makes the affiliate links look like internal links which are actually external. This prevents your users from seeing direct affiliate links and enhances your chances of getting more clicks.

Best of all, using an affiliate link management plugin allows you to easily track your affiliate links in Google Analytics. MonsterInsights affiliate tracking also uses cloaked links for tracking.

So, your first task is to install ThirstyAffiliates and add your affiliate links to its interface. It’s easy to add and manage your affiliate links using this plugin.

If you need detailed instructions, check out our tutorial on how to add affiliate links in WordPress with ThirstyAffiliates.

After you add and manage your affiliate links with ThirstyAffiliates, you’re ready to set up affiliate tracking with MonsterInsights.

Step 2. Setting Up Affiliate Tracking in Google Analytics Using MonsterInsights

Setting up affiliate tracking with MonsterInsights is really simple. It’ll take just a few clicks to complete the setup process.

To get started, you’ll need to install MonsterInsights on your WordPress site. Then, connect your site with Google Analytics using MonsterInsights. It’s easy to set up Google Analytics with this plugin.

If you need detailed instructions, here’s our step-by-step guide on how to set up Google Analytics in WordPress with MonsterInsights.

After the setup process is complete, you’re ready to set up affiliate tracking.

Navigate to Insights » Settings from your WordPress dashboard and then click on the Tracking tab at the top of the page. Then, go to the Affiliate Links tab in the left taskbar.

monsterinsights-affiliate-tracking-setup

There, you’ll see 2 fields:

1) Set path for internal links to track as outbound links:

In this field, you’ll need to specify the path for internal links to track as outbound links. When using an affiliate management plugin like ThirstyAffiliates, your affiliate links will look like an internal link.

For example, your affiliate may look like this: http://yoursite.com/recommends/product-name

In the above example, the link looks like an internal link however it redirects to an outbound link (i.e. an affiliate link). And, your affiliate links are cloaked with /recommends/.

Now, you’ll need to paste /recommends/ in this field, so that Google Analytics can identify which internal links are affiliate links. If you use multiple prefixes, you can separate them with a comma: /recommends/,/out/.

2) Label for those links:

The label in your Google Analytics report lets you identify where the click came from. For example, you can add a label aff to your affiliate links.

After you complete these 2 fields, click Save Changes.

That’s it. You’re done with affiliate link tracking setup.

Step 3: Viewing Affiliate Link Tracking Reports

Now that you’ve set up affiliate tracking in WordPress with MonsterInsights, you may be curious how to view the reports. So, here it is!

With MonsterInsights, you can view your most important analytics reports right inside your WordPress dashboard. To view your affiliate reports, go to Insights » Reports » Publishers from your WordPress dashboard.

affiliate-links-reports-monsterinsights-dashboard-reports

This report shows you the 10 best affiliate links for your site. If you want to see more than that, you can click the View All Affiliate Links Report button at the bottom of the report. That will redirect you to Behavior » Events Top Events in your Google Analytics account.

top-events-ga-reports

We hope this article helped you to learn how to track affiliate links in Google Analytics.

You may also want to see our guide on how to create an Amazon affiliate store with WordPress.

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!
[60% OFF Today!]
[60% OFF Today!]
[10% OFF Today!]
[10% OFF Today!]
[50% OFF Today!]
[50% OFF Today!]