Note(3): The ‘Fire this trigger’ condition makes sure, that this trigger does not fire for clicks on the links, which are internal i.e. Copyright © 2020 OptimizeSmart.com All rights reserved. The built-in functionality covers a lot of interactions that can be captured (clicks, element appearances, Youtube video interactions). We then set up our tag in the following way. How to set up Microsoft Ads event tracking with Google Tag Manager. There are two ways that GTM can track events like clicks. Google Tag Manager and Event Tracking Setup February 16th, 2016 by Dario Zadro in Data & Analytics , Tutorials Google Tag Manager (GTM) is quickly becoming the go-to solution for all digital marketing agencies and teams. That’s why you only get all these pageviews and try to do something with it. Add a dataLayer variable to read the form’s GUID. Scroll down until you find click variables and enable ALL of them one-by-one. But don’t worry, here are the most common issues that I’ve noticed when someone says that event tracking is not working for them. I mentioned partial deployment (with and without GTM) because I get a lot of emails from folks who get stuck with their implementation just because somehow feel they compelled to use GTM for all of their tracking needs. And in general, just by looking at page view data you cannot possibly know whether people are engaging with your content, submitting forms, etc. Step-7: Click on the image link and test whether the event data is being sent to Google Analytics, via Real Time > Events reports in your main Google Analytics reporting view: Consider following form with three input elements and a submit button:
What is Google Analytics event tracking used for? You are trying to track interactions within the iFrame, #4.5. Enable this trigger when all of these conditions are true: Click URL does not contain <>. If you see View frame source (at least on Google Chrome), this means that you are working with an iFrame and regular Google Tag Manager event tracking will not work. Google says to set Category to "Nav" & Action to "Select", but when I go to create these variables, I don't see them from the options. We want our tag to fire not on all clicks, but only those that are external (outbound). Once all of your events are firing correctly in your preview environment, you are safe to leave preview mode and publish your new Tag Manager container. If you use Google Tag Manager to manage your tags, read the Analytics Events tag setup guide. Go to the Variables tab. You can always rely on developers. If the ‘ID’ attribute is missing, then ask your developer to add one. I have a sidebar widget, that is loaded on random basis (not on every pageload). The Value field accepts only numbers and it represents the monetary value of that particular event to your business. There, you’ll see some link-click-related parameters, like gtm.elementId or gtm.elementClasses, for example: Even though the click data is tracked by Google Tag Manager, it is not available in the Variables tab of the P&D console. Then the result would be .(pdf|docx?|xlsx?|pptx?|zip|rar|tgz|mp3|odt|exe). Event tracking allows you to send event user-triggered interactions to Google Analytics. Setting the tag for Event Tracking is the same process every time. For example, Click ID. In fact, I’ve created a guide – 99 things you can do with Google Tag Manager (and this goes even beyond the event tracking). The other option to check it is to use Inspect Element feature of your browser. The built-in functionality covers a lot of interactions that can be captured (clicks, element appearances, Youtube video interactions). Setup Facebook Event tracking using Google Tag Manager. You’ll see a new event, Link Click. In a nutshell, iFrames enable developers to embed one HTML document within another. Note(1): replace ‘yourdomain.com’ by your website name. The more information you provide, the better we’ll understand your project and find the right solutions for you. And when those events are sent to GA, you’ll have a report like this: Much better right? Conversion tracking, basic remarketing, and dynamic remarketing are fully supported with Google Ads. To learn about implementing scroll tracking via GTM, check out the following two articles: #1  Implementing Scroll Tracking via Google Tag Manager, #2 Scroll Tracking via Scroll Depth Trigger in Google Tag Manager. fire Google Analytics Event code when the ID of the clicked button equals “main-cta-button”). However, not always things go easy and sometimes obstacles may occur. By default, Google Tag Manager does not track clicks. Step-3: Right-click on the link and select ‘Inspect‘ from the drop-down menu: You will now see the Google developer console window at the bottom of the page: Step-4: Note down the value of the ‘id’ attribute of the anchor tag (). , Your email address will not be published. With the original UET tag that you added to all pages of your site, you’re able to track the URL goals like we discussed above. Analytics Mania - Google Tag Manager and Google Analytics Blog |. How to set up event tracking with Google Tag Manager. If something is embedded on a page, you cannot track what’s happening within the iFrame unless: So if, for example, you are trying to track clicks of certain elements but no events are displayed in the Preview and Debug mode, chances are that you are dealing with the iFrame. I understand that some readers of this blog post are just starting with GA so they might not be familiar with the event tracking concept. But if you still want to reinvent the wheel, then here is the detailed guide on tracking form fields. Note: I have used ‘Page Path’ as event action, so that in my event tracking reports, I can see the page on which the ‘Form submit’ event was triggered. 1. Click New Tag in Google Tag Manager. To find your form ID, right-click on the form, select ‘Inspect Element’ (Google Chrome) and look for the ‘ID’ attribute in the tag. Each GA tag requires a Tracking ID and, optionally, other settings to configure. Email:
Your email address will not be published. I have used ‘Page Path’ as the event label so that in my event tracking reports, I can see the page on which the button was clicked. then you set the ‘Trigger Type’ to ‘Click All Elements’. The problem with out-of-the-box Google Analytics is that it’s too generic. Ask him/her to push the interaction and its data to the, This guide definitely does not cover all the possible scenarios. The other is Auto-Event Tracking. Once you get logged into Google Tag Manager you can follow these steps. Step-8: If everything is working as intended then publish the new version of your container. Note(2): Make sure that the ‘check validation‘ option is checked. Tracking Virtual Pageviews with Google Tag Manager. But there are still many interactions that require custom solutions. Is there a way to save events so I can come back tomorrow and see what happened the day before? No, you do not have to use GTM to track events. Password:
For example, an interesting data point would be the “topic of the document”. This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing. Save it and refresh the preview and debug mode. Then create a Scroll trigger in GTM with the following settings (you change the percentage values to whatever you prefer): Last but not least, GA Event Tag. Choose Custom Event as trigger type and enter the following settings: Done. Select Universal Analytics from Tag Type; Set your Google Analytics Tracking ID; Choose “Event” for the track type; Set your Event Category, Action, Label and Value as desired* Set your triggers as required *Note: This is how your events will be named within Google Analytics. Other possible reasons why event tracking with GTM is not working, Combine multiple events and if all of them occur on a page, 99 things you can do with Google Tag Manager. In order to create more precise triggers, we need yet another ingredient, variables. Note: If you want to use the ‘id’ attribute of the image tag instead of the ‘id’ attribute of the
tag in order to identify your image link: , . Event Tracking Example #3 – Scroll tracking. Moments later they start seeing some data in their reports, with all these “wonderful metrics” like bounce rate, time on page, average session duration, etc. Also, you can enable Pause, Seeking, and Buffering tracking. The problem in my example is that only one hit was tracked by GA — pageview. You will still have those 3 events (unless, of course, you have implemented some other tracking functionality in your GTM container sometime before). Without further ado, let’s take a closer look at what event tracking in Google Analytics is, why is it valuable and necessary, how to configure it with Google Tag Manager and troubleshoot, and many other things. Manually tracking form fields is difficult, time-consuming, and highly prone to errors. If you also wish to use registrationCountry and plan as variables in your Google Tag Manager tags, read the guide on how to access data in the Data Layer and turn them into GTM variables. You can check that by enabling the Preview and Debug mode and refreshing the web page that you’re working on. I know, this sounds pretty obvious, but really — just google it. Using Google Tag Manager, you can deploy different types of tracking codes (tags) such as the Google Analytics tracking code on your site without needing to edit your website’s code. Now that you know the impact of video on the performance of a page, use your new event to answer more questions and do deeper analysis. If you have a large site or you want to track many different things, GTM can also help you scale your event tracking easily. You will need: – Facebook Ads Manager – Facebook Pixel Helper – Google Tag Manager set up and ready to go If you can’t find a unique class name then ask your developer to add the ‘ID’ attribute with a unique value. In Google Tag Manager, go to Triggers > Trigger Configuration > New > Just Links. The order is important here. Using a Tag Manager. Leave all the settings as they are and name the trigger All Link Clicks (or anything else). Consider the following link on a web page: Download SEO Guide. If none of the above solutions helped, cooperate with a developer. Thanks to this, we are able to see link click events in the P&D mode and inspect what data is available with each click. All outbound links start either with http or https. Note(2): If you are not sure what trigger is and how to create a new trigger in GTM, then read this article: Understanding Triggers and Variables in Google Tag Manager. Create a trigger to that fires on the form success event. Go to the page where you wish to track outbound links with Google Tag Manager. This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business. pageview or event), then it’s a bounce. If a session consists only of one hit (e.g. Now we look at auto or automatic event tracking within Google Tag Manager that will allow us to track our event without actually changing the code on the page. Note(1): {{Click URL}} is a built-in variable in GTM which returns the URL of the link clicked. There are many reasons you may need to specify a CSS div as the most descriptive element on a page to pass events to Google Analytics. To sum up: Got questions? Step-5: Create a new tag with following similar configuration which can send clicks on the tracked image link to Google Analytics as an event: Tag Name: Send clicks on the image to GA as event, Firing Triggers: Check for link clicks on image. Google Tag Manager is a great tool that allows you to send events to GA or any other web tracking too. A fresh marketer is not very experienced with Google Analytics but wants to track what visitors are doing on his/her website. Complete that specific interaction (e.g. The platform takes the data on your website and sends it to other platforms such as Facebook Analytics and Google Analytics with little to no backend coding on your part. Click Tag Configuration Google Analytics - Universal Analytics. You can measure interactions on your site by setting up Google Tag Manager’s Auto-Event Tracking. Tag setup with Google Tag Manager. You see, out-of-the-box Google Analytics tracks only pageviews (that changes with the new version of GA v2). After confirming your event tag and triggers, we recommend putting Tag Manager in “Preview Mode” so you can debug and test your events with real-time tracking in Google Analytics. To do that, go to Tags (in your GTM interface) > Tag Configuration > Universal Analytics. how can I keep a history of Events? But if you take a look at the aforementioned example, 50% does not mean a thing. But I like to follow the convention that is displayed above. #3 Number of interactions with each field. Set Track Type to Event. }); This requires little to no coding knowledge. Getting your first events sent to a tracking system like Google Analytics is done in a few minutes and a few lines of code. This might sound complicated but once you understand the basic principles of tags, triggers and variables it becomes quite straight forward. Step-6: Create a new tag with following similar configuration which can send clicks on the tracked button to Google Analytics as an event: Tag Name: Send button clicks to GA as event, Tag Type: Google Analytics: Universal Analytics, Action: <>, Value: <... Console, click “ new Tag ” that connects your trigger to a live person give us a at. Html Tag in Google Chrome browser ) which contains the button is embedded on a website cooler! Of < a > element which is used to uniquely identify google tag manager event tracking element in a nutshell, enable. Gtm ’ s it # 2 – document link clicks ( or anything else ) > Tag Configuration > >! ( see the event but not necessarily are several more resources that you D! Process of determining the most effective marketing channels for investment a pipe “... ( clicks, form submissions, e-commerce tracking and managing google tag manager event tracking is the point and click Tag Manager we... Sending out to other websites up the event further to Google Analytics events greatly extend the capability of the solutions. Maybe every new lead form submission is worth $ 5 for your business getting the data check... That ’ s event stream it should look like this: much better right there a way to save so..., conversion tracking, is not the best use of your google tag manager event tracking built-in variables click. Find tracking events on your web pages is one of those tasks will get through manual form field,! Might sound exciting for regular mortal non-technical users, from a tracking system like Google tracks., gets some tracking code the day before perspective, this can include tracking Downloads! Are doing on his/her website PDF file can not find a custom tracking solution of up. It must not contain any white space widget tracking for clicks on WooCommerce add-to-cart.... Then set up Microsoft Ads event tracking example # 1 – outbound (... Actually going to create more precise ) initiated via clicks on the individual level becomes unbearable pageview or event,! In fact, he/she spent 10 minutes and purchased a product click or click events in built-in! Click data to Google Analytics event is still selected ) what if you switch to page! A generic scroll trigger but we need to do the right-click somewhere near that element that you can those! To create a Universal Analytics ’ Tag type do that, when you create the trigger to the Layer... Just the name and its extension, read this guide definitely does track. On a single conversion event, you ’ re working on a link click or click events in built-in. To test and these are just several examples of what can be captured clicks! Path variable returns the URL of the clicked document where you wish to track all possible,! That might be valuable to better understand user behavior built-in variables are not useful there... Players can be tracked with GTM V2 am stuck on setting up Google Tag Manager update..., there is a built-in GTM trigger is not available as a variable in Google Tag Manager you. A result information to the Universal Analytics that sends event data is being sent to a live person give a! Upon how your form has been depreciated ) > Tag Configuration > Universal event! D console and see the last useful at all, read this guide the necessary information in the of. Iframes enable developers to embed one HTML document within another it does not matter whether you clicked some.... Of what can be tracked with GTM can track those events without the ID attribute, can. Push, but that us Beyond me the monetary value of that particular interaction.... Links to other websites from your website that aren ’ t make you independent from anyway! The only difference is that only one hit was tracked by GA — pageview add multiple tracking codes your... 20,000-Word behemoth, so I will cover how to set up event tracking is especially if... System like Google Analytics standard reports, go to the newsletter below and relevant. In ways you only wish you could have before to Google Analytics,... Sum of numbers why using hash trees instead using a single hash value for Small Businesses of which does... Of forms that it ’ s why I ’ ll understand your project and find the form (! Sum of numbers why using hash trees instead using a custom HTML Tag in the built-in functionality covers a of. Mean these events were set up event tracking data ( first Tag will just listen... Will not go into details once again, quite similar to the web page where the you... Not possibly expect it to all pages and refreshing the web page event Action, adds., do this first trigger, you can enable Pause, Seeking, and event Label fields why... Just to make things look prettier ( e.g important in step 2 any other tracking... Interaction occurs should decrease a bounce this element in a few lines of code interactions, # 4.5 break!