Follow a step-by-step guide with screenshots below to implement Google Analytics code using Google Tag Manager. If you haven’t implemented Google Tag Manager in your website yet then follow this blog How to Implement Google Tag Manager in WordPress
Click on the Admin link from the bottom-left menu bar.
Click on Tracking Info link under the Property section and then click on Tracking Code.
Copy the Tracking ID which will always be starting from UA- in Google Analytics.
Click on the Tags and then click on the New button in the top right corner.
Give a logical name to your tag so you can easily identify this in future and click anywhere in the Tag Configuration box.
Click on the Google Analytics – Universal Analytics link under the Choose tag type section
Under the Google Analytics Settings, click on the New Variable
Give an easy to understand name to your variable, enter your Google Analytics Tracking ID in the text box and hit the Save button in the top right corner
Now, click anywhere in the Triggering box to set the trigger. You can set a trigger based on a specific page view, an action on the webpage or fire on all pages. We want Google Analytics to track our entire website hence we will select All Pages Page View.
Finally, Hit the Save button in the top right corner.
As a final step, if you want to test your tag before publishing, you can do that by putting your Google Tag Manager in a preview mode or directly press the Submit button to put this tag live. On the next screen, Google Tag Manager will ask you to enter the information related to the changes you have made and click on Publish.
Once tag will be published, open your website in a new tab and then go back to the Google Analytics and select Real-Time and then click on Overview from home.
If you see a traffic stat then congratulation, you did it 🙂
If you are stuck, comment here or get in touch with me and I will help you fix it.
About the Author
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.
I have over 11 years of experience working in the IT industry.
My specialties include but not limited to Digital Media Marketing, Tracking User Journeys, Brand Awareness, Conversion Tracking, Web Analytics and Media Planning & Executions.