Skip to main content
Skip table of contents

Video Tracking

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

Please use this syntax as a generic way to capture interactions with content on your website.

CODE
Track command: video

Properties

Name

Description

Type

Mandatory

Example

provider

Reference to the content provider or network, ie. YouTube, Vimeo, etc.

String

no

youtube

start

Timestamp (seconds) value at which the user started the video.

Numeric

no

1655213044474

duration

The total duration time in seconds of the content.

Numeric

no

42

currenttime

The current elapsed time in seconds of the content.

Numeric

no

24

percent

Current location in content as percentage of total time.

Numeric

no

100

status

Current status of the content displayed.

String

no

play, seek, pause

url

URL (link) address of the content.

String

no

https://www.jentis.com

title

Title of the content.

String

no

My Video

id

Unique identifier of the content.

String

no

123

Example 

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  

JS
window._jts.push({
    "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);

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.