Contents
How do I send a GTM event?
To set this up as the trigger in your Google Tag Manager, please follow the steps: Step-1: Click on ‘New’ in the trigger section. Step-2: From the choose trigger type, select ‘Custom event’ as shown below. Step-3: In ‘Trigger configuration’, provide the same name that has been passed by the developer in the data layer.
How do I send an event from GTM to GA?
Finally, let’s send outbound link clicks as events to Google Analytics. To do that, go to Tags (in your GTM interface) > Tag Configuration > Universal Analytics. And enter the following settings: In fact, you can enter anything that is meaningful to you in the Event Category, Event Action, and Event Label fields.
How do I create a custom event in GTM?
To create a new custom event trigger:
- Click Triggers New.
- Click Trigger Configuration and choose the Custom Event trigger type.
- Enter an event name. Select “use regex matching” to allow this field to handle regular expressions.
How do you use variables in GTM?
To create a new user-defined variable:
- In the left navigation, click Variables.
- In the User-Defined Variables section, click New.
- Click Variable Configuration and select the desired variable type.
- Enter configuration options for the selected variable type.
- Name the variable.
- Click Save.
How do I link GTM and GA?
Deploy Universal Analytics with Tag Manager
- On the Workspace Overview screen, click New Tag.
- Click Tag Configuration and choose Universal Analytics.
- Select the desired Track Type.
- Select or create a new Google Analytics Settings Variable:
How do I test GTM events?
How to Check Google Tag Manager is Working
- Open Google Tag Manager and click Preview in the top right corner.
- Next navigate to your website. You may need refresh the browser. The debug console will open at the open of the browser window.
- Evaluate what tag are being fired on the page and which ones are not fired.
What is a custom event in GTM?
Google Tag Manager Custom Event is used for tracking interactions that might take place on your website or mobile app that isn’t handled by standard methods (i.e. form submissions, page views, clicks, etc.). In other words, every other event that occurs in the Data Layer can be called Custom Event.
What is variable in GTM?
Variable: A variable is a named placeholder for a value that will change, such as a product name, a price value, or a date. Data layer: Tag manager implements a data layer to temporarily hold values in the client so that they can be used by tags, triggers, and variables.
How are auto event variables used in GTM?
Auto-Event Variables are used to access the target element of an auto-event action (e.g. Click, Error, Form Submit). For example: When you click an image, you can access image’s URL or target link. When you submit a form, you can access form’s ID, etc.
Where is the plan variable in Google Tag Manager?
In Google Tag Manager, go to Variables > User Defined Variables > New > Data Layer Variable. Enter the following settings: We entered “plan” because that’s the name of the key in the Data Layer (when the registrationComplete event is pushed to the DL). You can learn more about the Data Layer Variable here.
How to track custom events with Google Tag Manager?
Believe it or not, but an experienced colleague of mine (JavaScript developer) spent 15 minutes writing a custom listener for that very same interaction (it was like 10-15 lines of code!). I have also published a video tutorial that explains how to track custom events with Google Tag Manager and Google Analytics.
How to use data layer events in Google Tag Manager?
By default, Data Layer events do not appear in the Google Tag Manager as triggers. You need to do that manually. Since we are interested in tracking successful form submissions, we need to tell GTM that registrationComplete events are important to us and we wish to use them as triggers.