AdTracker
Tracks events for media adverts.
A duration is required for tracking the ad completion percentage.
An ad view event is tracked on creation. The tracker is started in a paused state. If the ad is auto-played then you will need to call AdTracker.play to begin tracking engagement and ensure the completion event properties are correct.
The AdTracker.play and AdTracker.play functions are used to track playing and pausing of the ad. To track clicks use the AdTracker.clicked function.
Once the ad is complete call AdTracker.completion function. This will track a completion event with engagement properties added. The AdTracker instance will no longer track events after this has been called. To track new events please create a new AdTracker instance.
Types
Model representing standard optional properties for all Ad events.
Functions
Tracks the ad being complete. This means the ad is no longer being shown and there will be no more engagement with the ad.
Track a custom event with the ad properties included.
Track a custom event with the ad properties included and the custom properties passed in.