What does Event Tracking mean when it comes to Google Analytics? A simple explanation to this is. It is a type of measurement (quite similar to a page-view) for specific interactions on the website’s elements. These elements includes;
- External Links
- Video Loading
- Lightbox or Popups
- button clicks
- Form etc.
With events tracking implemented, you can track user and none user interactions/activities such as:
- Social Actions (Likes, Shares)
- File downloads
- Video plays or clicks
- User Comments
- Form Error Tracking
- Product Ratings
None User interactions:
- Video or Audio play duration
- Popup Opening etc.
Importance of Event Tracking In Google Analytics
Events tracking provides a means of tracking down important actions a user makes on your website. This helps you learn the results of your marketing efforts. And gives you enough data for much needed optimization and conversions. Google Analytics offers events tracking, but for the tracking to work. You have to manually define the type of custom data you want to track.
Note: However, for beginners setting up the custom tracking parameters can be a bit challenging. Luckily, you can setup all your custom event tracking with the help of a plugin.
Why Using A Plugin Event Tracking is Ideal
Using a powerful plugin like MonsterInsights. Is the best and the only available method to go by. So, in this article, we’ll show you how to set up Google Analytics custom events tracking in WordPress.
MonsterInsights is the best WordPress Analytics plugin. Get it for free!
Keep in mind, an event has 3 main and other optional components:
Achieved by Calling the _trackEvent() method in the source code of a page object, widget, or video.
The signature of the _trackEvent() method is as follows:
_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
The name you supply for the group of objects you want to track. Eg. “CTA” for buttons.
A string that is uniquely paired with each category, and commonly used to define the type of user interaction for the web object. Eg. “Click” for clicking on the buttons.
An optional string to provide additional dimensions to the event data. Eg. “Buy Button” for your sidebar button.
An integer that you can use to provide numerical data about the user event.
A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation.
So, for example, to set up a call-to-action button event tracking, you can add event conditions like the ones below:
- Category: “CTA”
- Action: “Click”
- Label: “Download Button”
Once event tracking has been set up and working on your site for 24hours, go to the Content section of the reports and view your call-to-action button clicks with the above Event Tracking parameters.
Setting Up Google Analytics Custom Events Tracking in WordPress
You can set up Google Analytics custom events tracking in WordPress using MonsterInsights Custom Link Attribution – EASIEST method ever!
MonsterInsights Google Analytics plugin simplifies the whole process of setting up custom event tracking in WordPress. Anyone can do it, even if they have zero coding knowledge. Let’s add our tracking.
Adding Custom Link Tracking with MonsterInsights
A latest version of the plug-in is needed for you to use this feature. This is because, MonsterInsights introduced a new Custom Link Attribution feature to allow you easily add custom event tracking to your custom links. All you need to do is to add the following data-variable tags to the HTML of your link:
<a href="https://example.com" data-vars-ga-category="Custom Category" data-vars-ga-action="Custom Action" data-vars-ga-label="Custom Label" >Example</a>
Once you add the tags, MonsterInsights will track your WordPress links and provide you with detailed reports.
For example, add a call-to-action button. Suppose the call-to-action button is a link to your signup page: https://example.com/signup
Here, we’ll use the following event conditions:
- Category: “cta”
- Action: “click”
- Label: “Signup button”
Now, you’ll need to replace the event category, action, and label with your event conditions. Then your custom event tracking link will look like the one below:
<a href="https://example.com/signup" data-vars-ga-category="cta" data-vars-ga-action="click" data-vars-ga-label="Signup button" >SIGNUP Now</a>
Note: The Custom Link Attribution feature also supports Google AMP pages, so you can precisely track your AMP optimized custom links.
Time to view the reports data from your custom event tracking link. So, head over to the Publishers report in MonsterInsights.
Go to Insights » Reports» Publisher. Next, scroll down and view the Top Outbound Links report if you created a custom link like the one for signup in the example.
We hope this article helped you learn how to setup Custom Event Tracking in Google Analytics using MonsterInsights Analytics plugin.
Want to Add Google Analytics?
By far MonsterInsights has been our number one Google Analytics plugin for. for WordPress
MonsterInsights offers an unconditional money back guarantee of up to 14 days.