How To Implement Google Analytics Code Using Google Tag Manager
- byFaisal Ahmed
- 1 k Views
In this article, I will guide you on how to install Google Analytics code in your WordPress website using Google Tag Manager. If you don’t know how to implement Google Tag Manager in your Website then please follow this article How To Implement Google Tag Manager Code In WordPress.
Step 1: Login to your Google Analytics Account
Step 2: After login, Click on Admin from the top menu and then click on Tracking Info & then Tracking Code from the Property column as shown below.
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Install-Google-Analytics-In-WordPress-Website-Step-2.png)
Step 3: From the Tracking Code page, Copy the Tracking ID from the page
Step 4: Now Login to your Google Tag Manager Account & Select your website container by clicking on the container name
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-4-1-1024x268.png)
Step 5: Now click on Tags from the left menu & then click on New as shown below
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-5-1024x343.png)
Step 6: Click on Google Analytics now
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-6-1024x680.png)
Step 7: Select Universal Analytics from the options, Enter your Tracking ID the one you copied from Google Analytics & click on Continue
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-7-1024x779.png)
Step 8: From the options, Select All Pages, give a name to your tag from the top and finally click on Create Tag
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-8-1024x742.png)
Step 9: Click on the drop-down arrow & Select Preview to test the Tag before publishing it to the live website
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-9-1024x227.png)
Step 10: Now open your website in 2nd tab of Google Chrome & check if this Tag is getting fired properly (Please note that Google Tag Manager Preview doesnt work in any other browser)
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-10-1024x742.png)
If your Tag was implemented successfully then you will have similar view as above screen-shot, Google Analytics tag was fired successfully.
Step 11: Finally, Leave the Preview Mode & Click on Publish button as shown below.
![](https://www.myclickguide.com/wp-content/uploads/2020/08/How-To-Implement-Google-Analytics-Code-Using-Google-Tag-Manager-Step-11-1024x421.png)
That’s it. You have successfully installed the Google Analytics Code on your website.
Don’t forget to comment in case you have any question.
Faisal Ahmed
Every brand has stories to tell - stories that will not only engage, inform, surprise, delight, and impact their audience, but that will also deliver on measurable business goals. My job is to turn these brand stories into profitability by measuring action insights & user behaviors.