How to Add Event Tracking With Google Analytics in WordPress using MonsterInsights

Do you want to know who clicked on the “Sign up” CTA button on your website or who clicked on that particular link? In this article we have created a guide on how to setup event tracking with Google Analytics in WordPress so that you can keep a track of events that occur on your website

By the end of this article you will be equipped with the knowledge on how to setup Google Analytics Event tracking in your WordPress website. Post that you can check out how many people clicked on your main CTA buttons as well as link clicks.

Before we go ahead with the steps on how to set up event tracking in Google Analytics it’s important to understand the basic concepts of events and then learn in detail about event tracking. 

What are Events in Google Analytics

The user’s interaction / activity that occurs on your website, webpage and the elements on your website which gets recorded in Google Analytics is referred to as Event in context of Google Analytics.

Examples of Events in Google Analytics

Below we have given some of he examples of events which can be tracked in Google Analytics

1. When someone plays or pauses a video (this can be considered as an event)

2,. Onclick – When someone clicks on a CTA button (e.g Submit or Sign up, Request a Demo etc) so clicking on a button can be considered as an event

3. Downloaded a file – When someone downloaded a file from your website that can be considered as an event

4. Scroll Depth – User Scrolling a percentage of your webpage even that is considered as an event

Now that we have understood what are events and some of the examples of Events in Google Analytics it’s time to understand the concept of Event tracking and what it exactly means and why is it important to setup Event tracking

What is Event Tracking in Google Analytics & Why is it Important to implement

Google Analytics by default doesn’t track certain events which do not generate pageviews when they occur and that is the reason why it is important to setup event tracking

Event tracking helps you to keep a track of user’s interaction with the various elements on your website. By setting up Event tracking you will get deep insights on which elements work for you and which don’t. Let’s understand this with the help of an example

There are two CTA buttons on your webpage and you want to know which is the CTA button which is preferred more by the users. After setting up Event tracking you come to know that the CTA button in the first fold received 5X more clicks as compared to the CTA button below the first fold then you can derive insights from this and take strategic decisions so as to improve the conversions on your website.

Suppose you setup scroll tracking event – This will tell you how much percentage of your webpage was seen by the user after scrolling (e.g 25%, 50%, 75%, 100%). Again by keeping a track of the scroll depth you can get an idea if the user is actually reading or going through the whole web page or only a section of it.

So the main intent of Event tracking is to analyze the user’s interaction with the various elements on your website, derive insights from them and work on strategies to improve the conversion rates.

You can check this in Google Analytics Under the Behavior Report –> Events section (Refer to the below screenshot for more details)

Now that we understood Event tracking with the help of some real life examples it’s time to understand the 3 main components of events

  • – Event Category
  • – Event Action
  • – Event Label
  • – Event Value

Now let’s understand these components one by one

1. Event Action – This gives more details about the type of interaction

e.g Clicking on a CTA button,

playing a Video,

  • scrolling down the page

2. Event Category: Event category is the name of the group of events you wish to track. E.g Videos, CTA buttons link clicks etc

3. Event Label – Event Label is the name of the webpage element for which you wish to track the user’s interaction

If you find this to be difficult to understand let’s simplify it with an example (I love explaining using Examples, I feel that you understand in a better way when explained using examples.

Let’s assume we have a Youtube Video named “Salsa Dance” so we will understand the various components of Events in the below example

1. Event Category in the above case would be – Videos [Event Category – Videos]

2. Event Action in the above case would be play, pause, etc

3. Event Label in the above case would be the name of the Youtube Video for which we wish to do Event Tracking and in this case Event label is “Salsa Dance”

Now I hope you might have go clarity to a great extent as to what is Event tracking and why it is important

Let’s get Started with the implementation

There are a couple of ways you can setup Event Tracking in Google analytics

1. Traditional method by making use of Google Tag Manager (If you are a beginner then you might find Google Tag Manager to be a Bit complex and hard to understand also you might end up scratching your head while doing all of this setup.

2. The Second solution is by making use of Monsterinsights plugin which is easy peasy and even beginners can manage getting the event tracking setup done hassle-free

To the uninitiated, Monsterinsights is one of the most popular Google analytics plugin for WordPress and it will simplify the setup of Event Tracking for your WordPress website.

Monsterinsights has tons of cool features and simplifies analytics for WordPress website so much that even a beginner can navigate across the Analytics dashboard inside of their WordPress website

If you were to go with the traditional method of setting up Event tracking with Google Tag Manager it will take a lot of time besides that it has a steep learning curve and that is the reason we recommend making use of the Monsterinsights plugin for setting up Event tracking for your WordPress website. Without any further ado. let’s get started with the implementation

Setting Up Event Tracking For WordPress Website Using Google analytics and Monsterinsights

IN the subsequent steps we will see how you can setup Event Tracking for your WordPress website using Google Analytics and Monsterinsights by using minimal coding (Worry not, you don’t have to be a coding expert to accomplish this task, just keep following the instructions that are stated.

Step 1: Install the Monsterinsights Plugin

The first step that is needed is that you will have to install the latest version of Monsterinsights plugin.

In order to install the Monsterinsights PLugin follow the below given steps

Navigate to your WordPress dashboard –> On the extreme left hand side go to Plugins Section –> Click on Add New

Adding a New Plugin to WordPress Website

Once you click on “Add New” you will come across a screen similar to the one shown below wherein you will search for “Monsterinsights” in the search bar

Installing a WordPress Plugin

Now click on Install Now and activate the plugin. Once you are done with this process proceed to the next steps.

Step 2: Add Data variable Tags to your HTML code

In this step we will be making use of Monsterinsights’ Custom link attribution feature.

Important Pre-requisite

In order to make use of Monsterinsights’ Custom link attribution feature you need to have Monsterinsights Plus plan or above version. If you don’t have that you should buy the Plus plan or above and then only proceed further because this feature isn’t available in the Basic plan.

Assuming that you have already purchased the Monsterinsights Plus plan and above let’s get closer to the implementation

All that we need to do is add the following data-variable tags to your HTML code in order to track call to action button clicks to see which ones performed better than the others

<a href=””
data-vars-ga-category=”Custom Category”
data-vars-ga-action=”Custom Action”
data-vars-ga-label=”Custom Label”>Example</a>

As you can see in the above example we have provided all the 3 components – category, action and label

As you can see in the above example we have provided all the 3 components – category, action and label

Now let’s understand the above scenario with the help of an example

Let’s take a real life scenario that I have a CTA button “Request a Demo” on the sidebar of one of my websites and when the user clicks on it they go to a separate landing page wherein they can fill out the form and request for more details about our product. So in this example we are going to track how many people clicked on that “Request a Demo” CTA button and setup an event tracking

For the above example we will use the following Event components

– Event Category: CTA

– Event Action: Click

– Label – Request a Demo

Now we will need to replace the Event category, action and label for the above scenario. Refer to the Blue colored section above

<a href=””
data-vars-ga-label=”CTA Button”>Request a Demo</a>

That’s all that was needed to be done. Now in order to check the data about Event Tracking inside of your Monsterinsights dashboard follow the below given steps

Navigate to your WordPress Dashboard –> Go to Insights –> Reports –> Now Click on Publishers

Once you click on Reports you will come across a screen similar to the one shown below

Once you click on the Publishers ab as shown in teh above screenshot then scroll down below to find the Outbound Links report there you will find the details about the total clicks for the links which you have created event tracking for

Besides this if you are an Affiliate Marketer and you want to keep a track of all the Affiliate links and the clicks they received you can do so by going to the “Top Affiliate Links” section there you will see the complete data on which affiliate link of yours received the maximum number of clicks as shown in the screenshot below

Affiliate Link tracking Inside Monsterinsights

You can get the details about the Event Action, Event Category, Event Label right inside of your Google Analytics.

Go to Behavior –> Events (there you can switch the tabs to check the Event Label, Event Action, Event Category to see the respective things)

That brings us to the end of this Custom event tracking for your WordPress website using Google Analytics and Monsterinsights

We hope you enjoyed reading this detailed tutorial. So what are you waiting for get the Monsterinsights Plus plan today and start tracking your link clicks, CTA button clicks and much more and take your conversions to the next level.

Leave a Comment

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