The first method to check if Google Tag Manager is working or not is by identifying the GTM container code in the website’s source code.
GTM container code is made up of two parts. The first part should always be placed after the opening <head> tag, and the second part should be placed just after the opening <body> tag.
Follow the below steps to know more:
Step-1: Navigate to your website’s home page.
Step-2: Right-click anywhere on the page background and select ‘View Page Source’. Alternatively, you can also press ‘Ctrl + U’ to do the same thing.
A new window will open like the below, showing the page’s source code.
Step-3: Now press ‘Ctrl + F’, which will open the find function in the right upper corner.
Step-4: In the find function’s text box, type ‘gtm.js’ and press ‘Enter’.
If you have implemented the GTM container code correctly, you should be able to verify its instance under the <head> tag, like the below image:
Step-5: Now, in the input box of the find function, type ‘Google Tag Manager (noscript)’ and press ‘Enter’. This is the second part of the GTM container code and should be placed just after opening the <body> tag.
If you have implemented it correctly, you should be able to find its instance after opening the <body> tag like the below image.
Check using Google Tag Manager’s preview and debug mode
The second method to check if Google Tag Manager is working or not is by using the preview and debug mode.
Through the Google Tag Manager preview and debug console window, you can make sure that your GTM container is loading correctly and that you can test tags, triggers, variables, and data layers as expected.
Follow the below steps to know more:
Step-1: To enable preview mode, log in to your GTM account and click on the ‘Preview’ button in the upper right-hand corner.
Step-2: A new window will open with Google preview mode. Add the URL of your website where external links are present and click on ‘Start’.
Step-3: Another new window will open with the specified URL. Navigate back to the preview window of Google Tag Manager, and there you will see the success message which states ‘Connected!’ once the preview mode is enabled for the URL. Click on ‘Continue’.
Step-4: If you have implemented the GTM container correctly, you should see the below screen with status connected, browser events, and tags fired.
Additionally, on the page where the Google Tag Manager debug mode is enabled, you will see the notification which shows that the debugger is connected.
The third method to check if Google Tag Manager is working or not uses the Google Tag Assistant Chrome extension. Google Tag Assistant is used to identify, validate and troubleshoot the installation of Google Tag Manager and various Google tags on a web page.
Once you have installed the Google Tag Assistant Chrome extension, you need to enable it before you can use it on a web page.
Follow the below steps to know more:
Step-1: Navigate to your website’s home page.
Step-2: Locate and click on the Google Tag Assistant icon on the top right-hand side next to the browser address bar.
Step-3: Click on the ‘Enable’ button and refresh the web page.
Step-4: After refreshing the page, click on the Tag Assistant icon again, and you should see the status of your Google Tag Manager container in green.
Check if the GTM script is running in Chrome’s developer console
The fourth method to check if Google Tag Manager is working is by checking the GTM script running in the ‘Elements’ tab of Chrome’s developer console.
Follow the below steps to know more:
Step-1: Navigate to your website’s home page.
Step-2: Right-click anywhere on the page background and select ‘Inspect’.
Step-3: This will open the developer console window at the bottom of a web page.
Step-4: Click on the ‘Elements’ tab and press ‘Ctrl + F’, which will open the find function at the bottom of the window.
Step-5: In the find function text box, type ‘gtm’ and press ‘Enter’. If you have implemented the GTM container code correctly, you should be able to verify its instance like below.
Check Chrome’s developer console in the network tab
The fifth method to check if Google Tag Manager is working is by checking the GTM script running in the ‘Network’ tab of the developer console.
The main use of the ‘Network’ tab is to validate server calls and sent parameters. You can see every server call made, like GTM call, analytics events, and pageview sent to the server.
Follow the below steps to know more:
Step-1: Navigate to your website’s home page.
Step-2: Right-click anywhere on the page background and select ‘Inspect’.
Step-3: This will open the developer console window at the bottom of a web page.
Step-4: Go to the ‘Network’ tab in the console. You will see a screen like the one below.
Step-5: Select the checkboxes named ‘’Disable Cache’ and ‘Preserve log’.
Step-6: Type ‘gtm’ in the filter on the left-hand side and refresh the page.
Step-7: Once you refresh the page, you should be able to see something like ‘gtm.js?id=GTM-AAAA’
GTM-AAAA is the container code ID example that I am using here as an example. You should see your actual GTM container code here.
The status code for this server call should be 200, which means your Google Tag Manager is working fine.
Check using Google Analytics real-time reports
The sixth method to check if Google Tag Manager is working is by checking the real-time reports in Google Analytics.
If you use only Google Tag Manager for your analytics implementations and send events and pageviews, you can check the real-time reporting.
If there are any issues with your Google Tag Manager, the real-time reports will not show any active users. But if it is working perfectly fine, you can see the users and their activities on the website in real-time.
Follow the below steps to know more:
Step-1: Navigate to your Google Analytics account.
Step-2: Click on ‘Realtime’ from the menu on the left-hand side.
Step-3: Now click on ‘Overview’.
Step-4: You shall be able to see the real-time users and their activities on the website, which means your Google Tag Manager is working fine.
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 BeyondSECOND EDITION OUT NOW!
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.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
Free GA4 Mastery Course (30 Days Access) – Certification Upon Completion! (Over 4000 Students)
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.