> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Video Player events and analytics


[//]: # (PageTitle: Events and Analytics)

You can register to a variety of video player events and then use these events to create custom video player controls or to trigger other custom behaviors in your application. 

Additionally, many of these events can be tracked for Google Analytics or other analytics trackers.

## Using video events

The video player supports standard HTML5 video player events as well as several specific Cloudinary video player events.

For example, you can define a set of percentages that will trigger the `percentsplayed` event and then perform some operation when the player reaches any of those points. Below, the captured percentages are written to the console log:

```html
const vplayer = cloudinary.videoPlayer("my-video", { playedEventPercents: [10, 50, 90] })

vplayer.on('percentsplayed', (event) => {
  console.log(event.eventData.percent + " percents played")
``` 

Take a look at the [Events sample](https://demo.cloudinary.com/video/player.html#section02) on the Video Player demo page to see some of the events that are triggered as you perform operations on the video player.

### Available events

For details on all available events, see [Events](video_player_api_reference#events) in the _Video Player API Reference_.  

## Tracking video player analytics

You can easily track and view your video player events using the [Cloudinary video analytics](video_analytics). Alternatively, you can use the above events to [manually capture](video_analytics#custom_cloudinary_video_player_analytics_providers) your data for sending to Google Analytics.

> **READING**:
>
> * [Learn how to embed the video player in your website](video_player_how_to_embed)

> * [Customize your video player](video_player_customization)

> * [Define playlists and set up video recommendations](video_player_playlists_recommendations)

> * [Learn more about the video effects and transformations you can apply to your videos](video_manipulation_and_delivery)

> * [Check out all the video player options in the Video Player API Reference](video_player_api_reference)