# Guidelines for Implementing Stats

### Valid Events

* Impression
* Start
* View
* Playback
* Finish

### How to Track Events

#### Impression

* When a user opens the content details, log this as an "Impression."

#### Start and View

* If the video starts from the beginning, log a "Start" event.
* When the video plays for almost 5 seconds, log a "View" event.
* If the video is resumed, don't log "Start" or "View."

#### Playback

* Every 10 seconds watched, log a "Playback" event.
* Don't count skipped time.
* If the user goes back, just log the time they actually watched. For example, if they watch 40 seconds, go back to 45 seconds, and log 5 seconds as "Playback."

#### Finish

* If the user watches 95% of the video, log a "Finish" event.


---

# 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.vodlix.com/developer-guide/api-documentation/guidelines-for-implementing-stats.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.
