Highlighted

Fire Google Analytics Event after visitor remains on the page for more than 5 seconds, 10 seconds

jmm4283777
Visitor
jmm4283777

Hello,

 

How do I create an event to fire, when a visitor remains on the page for more than 5 seconds, 10 seconds? 

 

I would like to fire a Google Analytics Event when a visitor is still on the page after 5 seconds and after 10 seconds. GA is implemented through Tealium. 

1 REPLY 1

Fire Google Analytics Event after visitor remains on the page for more than 5 seconds, 10 seconds

charulm
Visitor
charulm

Hi,

 

We achieved by using Javascript extension and adding the following event to trigger after 10 seconds

 

window.setTimeout(function(e) {
utag.link({
"event_name": "page_lurker"
});
}, 10000);

 

Remember to choose the condition to trigger on a particular pathname. Hope it helps.

 

Thanks,

Charul