Permalink
Find file
86bff17 Oct 27, 2016
67 lines (48 sloc) 2 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-next 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.