How to trigger a time-based conversion

Sometimes you want to measure the value of your content by triggering a conversion when someone spends a certain number of seconds on your page. This can be useful to fight fraudulent traffic, measure the quality of your content, and create custom audiences.

You can accomplish that using the tracking snippet:

setTimeout(function() {
AnyTrack("trigger", "LongVisit");
}, 10e3);


This code will trigger a LongVisit conversion after 10 seconds the user has been on the page.

You can update the time clock as you see fit based on the following encoding.


  • 10 seconds is encoded 10e3
  • 120 seconds is encoded 120e3


Find out more about time encoding here.

Learn more about triggering custom events here.

Need support?

Questions? Problems? Need more info? Contact Anytrack Support for assistance!

Click here