Contents
Here’s a brief overview of the steps we’re going to take to track button clicks:
- Find your button.
- View the source code.
- Enable the variable.
- Create a tag.
- Create a trigger.
- Preview the container.
- Check Google Analytics.
- Publish the container.
How do I add an event to Google Tag Manager?
Before I start talking about specific events, let’s talk about how to set up an event in general.
- Log into Google Tag Manager.
- Select “Tags” from the left-hand side.
- Create a new tag.
- Select Universal Analytics from Tag Type.
- Set your Google Analytics Tracking ID.
- Choose “Event” for the track type.
How do I use the click element in Google Tag Manager?
What is Click Element Variable in Google Tag Manager? It is a variable that returns the element, that was clicked. By default, it is disabled in all new GTM containers and needs to be enabled by going to Variables > Configure (in the Built-in variables section). Then click the checkbox next to a Click Element.
How do I practice Google Tag Manager?
Google Tag Manager best practices:
- Plan before the implementation.
- Account/container structure and ownership.
- Use Proper Naming Conventions.
- Give GTM control only to the right people.
- Leverage Workspaces.
- Use GA Settings Variable.
- Consider using constant variables.
- Use Lookup/Regex Tables.
How to set click events in Google Tag Manager?
Go over to the Tags tab on Google Tag Manager. Click on the New button. Then, rename the tag. Go to tag configurations by clicking anywhere on the Triggering window under the Tag Configuration section. The goal is to send click events to Google Analytics, so choose Universal Analytics for the tag type.
How to track a ” button click ” event in Google Analytics?
Create an event “Tag” that connects your trigger to a Google Analytics event In the left-hand navigation, click “Tags”. Click “New Tag” and name your tag. Select “Universal Analytics as the “Tag Type” and enter your Tracking ID. (This can be found under your website’s property in Google Analytics, in the “tracking code” section.
How to create a generic click trigger in Google Tag Manager?
Create a “generic” click trigger in Google Tag Manager Navigate to “Triggers” in the left-hand navigation in your Google Tag Manager account. Click “New” and name your trigger “Generic Click Trigger”. Click “Trigger Configuration” and select “All Elements” under the “Click” Section.
How do I tag a click in Google Analytics?
Select ‘Tags’, click ‘New’ and name your tag. For my example, I’m going to name the tag ‘Button Click – Email Sign Up’. Then select ‘Tag Configuration’ and choose ‘Google Analytics’ as the ‘Tag Type’. Select ‘Pageview’ and change this to ‘Event’. Now we can choose how we want clicks on our buttons to be reported inside Google Analytics.