Google Analytics’ diagnostics make regular, periodic evaluations of your analytics implementation and provide notifications as an alert or reminder to keep it running and functionally effective.
Sometimes you get a notification saying ‘No Hits’. This notification is a red notification and that means you must address these issues as soon as possible as they indicate critical issues with your implementation/configuration setup.
If you get this notification then it could mean:
Your Google Analytics tracking has stopped working. Either someone has removed the GA tracking code from your website or the tracking code has broken or is not firing anymore. There could also be chances that your website suffered a temporary outage.
We will see how we can fix this notification. But first, let’s understand why these notifications are showing.
Why are you getting ‘No Hits’ notifications in Google Analytics?
There could be multiple reasons for getting a ‘No Hits’ notification in Google Analytics. A few of them I have listed down.
Missing GA tracking code
Missing GTM tracking code
Non- Standard GA/GTM tracking code
Another script conflicting with GA script
Website server issue
Now let’s see in detail how to fix the ‘No Hits’ notification.
How to fix ‘No Hits’ notifications in Google Analytics
Based on the reasons for having the ‘No Hits’ notification, here are a few solutions that might help you fix the issue.
#1. Missing GA tracking code
The most common reason for having a ‘No Hits’ notification is the missing GA tracking code on the website. Many times it happens that whenever you have any new functionality to deploy on the website, the dev team forgets about adding the GA tracking code and publishes the website to production.
This leads to immediate loss of data tracking in Google Analytics. To check whether a GA tracking code is available on the website or not you can follow the below steps.
Step-1: Open any URL of your website in the browser and hit enter.
Step-2: Once the webpage is loaded right click on the page and click on ‘View Page Source’.
Step-3: Now press ‘Control + F’ on your keyboard and enter your GA property ID.
As you can see from the above image, there are no results for the tracking code. This means Google Analytics tracking code is not placed and hence you are getting the ‘No Hits’ notification.
Step-4: Now you can ask your developer team to install the GA tracking code on all the pages of the website.
Step-5: Once you have implemented the code, click on the ‘Check again’ link in the notification.
If Google diagnostics doesn’t find any tracking issue after the next crawl then you will see a notification that says the issue has been resolved:
#2. Missing GTM tracking code
Another common reason for having a ‘No Hits’ notification in Google Analytics is that Google Tag Manager, GTM container is missing. Even though you have set up a Google Analytics tag, if the main GTM container code is missing then you are receiving no hits from the website.
To check whether a GTM tracking code is available on the website or not you can follow the below steps.
Step-1: Open any URL of your website in the browser and hit ‘Enter’.
Step-2: Once the webpage is loaded right click on the page and click on ‘View Page Source’.
Step-3: Now press ‘Control + F’ on your keyboard and enter your GTM container ID.
As you can see from the above image, there are no results for the GTM container code. This means Google Analytics tracking code is not placed and hence you are getting the ‘No Hits’ notification.
Step-4: Now you can ask your developer team to install the GTM container code on all the pages of the website.
Step-5: Once installed you can check if it’s working or not using the chrome extension Google Tag Assistant that is used to identify, validate and troubleshoot the installation of various Google Tags on a web page.
These Google Tags can be:
Google Analytics
Google Tag Manager
Google Ads Conversion Tracking
Remarketing
Floodlight, etc
Tag Assistant also reports on implementation errors and suggests fixes.
When you deploy the Google Analytics tracking code in any other way rather than the recommended method, your GA setup may no longer remain a standard implementation.
There are only two recommended ways to install Google Analytics on a website:
By directly placing the Google Analytics Tracking Code in the head section of all the web pages of a website.
By using a tag management solution like Google Tag Manager.
Following are examples of non-standard implementation of Google Analytics:
Tracking code placed outside the head section (<head> …</head>) of a web page.
Analytics code is being executed via an external JavaScript file.
Tracking code contains Google Analytics commands which your current GA analytics library does not recognize/recommend.
Tracking code contains invalid formatting (extra comma, extra whitespaces, bracket, or semicolon)
Tracking code contains invalid casing (GA function names are case sensitive)
Tracking code deployed via a third-party plugin.
Using multiple Google Analytics tracking codes on the same page.
#4. Another script conflicting with GA script
Your website may have multiple java query scripts running on pages. Sometimes it may happen that two bits of JavaScript are using the same variable resulting in a conflict that may break either or both scripts. In such cases even if you have a valid tracking code, no hits will be sent to Google Analytics.
Sometimes this kind of error also arises from the cookies rewritten by other scripts. The best solution to such problems is to use the Analytics debugger every time a new script is added to a page and check for data going to Google Analytics.
#5. Website server issue
This reason is not very common but can be one of the causes behind getting a ‘No Hits’ notification in Google Analytics. If the website server is down due to any reason, your website won’t be loaded on any of the browsers and hence there will not be any hits to Google Analytics as well.
If any time you find that all your tracking codes are correct and still you get a ‘No Hits’ notification, there might be a possibility that your website server is down.
The best solution for this is to host your website on trusted web servers that provide 99% to 100% uptime. These can be shared or dedicated servers as well.
Other Articles on Google Analytics Notifications and alerts
Frequently asked questions about how to ‘No Hits’ notification in Google Analytics.
What does ‘Hit’ mean in Google Analytics?
A hit is a particular interaction between a website user and the website that is being tracked and sent to Google Analytics by network call. In other words whenever a user interacts with the website (pageview hits, event hits, ecommerce tracking hits, social and social interaction hits) are recorded, packed into hits and then sent to Google’s server.
Why am I getting a ‘No Hits’ notification in Google Analytics?
You get a ‘No Hits’ notification if your Google Analytics tracking has stopped working. Either someone has removed the GA tracking code from your website or the tracking code has broken or is not firing anymore. There could also be chances that your website suffered a temporary outage.
There could be multiple reasons for getting a ‘No Hits’ notification in Google Analytics. A few of them are as below.
1. Missing GA tracking code 2. Missing GTM tracking code 3. Non- Standard GA/GTM tracking code 4. Another script conflicting with GA script 5. Website server issue
How to fix ‘No Hits’ notifications in Google Analytics?
Based on the reasons for having the ‘No Hits’ notification, here are a few solutions that might help you fix the issue.
1. Check if your website is missing GA/GTM tracking code. If yes ask your developer to install a valid tracking code 2. Avoid non-standard implementation of GA/GTM tracking code which might break analytics processing. 3. Avoid multiple scripts on the website to avoid conflict between them. 4. Check if the website server is not down.
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.