Skip to main content
Dec 2, 2015 12:05 AM UTC
Solved

How can I track time on page

   I was thinking that I could use some javascript on the page and pass the time on page into a parameter eveytime they click on a new page.

My problem is how can I then create a trigger that says if they stayed on the page longer than 3 seconds then trigger an email?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Dec 2, 2015 3:25 AM UTC

Use the Munchkin API and send a synthetic Click Link or Visit Web Page event.  Then a Visit/Click trigger constrained by your custom query param.

Note that using a simple timer, while useful, is quick-and-dirty and falls down if someone opens a tab in the background, etc.  You need to use the Page Visibility API, where supported, to be more exact.

5 replies

Grégoire_Miche2
Level 10
Dec 2, 2015 12:30 AM UTC

That's a hard one. There are few ideas to vote for :

Greg  

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Dec 2, 2015 3:25 AM UTC

Use the Munchkin API and send a synthetic Click Link or Visit Web Page event.  Then a Visit/Click trigger constrained by your custom query param.

Note that using a simple timer, while useful, is quick-and-dirty and falls down if someone opens a tab in the background, etc.  You need to use the Page Visibility API, where supported, to be more exact.

Translate
Dec 8, 2015 7:37 PM UTC

Thanks that is very helpful, I will look into it

Translate
Josh_Hill13
Level 10
Dec 2, 2015 5:36 PM UTC

Can you tell us more about the use case? I hope you wouldn't send me an email after looking at the page within the next 3 seconds.

Translate
Dec 8, 2015 7:36 PM UTC

Hi Josh:

The use case is regarding tracking time on page and time on site and using that information to drive engagement and scoring models.  Maybe 60 seconds or 180 seconds could potentially be used as a trigger

Translate