In today’s Blogging world publishing and understanding the audience is a heart to right articles and creating the royal readers. There should be KEY to understanding the behavior of the audience. So, 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 Analytics to AMP
Login to Google Analytics Account –> Go to ‘Home‘ tab –> Copy Google Analytics Code
Login to WordPress Dashboard –> Navigate to AMP (This opens the AMP settings Panel) –>Settings -> Analytic ->Enable “Google Analytics” option Paste the ID in Tracking ID Section –> Click on the “Save Changes” button.
That’s it; Now you can Track visitor counts, Clicks, New Vs Returning and much more on AMP pages.
Once you have added then you can also check that in your source code of the AMP pages like this screenshot.
How to Add Analytics to AMP (Video)
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.