October 2017
Intermediate to advanced
370 pages
8h 57m
English
We can implement more advanced page, event, and user-interaction tracking with the amp-analytics extended component. It can be used to track what users saw, clicked on, and scrolled through. It's included with this script:
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
The configuration of amp-analytics is via a JSON configuration object. This can be specified inline or loaded from a remote endpoint. We'll see, later, that remote configurations can be very useful.
Read now
Unlock full access