How to Track Link and Button Clicks in WordPress
Have you ever wanted to track link and button clicks in WordPress but never found a decent plugin to do so?
Well, if you’re like us, you create content for a number of reasons.
You could be trying to:
- Make Sales
- Generate Leads
- Distribute Content
- Promote a Product or Service
- Create Awareness, etc, etc
No matter what your endeavours are online, you probably want a way to measure the effects of your efforts, because no-one wants to do meaningless or fruitless work.
It’s unproductive if it can’t be quantified/measured.
The only way to do this with digital information, is by tracking the number of interactions with links and clicks on our web properties, or any digital assets we create.
Disclaimer: We are affiliates, and you’ll find affiliate links spread throughout our post. We do this so that we can continue creating content and pay our bills. If you click through a link and make a purchase, we will make a small commission. (At no extra cost to you). Thank you for your support!
You could try tracking links and clicks in WordPress using Google analytics, but, you really need to know what you’re doing, because it means that you have to manually create event tracking codes for each item you want to track.
Just because you have Google analytics installed, doesn’t mean that “everything” is being tracked.
If creating a bunch of custom event tracking codes isn’t your thing, then you should consider one of the simplest solutions for creating tracking links, it’s called Monsterinsights.
Monsteringhts automates the tracking events you set. All you do is add a few prefixes to your links and buttons, then Monserinsights tracks them all.
Simple and convenient.
In this article, we’ll show you how to track link and button clicks in WordPress step-by-step using MonsterInsights.
Why Track Link and Button Clicks in WordPress?
Links and buttons are often the elements you add to a post or page, sometimes within images as call to action items.
A Call to Action is something you place purposefully, (Buy this, Download This, Read This, Signup Here), so you want to know what number of people actually do what you want.
It could be a button to download a book, a report, whitepaper or whatever else.
You could link out to another of your resources, and you want to measure the number of people who see the link and use the resources.
Let’s have a look at a few examples:
- Affiliate linkspoint your readers to recommended products or services.
- Add to Cartbuttons add products to a cart, for later checkout.
- Form Submitbuttons send data that a visitor enters into an online form.
- File downloadbuttons let your visitors download files.
- Outbound linksconnect your visitors to other sources of information.
- Call-to-actionbuttons connect to landing pages or other conversion focused pages.
- Click to call buttonsare great for lead generation purposes.
When you’re creating content, you’re doing so for a reason. You obviously want to make sales down the road, but you need to first create a relationship with your customer.
You create content and add links and buttons to different types of content, such as lead magnets, samples, courses, webinars etc.
Your goal is to get as many people to carry out the actions you set.
What you want to track are the interactions that visitors have with these buttons and links.
By tracking their interaction, you can get a good understanding of what they like, then use data to improve upon your future content.
As you start improving future content and update existing content with optimized buttons and links, you will notice increased conversions.
The result of someone taking the desired action is called a conversion. As marketers and content creators, our goal is always to get the maximum number of conversions.
By understanding and analyzing the data you get from tracking links and buttons, you can make more informed business decisions for optimal growth.
How to Use MonsterInsights to Track Link and Button Clicks
Google Analytics is very powerful and can be used to get any type of metrics you desire for your web property. The only problem, is that it was primarily built to only track page views.
In order to track anything else, you have to manually create the event markers/tracking codes for each and every action you want to track.
If you’ve never done this before, you could easily make a bunch of mistakes and get seriously frustrated by the whole process. It would probably be worth your while hiring experts to help you set up link and button tracking in Google analytics.
The other alternative is to use MonsterInsights. It’s really easy and we highly recommend you have a look at the plugin.
Using MonsterInsights the process of installing Google Analytics becomes very simple. So simple that anyone can easily set up Google Analytics and configure advanced tracking events right within WordPress.
All you need to do is download MonsterInsights, install the plugin on WordPress, activate the plugin; then, connect your site to your Google Analytics account.
With a few clicks, you’ll quickly have Google Analytics installed and configured within WordPress using MonsterInsights.
For detailed instructions, here’s our guide on how to configure Google Analytics in WordPress.
Once configured, you can look at the MonsterInsights widget in your WordPress Dashboard and get an overview of your site analytics.
If you need detailed reports for your site, you’ll need to click through to Insights » Reports in the WordPress dashboard.
Let’s setup a few tracking codes, shall we! We’ll begin with the one type I’m sure many of you have been dying to do, Affiliate Links.
- Tracking Affiliate Links in WordPress
MonsterInsights makes affiliate link tracking in WordPress extremely easy.
If you’re using any other type of link tracking plugin to manage your affiliate links, now you don’t need to fiddle with affiliate links anymore.
With MonsterInsights all you need to do is create a prefix of your choosing to identify your affiliate links. Monsterinsights will then automatically detect and track your affiliate link.
It doesn’t matter which link prefixes you use, the plugin will automatically handle the whole setup process.
This automated link tracking saves you plenty of time which can be better used to increase your website traffic. It also reduces the chance of configuration errors which can undermine your analytics report.
You can see your affiliate link tracking reports by visiting Insights » Reports » Publishers in the WordPress dashboard.
Click on View All Affiliate Links Report to see more reports in Google Analytics.
If you want detailed instructions, here’s our complete guide on setting up affiliate link tracking.
- eCommerce Tracking in WordPress
The MonsterInsights eCommerce Solution helps you create analytics information for your WooCommerce or Easy Digital Downloads store.
The eCommerce report will show all Add to Cart button clicks, all Remove from the Cart button clicks, and the total number of Buy button clicks for your online store.
To use the solution, you first need to enable eCommerce tracking in Google Analytics.
If you’re unfamiliar with Google Analytics, here’s our step-by-step guide to enable eCommerce tracking.
After you’ve enabled eCommerce tracking, you need to install the MonsterInsights eCommerce Addon to your WordPress site.
Once installed, navigate to Insights » Settings and click on the eCommerce tab.
Now you should see the eCommerce tracking options for your site. Scroll down to the “Use Enhanced eCommerce” option first, and enable it.
If WooCommerce or Easy Digital Download plugins are active, MonsterInsights will automatically detect them and begin tracking.
It’s as easy as that!
You can now see your eCommerce reports by clicking Insights » Reports » eCommerce.
If you enter the report and scroll down, you’ll see how many times the Add to Cart button was clicked and also the Remove from the Cart button.
- Tracking Form Submit Buttons in WordPress
MonsterInsights has a powerful Form Tracking addon to automate form conversion tracking.
By enabling the form tracking addon, you can view which forms are triggering the most conversions.
Form submission analytics are counted when users click the Submit or Send buttons.
To enable form tracking, you need to install and activate the Form addon.
Navigate to Insights » Addons » Forms Addon. Click the Install button.
You’ll see the button changed into the Activate state. Simply click the button to activate the addon.
Now you can see your form conversion reports by clicking Insights » Reports » Forms in the WordPress dashboard.
As you can see in the screenshot above, it includes impressions and conversions for all your forms.
Conversions refer to the total number clicks on the Submit or Send buttons in your forms.
- Tracking File Download Clicks in WordPress
If you’ve added downloadable resources on your WordPress site, tracking the number of downloads can help you understand which are your most popular resources.
In turn, this will help to create more useful resources.
MonsterInsights makes file download tracking very easy. Install this feature in a few clicks.
Go to Insights » Settings » Engagement. Scroll down to the File Downloads tab.
Monsterinsights tracks certain file extension types already. If you have other file types which you need to track, the simply enter the other extensions in the box provided, and they will also be tracked.
Just separate each file type with a comma.
That’s it! The plugin will now track all the clicks.
To see your download report, click Insights » Reports » Publishers.
As you can see in the screenshot above, you can view the total number of clicks on each of your download links.
- Tracking Outbound Links in WordPress
MonsterInsights tracks your outbound links clicks automatically and shows you the report in Publishers. But you need to upgrade to the Plus plan to view the Publishers report.
Once you’ve configured MonsterInsights, you can click Insights » Reports » Publishers within the WordPress dashboard to see the outbound links report.
Above, you can see which your most popular outbound links are with the total number of clicks recorded in the MonsterInsights Publishers report.
- Tracking Custom Links in WordPress
So far, you’ve seen how easy it is to track link and button clicks. Now, we want to discuss custom link tracking.
Sometimes a link you create is for something entirely different to your regular events and you may want the link tracked outside of your regular reporting.
MonsterInsights has a custom link tracking feature that will allow you to do this.
Let’s find out how it works:
The latest MonsterInsights Plugin Version lets you track custom links such as call-to-action buttons, subdomains, and other important links using a custom link attribution.
It’s easy to add custom event tracking to your custom links. All you need to do, is to add the following data-variable tags (highlighted in red) to the HTML of your link:
Once you’ve added the tags to your link, WordPress link tracking will be automatically done by MonsterInsights.
This will result in detailed reports from Google Analytics.
The Custom Link Attribution feature supports Google AMP pages, enabling tracking of AMP optimized, custom links.
We hope this article helped you to learn how to track links and button clicks in WordPress using Google Analytics.
We’ve partnered with
globally loved brands.
Get More Traffic
Make More Sales
It goes without saying, that the more traffic (visitors) you bring to your website, the better your chances are of converting one or more of the visitors into sales.