Clicks are an important metric when looking at your marketing performance. Luckily, you can use Google Tag Manager to track campaign button clicks in Google Analytics and get greater insight into your participants’ behaviour. This guide will walk you through tracking clicks on the “participate” button used in a campaign.
What's the plan?
For this tutorial, we are going to track the participate button from our campaign:
If you’re just starting with Google Tag Manager (GTM) and Google Analytics, everything can look overwhelming. We totally understand that, but don’t worry! It’s fairly simple to track the participation button. You can easily complete this in less than 10 minutes, five if you are fast 🙂
Let's get started, shall we?
Step 1: Create a tag in the Tag Library
Firstly we want to create a tag which will send an event to Google Tag Manager when our participate button is clicked. To be more precise, the tag pushes click data to the data layer.
So, here's how to do it...
- Navigate to Settings in the main navigation in your Qualifio account.
- Then go to Tag Library > Tags.
- Click Create a tag and name your tag “GTM event Participate button”. (This is just an example. Any other name is perfectly fine – as long as you follow the limitation of name length. Qualifio doesn’t process an event name with more than 30 characters. Up to you!)
- Copy and paste this code under the Body section.
- Click Save.
Cool, your tag is created! Let’s move on.
Step 2: Configure your tag manager
Now, to make the work in GTM much faster, you can import the awesome variable and trigger templates our expert has prepared for you! Here is the collection of templates (JSON) you should import.
Go to your GTM container’s Admin section and click Import Container. If you want to learn more about container import in Google Tag Manager, read Google’s guide.
The last step in configuring your tag manager is simply creating a tag that will record the event in Google Analytics (or your preferred analytics tool). Select the trigger “Qualifio Action – Participate button” that you imported in order to fire the tag when a form is submitted.
Done!
Here is an overview of the final setup:
Step 3: Assign the tag to a campaign & test!
There’s one more thing you need to do: use this tag in one or more campaigns you want to track.
Let’s say you have five campaigns on your Qualifio website and you want to track them all. You could go ahead and attach the tag to that website (under Websites > Tags).
However, if you just want to track one of these campaigns, you can do the same in the campaign you want to track:
That’s it! Now, in Google Analytics, you should be able to see events coming in.
Now you know how to track participate button clicks. But the journey might just begin here, there are more events you can track. Reach out here if you need help with your tracking implementation or if you want more information.