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

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.

  1. Go to your Google Analytics account.
  2. In the left-hand toolbar, hit the gear icon on the bottom left corner.

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

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).

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.

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.

12. Click on Save Changes.

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