data-track-viewdurationsΒΆ

By default a contentview is triggered after the element is in view for 1 second. It is possible to change this and it is even possible to add multiple trigger points.

The code above will make sure that if an element is in view for 50% for 2 seconds and 5 second it will sent the event. So in this case 2 events will be triggered.

If the element is not in the viewport after the duration, the event will not be tracked.

To make a distinction in your reports between the event that happened after 2 and 5 seconds, you can make use of the eventData.viewDuration variable.