Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.38 KB

amp-carousel-analytics.md

File metadata and controls

50 lines (36 loc) · 1.38 KB

AMP Carousel and Analytics

Carousel (slides) triggers

<amp-carousel type="slides"> issues events for major states . These events can be reported through the analytics configuration by using triggers.

See amp-analytics.md for details on amp-analytics configuration.

Change trigger ("on": "amp-carousel-change")

The amp-carousel-change event is issued when there is any change in the slide that is curently visible. Use these configurations to fire a request for this event.

"triggers": {
  "ampCarouselChange": {
    "on": "amp-carousel-change",
    "request": "event"
  }
}

Next trigger ("on": "amp-carousel-next")

The amp-carousel-next event is issued when there is a travesal to the next slide. Use these configurations to fire a request for this event.

"triggers": {
  "ampCarouselNext": {
    "on": "amp-carousel-next",
    "request": "event"
  }
}

Previous trigger ("on": "amp-carousel-prev")

The amp-carousel-prev event is issued when there is a travesal to the previous slide. Use these configurations to fire a request for this event.

"triggers": {
  "ampCarouselPrev": {
    "on": "amp-carousel-prev",
    "request": "event"
  }
}

Vars

Description of the variables can be found in the analytics-vars.md file.