Add a Google Analytics Global Site Tag to Your Wordpress Site in 5 Minutes

Image for post
Image for post
Photo by Stephen Phillips on Unsplash.

For a Wordpress website, I had the task of adding a Google Analytics Global Site tag. In this article, I will briefly walk you through how you can quickly and easily do this.

Image for post
Image for post

3. On the next page, find “Tracking Info”. In my case, it was in the middle column about mid-way down. Click on it.

Image for post
Image for post

4. You will then see your tracking ID. Copy that down.

5. Go to your Wordpress’s wp-admin panel and then go to Plugins. Hit Add New.

6. Search for a plugin called GA Google Analytics. Verify that it works with your Wordpress installation and install it (disclaimer: you may want to back up your website before you install any Wordpress plugin. Also, I have no affiliation with this plugin except for using it for my own site).

Image for post
Image for post

7. Once installed, hit the Activate button. In the screenshot above, mine was pressed, and thus it now shows as Active.

8. Go to Settings in your left-hand wp-admin toolbar and click on Google Analytics.

9. Click on the How to Use accordion to read what it has to say so you know what is happening.

Image for post
Image for post

10. Then, click on the Plugin Settings accordion.

11. Enter the site tracking ID you copied earlier into the first input. Also, select Global Site Tag as the tracking method.

Image for post
Image for post

12. Click on Save Changes.

Image for post
Image for post

Now, you’ll have to wait 24 to 48 hours for stats to populate in your Google Analytics dashboard. Note that it will only capture statistics from that point forward and will not retroactively display data.

I hope this approach was simple for you; it’s all thanks to this plugin.

Full-time software engineer since 2016. UCLA Computer Science B.S. with Atmospheric and Oceanic Sciences minor, class of ‘16.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store