How To Track Link and Button Clicks in WordPress

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!



Google Analytics


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.


monsterinsights for google analytics and link tracking in WordPress


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.


monsterinsights in the wordpress dashboard, use it for google analytics and link tracking in wordpress


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.


  1. 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.


link tracking in wordpress is made really easy using the monsterinsights plugin and using google analytics


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.


track all your affiliate links with monsterinsights, this helps you keep track of the links and helps you see what's popular with your audience


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.


  1. 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.


use monsterinsights to track product link clicks, checkout clicks, add to cart clicks and cart abandonment clicks, so that you can fix any issues and optimize your site for conversions


It’s as easy as that!


You can now see your eCommerce reports by clicking Insights » Reports » eCommerce.


the monsterinsights ecommerce report gives you all the statistics you need to make sure your online store is optimized for conversions so that you can skyrocket your sales


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.


with monsterinsights you can track add to cart and cart abandonment clicks, helping you identify any type of blockage in the flow of your checkout process, it may help you create aquestionnaire to get people to give you input so that you can improve your checkout process, making it easier for customers and increase your conversions



  1. 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.


use monsterinsights to track form submissions, its a great way to analyze how many times people submit their data for you to collect


You’re done!


Now you can see your form conversion reports by clicking Insights » Reports » Forms in the WordPress dashboard.


the monsterinsights forms report shows you how many times people click various buttons on forms to submit the data to you


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.


  1. 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.


use monsterinsights to track file downloads from your site, simply add the extension types your want tracked and monsterinsights immediately tracks them for you


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.


use monsterinsights download link report to find out which of your downloads are the most popular, then you know what your readers want more of, then go out and create more


As you can see in the screenshot above, you can view the total number of clicks on each of your download links.


  1. 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.


the monsterinsights outbound link reports shows you the most popular outgoing link clicks you got, giving you an indication of the content your readers are interested in


Above, you can see which your most popular outbound links are with the total number of clicks recorded in the MonsterInsights Publishers report.


  1. 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:


data-vars-ga-category=”Custom Category” data-vars-ga-action=”Custom Action” data-vars-ga-label=”Custom Label“>Example


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.

HOME          ABOUT          SERVICES          RESOURCES           CONTACT          BLOG

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.