To set up tracking for AMP pages (Accelerated Mobile Pages), take the following steps in Google Tag Manager.

1. Create a new GTM container for AMP pages. To do that, go to the Admin tab, click at the container column. In the container creation menu, select AMP:AMP_pages_0.png

2. In the Tags menu, create tags that will be sent to Google Analytics along with the data. Here, include the custom dimension  "Page Client ID" and the trigger that fits your case. For example:AMP_pages_1.png

3. In the Variables menu, in the Built-In Variables block, click Configure and check all 13 variables shown in the screenshot: AMP_pages_2.png

4. Back in the Tags menu, create one more tag with the Custom Image type. As a trigger, use the same you used for the tag that is being sent to Google Analytics. In the Image URL field, paste this URL:

https://google-analytics.bi.owox.com/collect?v=1&ds=AMP&dt=&sr=x&cid=&tid=&dl=&dr=&ul=&t=pageview

AMP_pages_3.png

5. Publish the container.

Done. With these settings, data will be sent to both Google Analytics and Google BigQuery every time the trigger fires. You can also add additional parameters to the URL if needed.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.