Hi,
I want to track a specific session time e.g. 2m or 120 sec as a custom event. However the stg.timer event is activated and working, it seems impossible to use this data as a trigger and thus fire a custom event. I tried everything and don’t understand why it is so hard to track this simple event? It is much easier in GA4 / GTM.
So, I want to use the timer trigger and activate this after a specific time, but it is never working to fire the custom event.
Any help?
Thanks
Sacha
Hi,
What are the conditions that you apply to your Timer trigger?
Also, If you do not find the Timer trigger reliable, then you could create a custom code tag that will have a setTimeout
method and send a custom event as soon as the 2 minute mark passes as mentioned in this thread.
Also, overall session time cannot be measured through a Timer trigger as the trigger will launch a tag after an X amount of time has passed from the first page view event and so if a visitor goes from one page to another, then the trigger’s timeout will reset and start measuring time again.
Hey, trigger condition is to fire the tag after 1m and on all timer events. I also tried to fire the tag with the “page url contains/starts with homepage url” as condition, but that doesn’t work either. Thanks for the setTimeout method thread, I will have a look at it and test this.
Besides the timer trigger method, I also tried implementing the stg.timer event in combination with a custom ‘timeonwebsite’ datalayer trigger, but that probably doesn’t work either as it relies on the same trigger’s timeout after leaving a page.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.