AMP

Configure analytics

Important: this documentation is not applicable to your currently selected format email!

TIP – If you're using Google Analytics as your analytics provider, learn how to set up basic Google Analytics for AMP, and how to link AMP and non-AMP content using Client ID.

Decide before you start

All analytics solutions are built upon knowing what data you need, and how you intend to analyze that data. Decide before you start:

  • Will you use third-party analytics tools to analyze user engagement, or your own in-house solution?
  • What user behaviors will you measure to understand user engagement?

Send data to vendor or self?

If you have your own in-house solution for measuring user engagement, the only thing you will need to integrate AMP analytics with that solution is a URL. This is where you will send the data. You can also send data to various URLs. For example, you can send page view data to one URL, and social engagement data to another URL.

AMP analytics is specifically designed to measure once and report to many. If you are already working with one or more analytics vendors, check the list of Analytics Vendors to see if they’ve integrated their solution with AMP. If they have, review their configuration details and follow the instructions.

If the analytics vendor hasn’t integrated with AMP, reach out to the vendor to ask for their support. We also encourage you to create an issue in the AMP project requesting that the vendor be added. See also Integrating your analytics tools in AMP HTML.

What data do you need?

What data about your users will you capture in order to measure engagement? You must identify this data before you can configure it.

Key data points to consider:

Continue to learn about analytics with Analytics: the Basics.