Hi,
Please make sure that you are using amp plugin with mobile theme plugin, after that you’ll need to index your amp versions on google.
For adding your amp to your Google Analytics, please check these articles:
-> https://documentation.unbounce.com/hc/en-us/articles/360020692572-Adding-Google-Analytics-to-Your-AMP-Page-
-> https://developers.google.com/analytics/devguides/collection/amp-analytics
Thank you!
Wich one is the good one ?
or
https://developers.google.com/analytics/devguides/collection/amp-analytics
and where do we have to insert the code ?
Thank you
-
This reply was modified 6 years by
gumball44.
Hi,
The code for amp tracker need to be set in Theme panel> mobile theme > AMP Analytics -> https://i.imgur.com/UjKUMtH.png and need to be the form from your example -> https://i.imgur.com/P5BYwys.png
Thank you!
Hi Calin,
when i add the analytics tracking code in the json format (in the field you mentioned),should i only add the json code or shall i add also the script contanier?
to be clear: this code should be added too?
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<amp-analytics type="gtag" data-credentials="include">
<script type="application/json">
Hi,
This code is all ready in our theme -> https://i.imgur.com/OohCrdB.png and is no need to add it again, also you can check your amp analytics and you can see the activities on your website.
Thank you!