How to fix No Hits in Google Analytics

Last Updated: May 20, 2022

In this article, I am going to talk about how to fix the ‘No Hits’ notification in Google Analytics.

Overview

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. 

Notification

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.

  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

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’.

view page source

Step-3: Now press ‘Control + F’ on your keyboard and enter your GA property ID.

No GA code

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.

Notification check again

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:

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’.

view page source

Step-3: Now press ‘Control + F’ on your keyboard and enter your GTM container ID.

No GTM container

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:

  1. Google Analytics
  2. Google Tag Manager
  3. Google Ads Conversion Tracking
  4. Remarketing
  5. Floodlight, etc

Tag Assistant also reports on implementation errors and suggests fixes.

#3. Non- Standard GA/GTM tracking code

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:

  1. By directly placing the Google Analytics Tracking Code in the head section of all the web pages of a website.
  2. By using a tag management solution like Google Tag Manager.

Following are examples of non-standard implementation of Google Analytics:

  1. Tracking code placed outside the head section (<head> …</head>) of a web page.
  2. Analytics code is being executed via an external JavaScript file.
  3. Tracking code contains Google Analytics commands which your current GA analytics library does not recognize/recommend.
  4. Tracking code contains invalid formatting (extra comma, extra whitespaces, bracket, or semicolon)
  5. Tracking code contains invalid casing (GA function names are case sensitive)
  6. Tracking code deployed via a third-party plugin.
  7. 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. 

other script

#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.

  1. Google Analytics Notifications and Alerts Guide
  2. How to Fix Clicks and Sessions Discrepancy in Google Analytics.
  3. How to fix Goal Conversion Irregularities in Google Analytics
  4. How to fix ‘Missing Tracking Code’ in Google Analytics
  5. How to Fix Missing Ecommerce Data in Google Analytics
  6. How to Fix Missing Campaign Parameters in Google Analytics
  7. How to configure a goal flow in Google Analytics
  8. How to fix self-referrals in Google Analytics
  9. How to Fix Tracking Code Mismatch in Google Analytics
  10. How to fix ‘Destination URLs Not Tagged’ Google Analytics notification
  11. How to fix ‘Incomplete Google AdWords Linking’ in Google Analytics
  12. How to fix ‘Untagged Email Campaigns’ in Google Analytics
  13. How to Fix Redundant Views in Google Analytics

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.

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 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

Learn and Master Google Analytics 4 (GA4) - 126 pages ebook

X
error: Alert: Content is protected !!