How to Implement Google Analytics With Google Tag Manager

To implement Google Analytics on your website via Google Tag Manager (GTM) follow the steps below:

Step-1: Login to your Google Analytics account and then open your reporting view.

Step-2: Click on the wheel icon at the bottom left of your screen in order to access the GA admin area:

 

Step-3: Click on ‘Tracking Code’ link (under Property column > Tracking Info):

 

Step-4: Take a note of the tracking ID. You would need this ID later when you set up Google Analytics via GTM:

 

Step-5: Login to your GTM account and then click on the link ‘Add a new tag’:

 

Step-6: Name your tag ‘Google Analytics Tracking – All Pages’:

 

Step-7: Click on ‘Choose a tag type to begin setup…’ button:

 

Step-8: Select ‘Google Analytics Universal Analytics’ from the list of featured tags:

 

Step-9: Click on the checkbox ‘Enable overriding settings in this tag‘ and then enter the tracking ID of your Google Analytics property in the ‘Tracking ID’ text box:

Note: Do not enter the tracking ID you see in the screenshot. Otherwise your Google Analytics tracking won’t’ work. Enter the tracking ID of your Google Analytics property.

 

Get the E-book (72 Pages)

Get the E-Book (62 Pages)

 

Step-10: Scroll down and then click on ‘Choose a trigger to make this tag fire…

 

Step-11: Click on ‘All Pages’ trigger as we want the Google Analytics tracking code to fire on all the web pages of our website:

Your entire tag configuration should now look like the one below:

 

Step-12: Click on the ‘Save’ button to complete the process of creating a new tag. You will now see your new tag listed under the ‘Tags’ section:

 

Step-13: Click on the ‘preview’ button on the top left hand side to test the tag on your website:

Once you have clicked on the ‘preview’ button, you will see a message box like the one below:

 

Step-14: Now visit your website, scroll down to the bottom of the window and look for a debugging window, like the one below:

 

This debugging window is telling you, that if you publish your Google Analytics tag on the live website, it should fire/execute.

Note: Make sure that, not only the tag is firing but it is also not breaking the website design and/or functionality in any way.

Step-15: Once you have tested your new tag, head back to GTM and click on the ‘Leave Preview Mode’ link :

 

Step-16: Click on the ‘Submit’ button in the top navigation:

 

Step-17: Enter your version name and version description (like the one below) and then click on the ‘Publish’ button:

This action will install Google analytics on your website via Google Tag Manager.

Step-18: Now remove the hardcoded Google Analytics tracking code from all of the web pages on your website. If the Google Analytics tracking code is not hardcoded on your website then you can skip this step.

That’s how you can implement Google Analytics on your website via Google Tag Manager.

Related Articles

Register for the FREE TRAINING...

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."



Here’s what we’re going to cover in this training…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

#5 The number 1 reason why conversion optimization is not working for your business.

#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.



   

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and Beyond
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

Himanshu Sharma

Digital Marketing Consultant and Founder of Optimizesmart.com

Himanshu helps business owners and marketing professionals in generating more sales and ROI by fixing their website tracking issues, helping them understand their true customers' purchase journey and helping them determine the most effective marketing channels for investment.

He has over 12 years of experience in digital analytics and digital marketing.

He was nominated for the Digital Analytics Association's Awards for Excellence. The Digital Analytics Association is a world-renowned not-for-profit association that helps organisations overcome the challenges of data acquisition and application.

He is the author of four best-selling books on analytics and conversion optimization:

error: Alert: Content is protected !!