Sometimes you will want to trigger a custom event only after the user visits a specific page for a given amount of time.
You can accomplish that using the tracking script and the following code:
This code will trigger a
LongVisit event after 10 seconds the user has been in the page.
If you wish to change the amount of time the script will wait before triggering the event, simply change the value
10e3 to the amount of seconds you want to wait. For example
120e3 for 2 minutes (120 seconds).
Learn more about triggering custom events here.