From ff2374400f0eea75604b91c2f59d8610437df928 Mon Sep 17 00:00:00 2001 From: Enrique Marroquin <5449100+Enriqe@users.noreply.github.com> Date: Thu, 22 Apr 2021 14:58:48 -0400 Subject: [PATCH] =?UTF-8?q?[amp-story-auto-analytics]=20=F0=9F=93=96=20=20?= =?UTF-8?q?Add=20triggers=20docs=20for=20amp-story-auto-analytics=20(#3395?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add triggers docs for amp-story-auto-analytics * fix english --- .../amp-story-auto-analytics.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/extensions/amp-story-auto-analytics/amp-story-auto-analytics.md b/extensions/amp-story-auto-analytics/amp-story-auto-analytics.md index fe2fa208b999..919199c84f07 100644 --- a/extensions/amp-story-auto-analytics/amp-story-auto-analytics.md +++ b/extensions/amp-story-auto-analytics/amp-story-auto-analytics.md @@ -37,3 +37,37 @@ The `amp-story-auto-analytics` component configures [`amp-analytics`](https://am ## gtag-id (required) Google Analytics ID used to link the story to the analytics account. + +# Triggers + +The following analytics triggers are dispatched when using the `amp-story-auto-analytics` component: + +## `storyPageCount` + +Fired once per story view. It includes the following parameters: + +| Parameter | Value | +| --------------------- | --------------------------------------------------------------- | +| `ea` (event_action) | `story_page_count` | +| `ec` (event_category) | Title of the story (`