How To See Clicks On Your Affiliate Links In Google Analytics

How To See Clicks On Your Affiliate Links In Google Analytics click tracking

Tracking performance in affiliate marketing is a favorite past-time of the affiliate marketer.

We’re creatures who pay a lot of attention to numbers, conversion rates, and click through rates.

So what if you could see clicks on your affiliate links in Google Analytics for your site as they happen? Wouldn’t that be nice?

Today I want to introduce you to a very cool feature. It’s actually one we’ve had for a while, but we gave it a makeover when we launched ThirstyAffiliates Pro back in October 2017.

It’s called Google Click Tracking, and it’s the module responsible for pushing clicks through to your Google Analytics account.

How Google Click Tracking Works

Events in Google Analytics

Google Analytics is a great platform because you can use it for tracking just about any kind of analytical data for later examination. I especially love it because you can push events to it, and those events can track all sorts of neat things.

We harness the power of events in Google Analytics with our Google Click Tracking module to track clicks on affiliate links on your site.

The Click Tracking module sends information about click-throughs to your site’s Google Analytics profile, allowing you to query information about your clicks over a period of time.

Once the module is set up, you can see click-throughs in your Google Analytics account under Behavior > Events.

This module shows you which links were clicked, when they were clicked, how many times they were clicked, and on what page they were clicked.

Beyond that, you can use the module to do other cool things with Google Analytics by cross-matching it against what types of people clicked your links, what devices and operating systems they were using, and even more data mashing.

Setting Up Google Click Tracking

In ThirstyAffiliates Pro, Google Click Tracking is a module you can activate under ThirstyAffiliates > Settings, Modules tab. By default, it’s already turned on, so it may already be working for you if you have the default Google Analytics setup.

Google Analytics can be inserted into your website a number of different ways:

  • Global Site Tag (gtag.js) – The latest version of their script code.
  • Universal Google Analytics (uses the ga() function) – This is what most people use currently and what most of the Google Analytics helper plugins (such as Google Analytics for WordPress by MonsterInsights) use.
  • Legacy Google Analytics (uses the older _gaq() function) – This is the older script that is no longer in use but is still supported. If you have a really old site it might be using this.
  • Google Tag Manager (uses the tag manager code) – This is the tag manager product that Google provides to larger sites and agencies for easier management of script tags. This type requires some extra steps to setup.

To get Google Click Tracking working in ThirstyAffiliates Pro, you just need to tell it which tracking script you’re using on your site:

click tracking

As you can see in the screenshot above, it’s very easy to switch between tracking scripts. As far as basic steps to get it working goes, this will be all you need to do for 98% of all sites.

There are also two other options on the screen which you may have noticed:

  1. Custom event category name – By default, events are recorded under the Event Category in Google Analytics as “Affiliate Link.” This option lets you change that.
  2. Custom Function Name (for universal GA) – When you’re using the Universal Google Analytics tracking script, some plugins or developers may optionally change the JavaScript function name from ga() to something else. This is perfectly okay to do, but Google Click Tracking will need to know about it if you want it to work. Hopefully, you won’t need to touch this setting, but at least now you know what it’s for!

What It Looks Like In Google Analytics

Click events on your affiliate links get pushed to your Google Analytics profile in real-time.

Real Time Affiliate Link Click Event Tracking click tracking

You can also see the affiliate link clicks in report style under Behavior > Events.

The Events > Overview section will show you the raw numbers of clicks on all affiliate links.

Then, if you drill down into the Event Category (default name is “Affiliate Link” as mentioned above), you can see the Event Actions, which contains the cloaked affiliate link URLs that were clicked (great for seeing how many visitors clicked a particular link).

Drill down another step and you can see the Event Label which will, by default, show the page the affiliate link was clicked on. This is quite handy if you have a link and you want to find out on which pages that link was clicked most.

Great! How Do I Get It For My Site?

ThirstyAffiliates ProGoogle Click Tracking is a module in ThirstyAffiliates Pro, which is the paid extension to our free ThirstyAffiliates plugin.

I encourage you to download the free version first, play with it, and get used to the functionality of ThirstyAffiliates. Then explore the pricing page to see if upgrading to the Pro extension will benefit you.

There’s also a lot more to the Pro version than just Google Click Tracking, which is just one of our amazing features. Click through here to see all the features compared side-by-side.

Affiliate Link Disclosure

10 thoughts on “How To See Clicks On Your Affiliate Links In Google Analytics

  1. Wow, This guide is accommodating, I was using other link cloakers in the past from wordperss.org, but it had to track for clicks inbuilt on it with very less info, and of course, the tracking stats was making the extra load on my blog,

    thankfully the Thirsty Affiliates plugin comes with GA integration which is the best feature by my view,
    GA does the best analytics of clicks, and all loads and history are on Google’s server. so it offers you better analytics for everything/

    Thirsty Affiliate Plugin is excellent, it can have more features like conversion tracking from Affiliate networks,

  2. Wow, This guide is accommodating, I was using other link cloakers in the past from wordperss.org, but it had to track for clicks inbuilt on it with very less info, and of course, the tracking stats was making the extra load on my blog,

    thankfully the Thirsty Affiliates plugin comes with GA integration which is the best feature by my view,
    GA does the best analytics of clicks, and all loads and history are on Google’s server. so it offers you better analytics for everything/

  3. Thanks Josh for sharing about the tracking of affiliate link through analytics, for now i am using the free membership of the thirstyaffiliates. it’s working fine. Thanks

  4. ThirstyAffiliates is a great plugin, and I recommend it to all new sites. I’m still trying to figure out why some clicks on my affiliate links get recorded in analytics according to what this article says, and why others are recorded as some variation of “Outbound Link – Affiliate.” That variation means that the total statistics have to be manually reviewed, since they exist in two places Any idea how to fix this?

  5. Thanks Josh for sharing about how to track the affiliate link through Google analytic with ThirstyAffiliates Pro.
    I am using the free package of the ThirstyAffiliates on my two site for link cloaking. But now i want to track the my affiliate link through analytic. I am thinking to go with ThirstyAffiliates Pro.

  6. Great – I’ve been trying to find an easy way to connect Thirsty Affiliate data to Google Data Studio. Hopefully this works.

Leave a Reply

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

[FREE GUIDE]
[FREE GUIDE]
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']