July 11th, 2024

How to add Google Analytics in official AMP plugin

Likes (3) Comments (1)

1 Comments Add Your Comment

Sujit Singh
3 years ago Selected

First of all, you have to install the official AMP plugin on your WordPress site. Log in to your WordPress site and click on Plugins >> Add New then type AMP in the search box. 

Click on Install the AMP plugin. After that, activate the plugin. The plugin will automatically activate AMP versions for your posts and pages. If you want, you can check the AMP version of your post by typing /amp/ at the end of its URL.

After setting up the plugin, click on AMP >> Analytics. This will take you to the Analytics section of AMP. Click the + icon here and type google analytics in the Analytics Configuration #1 box. This will automatically generate the Analytics tracking code for your AMP page. You just need to enter your Google Analytics Tracking ID in it.

After entering your GA Tracking ID, click on Save. That's it, you have connected AMP to Google Analytics. Now you can track your AMP page traffic in Google Analytics.

Note: After adding a Google Analytics Tracking ID, it will not immediately show your AMP page traffic in Google Analytics. This may take one to two hours.

Like (1) Reply

Post a Comment

To leave a comment, please Login or Register