<img src="https://img.shields.io/badge/%20-ALL-%2300B180" style="float:left"/><br />

After embedding adding the [**amp-jwplayer** component to a Google AMP page](🔗), you can track the user interaction with your video or audio content.

<br />

On your AMP page, add an **amp-analytics** component after the **amp-jwplayer** component.


PropertyDescription
**triggers**<span style="color:red">**\***</span> objectConfiguration object that contains child objects that describe event triggers. <br /><br />Each child object represents a single event trigger that describes when analytics requests should be sent. <br /><br />To identify an event trigger in your analytics, name each event trigger object. The event trigger object name can be any string comprised of alphanumeric characters (a-zA-Z0-9).<br /><br /> See: [triggers.{eventTriggerName}](🔗)
**vars**<span style="color:red">**\***</span> objectObject containing basic **amp-analytics** component variables <br /><br />See: [vars](🔗)

<br /> <hr />

## triggers.{eventTriggerName}

PropertyDescription
**on**<span style="color:red">**\***</span> stringEvent for which to listen<br /><br />Supported events:<br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#ad-end-trigger-on-video-ad-end" target="_blank">video-ad-end</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#ad-start-trigger-on-video-ad-start" target="_blank">video-ad-start</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#video-ended-trigger-on-video-ended" target="_blank">video-ended</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#video-pause-trigger-on-video-pause" target="_blank">video-pause</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#video-percentage-played-trigger-on-video-percentage-played" target="_blank">video-percentage-played</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#video-play-trigger-on-video-play" target="_blank">video-play</a><br />   • <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-analytics.md#video-session-trigger-on-video-session" target="_blank">video-session</a>
**request**<span style="color:red">**\***</span> stringName of the request to send<br /><br />This should always be set to `event`.
**selector**<span style="color:red">**\***</span> stringValid CSS selector used to select the **amp-jwplayer** component to track
**vars**<span style="color:red">**\***</span> stringObject containing key-value pairs specific to this trigger<br /><br />See: [triggers.{eventTriggerName}.vars](🔗)

<br />

### triggers.{eventTriggerName}.vars

PropertyDescription
**eventAction**<span style="color:red">**\***</span> stringName for the given event <br /><br />To learn more about the `eventAction` property, read <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/events" target="_blank">Event Management</a>.
**eventCategory**<span style="color:red">**\***</span> stringCategory for the given event<br /><br /> To learn more about the `eventCategory` property, read <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/events" target="_blank">Event Management</a>.

<br />

To learn more about the `triggers` object, read <a href="https://amp.dev/documentation/components/amp-analytics/?format=websites#triggers" target="_blank">Triggers</a>.

<br /> <hr />

## vars

PropertyDescription
**account**<span style="color:red">**\***</span> string <br />                                        Identifier for the Google Analytics account to which video analytics are sent

To learn more about the `vars` object, read <a href="https://amp.dev/documentation/components/amp-analytics/?format=websites#vars" target="_blank">Vars</a>.

<br />

<!-- Removes footer page navigation -->

<style> .rm-Pagination { display: none; } </style>