Google Tag Manager's timer trigger allows you send events to Tag Manager at timed intervals. Use this trigger to measure the amount of time a user spends on a page to complete a task (e.g. read an article, fill out a form, or complete a purchase.)
To create a new timer trigger:
- Click Triggers New.
- Click Trigger Configuration and choose the Timer trigger type.
- The default value for Event Name is gtm.timer. This value specifies the name of the event as it is passed to Tag Manager. The default value is
gtm.timer, and in most cases there is no need to modify this value. You can optionally use this event name to create a custom event trigger. For example: Specify an Event Name of “timer5” and then create another custom event trigger where the condition is "event equals timer5".
- Add an Interval in milliseconds. The trigger will fire at the specified interval (e.g. every 5000 milliseconds.)
- Add a Limit value to specify the maximum number of times the trigger will fire. Leave this blank to have the trigger fire events until the user leaves the page.
- In the "Enable this trigger when all of these conditions are true" section, specify a variable, operator, and value. This step will ensure that the trigger listener is enabled only when necessary, to help improve overall website performance.
- Save the trigger and publish the container.