How to implement your basic universal Google Analytics Tracking Code with GTM ?

Prerequisite : having placed Google Tag Manager Code on your site

Firstly, you obviously will need to have GTM set up on you site : more specifically, to have the GTM code pasted in the <head> sections of the pages you want to track.

If you are using WordPress, this can be really easily achieved by opening the ‘Appearance > Editor’ module, then select the ‘header.php’ file.

The code should be placed in between the <head> tags; as per illustrated below.

Secondly:  place your Google Analytics Tag on Google Tag manager Container

This is pretty straightforward : you’ll just have to select ‘New tag’ on the interface.

Then, as you may have already guessed, you’ll be required to pick up the tag of your choice. In this instance, this will be Universal Google Analytics Tag.

You start by naming your tag (nest practice is to pre-fix the name of your tag with the tracking tool you are using. In our case, it is Google Analytics, so I name it … Google Analytics, because I am a bit short of imagination.

By the way, I am just applying here the very basis setting : meaning that I just want the pageviews to be tracked, as per operated by default by the basis Google Analytics tracking code.

Of course, you’ll be asked to provide your Google Analytics identifier. This is the UA number that you’ll find in the ‘Admin’ section of your Google Analytics account.

Click on the gear icon at the bottom of GA interface, on the left, then select ‘Property > Tracking info > Tracking Code’.

Also, you’ll be asked to specify the trigger for this tag to fire, in other words, when and when you want Google Analytics to collect information on what is happening on the site, to make it available to you.

As per stated above, you want this tag to fire each tile a page is loaded. This is why you are going to pick up the ‘All pages’ trigger, that is offered by default, and will fire each time a page is loaded (thus the eye icon, standing for ‘pageview’).


There you go !

You are almost done. Next thing you should do is to check, using the debug mode, that everything is running smoothly.

You’ll achieve this by clicking on the ‘Preview’ button, at the upper right corner of your screen.

You’ll then have to browse your site, preferably using Google Chrome, and congratulate yourself for having successfully run your first tag implementation through Google tag manager:).





Leave a Reply

Your email address will not be published. Required fields are marked *