How to Add Google Analytics to AMP

1 min


How to Add Google Analytics to AMP
How to Add Google Analytics to AMP

How to Add Google Analytics to AMP

AMP includes an amp-analytics element that allows publishers to track and view the behavior of visitors on the website. The publisher can automatically track visitor counts, Clicks, New Vs Returning, and much more on AMP pages.

How to Add Google Analytics to AMP

Accelerated Mobile Pages (AMP) is a platform used to build web pages for static content that renders fast. AMP includes an <amp-analytics> element that enables the measurement of user interactions, and it has built-in support for Google Analytics.

Read More: How To set up AdSense Auto Ads in AMP

1. Log in to Google Analytics Account –> Go to ‘Home‘ tab –> Copy Google Analytics Tracking Id

Copy Google Analytics Tracking Id

2. Log in to WordPress Dashboard –> Navigate to AMP (This opens the AMP settings Panel) –>Settings -> Analytic ->

3. Enable “Google Analytics” option Paste the ID in Tracking ID Section

4. Click on the “Save Changes” button.

Paste the Google Tracking ID in Tracking ID Section

Note: Once you have added then you can also check that in your source code of the AMP pages.

Google Analytics tracking should now be active on your AMP pages or posts. View your AMP Pages and see Google Analytics to track them.

If you have any questions we are here to help you. Click here to Ask Questions.


Like it? Share with your friends!

Danushka Sanjeewa
Danushka Sanjeewa is a Software engineer with more than 5 years of experience in Android App Development, Web Development, Marketing, Graphic design, Video editing, and WordPress. And also Writer/Founder of TechEduTricks.com.

0 Comments

Your email address will not be published. Required fields are marked *