Video Tracking
  • 14 Jun 2022
  • 1 Minute to read
  • Contributors
  • Dark

Video Tracking

  • Dark

Tracking interactions with video content on a website is a common task and so it has it's representation in the JENTIS data model.

Please use the following syntax as a generic to capture interactions with content on your website.

Trackcommand: video


providerReference to the content provider or network, ie. YouTube, Vimeo, etc.Stringnoyoutube
startTimestamp (seconds) value at which the user started the video.Numericno1655213044474
durationThe total duration time in seconds of the content.Numericno42
currenttimeThe current elapsed time in seconds of the content.Numericno24
percentCurrent location in content as percentage of total time.Numericno100
statusCurrent status of the content displayed.Stringnoplay, seek, pause
urlURL (link) address of the content.Stringno
titleTitle of the content.StringnoMy Video
idUnique identifier of the content.Stringno123


The following push displays an exemplary _jts push API call. Where the second parameter value "true" makes sure the call is automatically submitted to the server (without explicitly calling track:submit), see details for this behaviour in the basics reference: JENTIS Data Layer Fundamentals 

    "track": "video", //JENTIS Tracking command
    "provider": "youtube",
    "start": /*Returns the timestamp when user started the video.*/,
    "duration": /*Returns the duration in seconds of the currently playing video.*/,
    "currenttime": /*Returns the elapsed time in seconds since the video started playing*/,
    "percent": /*Returns the percentage the video is at currently.*/,
    "status": /*Current status of the video. Return values: play, seek, pause, compvare*/
    "url": /*Returns url of the Video*/,
    "title": /*Returns title of the video*/,
    "id": /*Returns ID of the ideo*/
}, true);

Was this article helpful?