How Do I Add Google Analytics to WordPress AMP?

Google Analytics is a powerful tool that can help you understand how your visitors use your website. It’s easy to add Google Analytics to your WordPress AMP site, and you can get started in just a few minutes.

To add Google Analytics to your WordPress AMP site, first install the Google Analytics add-on. After you install the add-on, you’ll need to configure it.

Open the Google Analytics settings page and click the “Add an account” button. Enter your Google Analytics account credentials and click the “Create Account” button.

Once you have an account set up, you’ll need to add a tracking code to your website. To do this, open your website in a web browser and click the “Analytics” link on the left side of the screen.

Under the “Tracking” section, click the “Add a tracking code” button. Enter the tracking code that you received from Google Analytics and click the “Create Code” button.

Now that you have a tracking code set up, you’ll need to add the code to your website. To do this, open your WordPress AMP site in a web browser and click the “Settings” link in the bottom left corner of the screen.

Under the “Site” section, click the “Advanced” button and then click the “Add Media” button. Click the “Upload” button and select the tracking code that you added to your website earlier.

Finally, you’ll need to configure your Google Analytics account to collect data from your WordPress AMP site. To do this, open the Google Analytics settings page and click the “Track” button.

Under the “Site” section, click the “AMP” tab and make sure that the “Google Analytics for AMP” checkbox is checked. Click the “Save Changes” button and your WordPress AMP site will start tracking visitor data.

Conclusion

Adding Google Analytics to your WordPress AMP site is easy and can help you understand how your visitors use your website.