


Each timer you have on the page has a different ID. gtm.timerId – A unique identifier number for the timer.You should see the array of various parameters.Įvery time a timer trigger activates, it pushes a particular set of data to the data layer: After waiting 10 seconds, the gtm.timer event appears on the left side of the pane.Ĭlick it and navigate to the Data Layer tab. If you set it to fire after 60 seconds (or more), you’ll wait too long, and your debugging session will become super boring.Īnyway, let’s go back to our Preview and Debug mode. Pro-tip by Captain Obvious: for testing purposes, create a timer trigger that fires after 10 seconds (or even less). (to test how the trigger works).Īfter the preview and debug console appears, wait for the timer trigger to activate. I used All timers.Ī sample timer trigger could look like this (fires once after 10 seconds on all pages):Īfter creating a timer trigger, enable GTM Preview and Debug mode, and navigate to the new window with the site you’re working on. Last, you can decide whether to fire a tag on all timers or only particular ones.In my blog, I will use the timer on all pages, thus the Enable When condition is Page Path contains / (because the Page Path variable will always contain at least one slash) You’ll need to provide some conditions already present when Google Tag Manager is first loaded, such as Page Path equals /home-page/ or something similar. Also, it would be best to delimit the timer to only fire on specific pages using the Enable When option.Limit: This option lets you choose how many times the trigger fires before it should stop.Enter 10000 if you want the time trigger to activate after 10 seconds.

Interval: Here, you can specify how many milliseconds should pass between each activation of this trigger.It’s most helpful when you want to fire multiple timers on the same page. Event Name: This lets you customize the event name GTM pushes to dataLayer.Go to Triggers > New > Trigger Configuration > Timer and enter the following settings. To get started, you must have a Google Tag Manager account and the necessary permissions to edit your website’s GTM container. Create a Timer Trigger within Google Tag Manager
