# Video Interaction Tracking

## Video Interaction Tracking

Tracking interactions with video content on a website is a common requirement, and the JENTIS data model provides native support for this. Use the `video` tracking command to capture events such as play, pause, and seek, as well as metadata like duration and position.

This allows you to measure video engagement, monitor user behavior, and trigger tags based on specific playback milestones.

### Tracking Command

* `video`

### Example Push

```javascript
window._jts.push({
  track: "video",
  provider: "youtube",
  start: 1655213044474,
  duration: 42,
  currenttime: 24,
  percent: 100,
  status: "play",
  url: "https://example.com/video-page",
  title: "My Video",
  id: "123"
}, true);
```

> ✅ The second parameter `true` causes the data to be automatically submitted to the server—equivalent to calling `track: "submit"`.

### Properties for `video`

| Name          | Description                                                   | Type   | Mandatory | Example                       |
| ------------- | ------------------------------------------------------------- | ------ | --------- | ----------------------------- |
| `provider`    | Name of the video provider (e.g., YouTube, Vimeo)             | string | no        | `"youtube"`                   |
| `start`       | Timestamp when the video was started (ms or seconds)          | number | no        | `1655213044474`               |
| `duration`    | Total duration of the video in seconds                        | number | no        | `42`                          |
| `currenttime` | Elapsed time in seconds since the video started               | number | no        | `24`                          |
| `percent`     | Percentage of video completed                                 | number | no        | `100`                         |
| `status`      | Current playback status (`play`, `seek`, `pause`, `complete`) | string | no        | `"play"`                      |
| `url`         | URL of the video content or page                              | string | no        | `"https://example.com/video"` |
| `title`       | Title of the video                                            | string | no        | `"My Video"`                  |
| `id`          | Unique identifier of the video                                | string | no        | `"123"`                       |

### When to Use Video Tracking

Use this event for any meaningful interaction with video content:

* When the user **starts** the video
* When the user **pauses**, **seeks**, or **completes** the video
* On playback **milestones** (e.g. 25%, 50%, 75%)

This allows you to:

* Trigger tags based on video engagement
* Enrich session data with content consumption metrics
* Segment audiences by video behavior


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jentis.com/data-capture/web-tracking-setup/set-up-jentis-data-layer/video-interaction-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
