08-18-2023 07:00 AM - edited 01-10-2024 06:19 AM
If you're interested in keeping tabs on and recording data that Google Analytics
doesn't usually track, you'll want to learn how to set up Google Analytics event tracking.
It's a great way to get more insights!
So you've got your website set up, your content calendar is ready to roll, and you've even got Google Analytics tracking those crucial metrics for your business. Great job!
But here comes the million-dollar question: "What's next?"
Now that you've laid the groundwork for your website and business, it's the perfect moment to dive into Google Analytics event tracking. Why? Well, it lets you track and record data that Google Analytics wouldn't usually catch—giving you access to data you wouldn’t be able to measure otherwise.
There are two ways to set it up:
For this article, we'll use the recommended Google Tag Manager instructions.
But first...
It helps you keep track of different things visitors do on your website, like clicking buttons, watching videos, or downloading files. These actions are called "Events" by Google.
Think of Events as interactions with special elements on your site, like buttons, videos, images, and more. Google Analytics keeps a record of these interactions so you can see how engaged your visitors are.
For example, let's say you have a video on your website that people can view. With event tracking, Google Analytics can count and show how long people watched your video.
You can also use event tracking to see things like:
You get the idea! With event tracking and Google Analytics goals, you can see how well your marketing campaigns are doing. So now that we know what Google Analytics event tracking does, let's check out how it keeps track of all these events.
It’s simple. Just add a special code snippet (don’t worry, we’ll help you with this step) to the elements (on your website) that you want to track. This code tells Google Analytics to keep an eye on those elements and record whenever users interact with them.
The event tracking code has four main parts:
For example, if you want to track clicks on a "Download PDF" button, you can set up an event with the following parameters:
Category: "Downloads"
Action: "Click"
Label: "PDF"
Value: (Optional, numeric value associated with the event)
All the info collected by the event tracking code is returned to your Google Analytics account. That means it shows up in your GA account as an event report, giving you all the details about how users interacted with those elements.
And there you have it! Now that you know what event tracking is and how it works, let's dive into how to set it up.
As promised, here’s the more straightforward method to set up event tracking. GTM (Google Tag Manager) is a free tag management system provided by Google.
With GTM, you can send data from your website to other platforms like Facebook Analytics and Google Analytics without needing much backend coding.
It allows you to update and add tags to your Google Analytics code without manually writing backend code, saving you a lot of time in the long run.
For instance, if you want to track the number of PDF downloads, using traditional methods would require changing all download links on your website. But with GTM, you can simply add a new tag to track the downloads.
Let's dive in and learn how to set up GTM to make event tracking simple.
Create an account on the Google Tag Manager dashboard:
Next: set up a container:
A container is a bucket that contains all of the “macros, rules, and tags” for your website.
You’ll then be given the container’s installation code snippet. This is the only piece of code you’ll be pasting into your website’s backend in order to manage your tags.
This process is easier by installing and activating the Insert Headers and Footers plugin. This will allow you to add any script to the Header and Footer throughout your entire website.
Now, you have to check that GTM's built-in variables are turned on so you can create your tags.
Next: place a checkmark in the box next to the variables you want to track.
After selecting all your variables, you can then create your tag.
Go to your Google Tag Manager dashboard and click the “Add a new tag” button.
You will be prompted to create your new website tag after clicking the “Add a new tag” button.
Next, you’ll see two options to customize as follows:
By clicking that option, you can pick what kind of info you want to keep an eye on. Afterward, head to "Google Analytics Settings" and select "New Variable..." from the drop-down menu.
Afterward, you'll be directed to a fresh window where you can type in your Google Analytics tracking ID. This sends your website's info directly to Google Analytics for you to see later.
Once you've completed this step, navigate to the "Triggering" section to pick the data you intend to share with Google Analytics.
Similar to the "Configuration" step, click the Triggering button to reach the "Choose a trigger" page. From here, hit "All pages" to send data from every single one of your web pages.
Your tag will look something like this.
Lastly, click on the “Save” button, and presto! You've got a fresh Google Tag in action, diligently delivering data to your Google Analytics page, all about your website!
Congratulations! on setting up your Google Analytics event tracking! You’ll better understand your website, business, and target audience. This lets you track a campaign's ROI (return on investment). Knowing what your viewers click on helps you meet their needs.
Please click the Kudos button if you liked this tutorial and/or found it helpful 💻
Cheers!
If you have any questions, please don't hesitate to contact support. Submit a Support Ticket