new Tracker()
The Tracker is used to make tracking calls to Invidi when your video player
fires certain events.
Members
-
<static> AdError :string
-
Ad errors. Passed to videoplaza.tracking.Tracker.reportError and videoplaza.adrequest.AdRequester.requestPassback
to describe an error that has occurred.Type:
- string
Properties:
Name Type Default Description TYPE_NOT_SUPPORTEDstring adTypeNotSupportedError Indicates that an unsupported ad type was received
NO_ADstring noAdError Indicates that an ad response without an ad, or an inventory response, was received
GENERAL_ERRORstring generalAdError Indicates that an unspecified error occured with the ad or ad request
-
<static> AdEventType :string
-
Ad-level tracking events; passed to videoplaza.tracking.Tracker.trackEvent when tracking Ad events.
Type:
- string
Properties:
Name Type Default Description IMPRESSIONstring impression Impression
-
<static> CreativeError :string
-
Creative errors. Passed to videoplaza.tracking.Tracker.reportError and videoplaza.adrequest.AdRequester.requestPassback
to describe an error that has occurred.Type:
- string
Properties:
Name Type Default Description MEDIA_FILE_NOT_FOUNDstring mediaFileNotFoundError Indicates that a request for the given media file or resource file resulted in a 404 response
MEDIA_FILE_TIMEOUTstring mediaFileTimeoutError Indicates that a request for the given media file or resource timed out before completing
NO_SUPPORTED_MEDIA_FILE_FOUNDstring noSupportedMediaFileFoundError Indicates that no media file or resource supported by the player could be found
MEDIA_FILE_DISPLAY_ERRORstring mediaFileDisplayError Indicates that the media file loaded could not be displayed
-
<static> CreativeEventType :string
-
Creative-level tracking events; passed to videoplaza.tracking.Tracker.trackEvent when tracking LinearCreative or NonLinearCreative events.
Type:
- string
Properties:
Name Type Default Description CREATIVE_VIEWstring creativeview STARTstring start Indicates that a creative has begun playing
FIRST_QUARTILEstring firstquartile Indicates that a creative has played for at least 25% of its duration
MIDPOINTstring midpoint Indicates that a creative has played for at least 50% of its duration
THIRD_QUARTILEstring thirdquartile Indicates that a creative has played for at least 75% of its duration
COMPLETEstring complete Indicates that a creative has played until completion
PROGRESSstring progress Indicates that a creative has played for a certain duration of time, determined by the trackingParameter argument to trackEvent()
CLICKTHROUGHstring clickthrough Indicates that the user clicked a creative and loaded its associated landing page
MUTEstring mute Indicates that the user muted a creative
UNMUTEstring unmute Indicates that the user unmuted a creative
PAUSEstring pause Indicates that the user paused a creative
REWINDstring rewind Indicates that the user paused playback of a creative
RESUMEstring resume Indicates that the user resumed playback of a creative after having previously paused or stopped it
FULLSCREENstring fullscreen Indicates that the user entered fullscreen mode for a creative
EXIT_FULLSCREENstring exitfullscreen Indicates that the user exited fullscreen mode for a creative
EXPANDstring expand Indicates that the user expanded a creative
COLLAPSEstring collapse Indicates that the user collapsed an expanded creative
ACCEPT_INVITATIONstring acceptinvitation Indicates that the user chose one ad out of several, or chose to move to an additional portion of a creative
CLOSEstring close Indicates that the user closed the video player or player page
SKIPstring skip Indicates that the user chose to skip a creative
-
<static> SessionEventType :string
-
Session-level tracking events; passed to videoplaza.tracking.Tracker.trackEvent when tracking Session events.
Type:
- string
Properties:
Name Type Default Description CONTENT_STARTstring contentStart Indicates that the video content has started playback.
Methods
-
addLogListener(logCallback)
-
Register a callback function to log tracker events.
Parameters:
Name Type Description logCallbackvideoplaza.LogItem~logItemCallback A callback which will receive logging information.
-
trackEvent(trackable, event, trackingParameter)
-
Track event for a trackable object.
Parameters:
Name Type Description trackablevideoplaza.adresponse.Ad | videoplaza.adresponse.LinearCreative | videoplaza.adresponse.NonLinearCreative The trackable object to which the event to be tracked relates.
eventvideoplaza.tracking.Tracker.SessionEventType | videoplaza.tracking.Tracker.AdEventType | videoplaza.tracking.Tracker.CreativeEventType | string The event to be tracked. Either one of the predefined standard events, or a custom tracking event defined in Pulse.
trackingParameterstring Specifies which variation of certain events is to be tracked; currently represents the 'offset' parameter when tracking videoplaza.tracking.Tracker.CreativeEventType.PROGRESS.
-
trackProgress(progressAmount, creative)
-
Track that ad playback has progressed to a given point.
Parameters:
Name Type Description progressAmountnumber The progress, specified in seconds.
creativevideoplaza.adresponse.LinearCreative The linear creative for which to track progress.
-
trackTimeSpent(timeSpentInSeconds, creative)
-
Track the time in seconds that a user spent watching a creative.
Parameters:
Name Type Description timeSpentInSecondsnumber The time, specified in seconds.
creativevideoplaza.adresponse.LinearCreative | videoplaza.adresponse.NonLinearCreative The creative for which to track the time spent.
Core SDK API Documentation