Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Subscriptions
English French
English French

How to configure an AMP Shared Meter

The meter between AMP and non-AMP (web) pages can be shared in case the following rules are followed:

  1. The meterName is the same for both the regular and the AMP-Experiences

  2. The meters are merged upon the opening of a non-AMP page from an AMP page

  3. The non-AMP page should have a READER_ID parameter in it, e.g.

    https://website.com/subscribe.html?reader_id=READER_ID&url=SOURCE_URL&_=RANDOM

    All the meters inside the AMP pages are bound to the READER_ID and the meters outside AMP are bound to the browser. In order to have a shared meter, the READER_ID and the browser must be matched. The only recommended way of doing this is to create a link with the READER_ID parameter leading from an AMP page to a regular web page where Composer can match it with the browser.

Below is an example of how the AMP and site meters can be merged and act as a single shared meter:

  1. A link with an URL with the READER_ID parameter leading to the web page with a regular Experience is specified on the AMP page

  2. Both Experiences have a Pageview meter with the same meter name

  3. A user opens the AMP page, then clicks on a link to the web page, where a regular Experience is executed

  4. The meters get merged

  5. Now the shared meter increments both for AMP and web pages

Last updated: