How to install Google Analytics on your WordPress website in 3 easy steps

Google Analytics is perhaps not the absolute best out there, but hey, you get what you pay for. That said, Google Tag Manager, however, is friggin awesome!

Google Analytics is perhaps not the absolute best out there, but hey, you get what you pay for. That said, Google Tag Manager, however, is friggin awesome!

Here you just need to paste the Tracking ID from your Google Analytics property from step one (not the code, just the ID).

Paste in your GTM Tracking ID
Paste in your GTM Tracking ID

The last part is to choose at what moment exactly should your website send Google Analytics tracking information through the code.
Since you want it to send information for each and every page of your website, you can simply use the ready made trigger found clicking on the white space inside the triggers area.

Choose all pages as triggers for your tracking tag.
Choose all pages as triggers for your tracking tag.

That’s it! Your GTM code, containing your brand new GA tag is ready to be published on your website. So just click on publish on the upper right corner of the screen, and “next” your way through the pop-up screens.

3. Inject the Google Tag Manager code into our WordPress website

Normally, any website would require you to copy-paste the GTM code into the website itself. But since we’re smart (and lazy… more lazy than smart.) we’re using WordPress to manage our website, and therefore can use a nifty plugin to take care of code injections.

Just install Duracell Tomi’s GTM plugin for WordPress, and paste your GTM ID in the dedicated field.

Copy the GTM ID inside DuracellTomi's field
Copy the GTM ID inside DuracellTomi’s field

Save your changes and your done!

Make sure everything works by visiting your website and check your Real Time report in Google Analytics.

Google Analytics is perhaps not the absolute best out there, but hey, you get what you pay for. That said, Google Tag Manager, however, is friggin awesome!
Google Analytics is perhaps not the absolute best out there, but hey, you get what you pay for. That said, Google Tag Manager, however, is friggin awesome!

Author: Shay Stibelman

Digital marketing consultant in Milan, Italy. Born in Israel, raised in Germany by Russian parents.

One thought on “How to install Google Analytics on your WordPress website in 3 easy steps”

Leave a Reply