Google Analytics stopped working? Here are 15 ways to fix it

Sometimes Google Analytics tracking code just stops working (i.e. does not fire anymore).

Sometimes the tracking code fires but certain hits (like ‘event’ hit) just drop (i.e. not sent to the GA server). In that case, your existing or new tracking code may not work.

So how can you fix the problem? There may or may not be an easy fix and there is certainly no ‘one size fit all’ solution. But they are a couple of things you can do to determine what has gone wrong and what can be done to fix the issue.

#1 Delete and disable the cache

You may be in a situation where you are making a lot of code changes to your website but nothing really is reflecting back in your Google Analytics real-time reports or via any other debugging tool you may be using.

Chances are, your CDN (like ‘Cloudflare’), cache plugin (like ‘WP Super Cache’) and/or web browser keep loading the previous version of your web page and they have cached your web page and all of its elements (images, JavaScript, etc) so good (but for you so bad) that no amount of ‘browser refresh’ make any difference.

So code changes do not load correctly or do not load at all, in your web browser.

Your testing could become really hard if you can’t see the changes you are making.

You need to delete all the existing cache and disable new cache from creating while you are making code changes or doing testing.

Also, make sure that the checkbox ‘Disable Cache (while DevTools is open)’ in the Chrome developer tool settings is checked:

This setting disable browser caching for the page you are visiting while the developer console is still open.

Get the E-book (52 Pages)

Get the E-Book (37 Pages)

#2 Use Google Tag Assistant and check ‘where to optimize’

Google Tag Assistant is a chrome extension through which you can identify, validate and troubleshoot the installation of various Google Tags on a web page.

Follow the steps below:

Step-1: Install Google Tag Assistant Chrome extension and then enable it.

Step-2: Install Google Analytics debugger chrome extension and then enable it. The GA debugger, reports on error messages and warnings related to your tracking code in the developer console and tag assistant.

Step-3: Switch on the Google Analytics debugger by clicking on its icon on the top right-hand side of your browser address bar:

turn on ga debugger

Step-4: Right-click on the tag assistant icon and then select ‘Options:

tag assistant options

Step-5: Change the ‘Level of Details’ for all Google tags to ‘Detailed Information’:

detailed information

Step-6: Within the tag assistant options, make sure that the ‘Recording: Follow Links Across Tabs’ checkbox is checked:

recording follow links

Step-7: Click on the Google Tag Assistant icon again and then click on the ‘Menu’ button. Make sure that ‘Auto Validation’ and ‘GA Debug’ settings are turned ON:

tag assistant menu button

Step-8: Navigate to that web page of your website where you want to test your Google Analytics tracking code.

Step-9: Click on the tag assistant icon and look for the following message ‘No Google Analytics HTTP responses because….’ under the section ‘where to optimize’:

No Google Analytics HTTP responses’ mean your Google Analytics Tracking code is not firing.

In my case, I am using ‘Google Analytics opt-out add on’ Chrome extension which has disabled Google Analytics. So I am aware of why the GA tag is not firing.

Make sure that you are not using any similar browser add-on/extension which disables Google Analytics in your browser.

Sometimes firewall settings can disable Google Analytics.

There could be many other reasons of a GA pageview hit getting dropped like:

  • Web page missing the Google Analytics Tracking Code (GATC)
  • Web page contains invalid GATC
  • Web page taking too long to send the pageview hit.
  • Google tag manager not firing the Google Analytics tag.

Google Tag Assistant may reveal what might be going wrong on your web page by displaying a warning or error:

#3 Use developer console and look for ‘abort’ and ‘command ignored’ error messages

Google developer console is a debugging tool that is already built-in chrome browser.

So you don’t need to install it separately. Just right click on a web page and select ‘Inspect’ to open it.

Follow the steps below:

Step-1: Navigate to that web page of your website where you want to test your Google Analytics tracking code.

Step-2: Right-click on a web page and select ‘Inspect’ (in the chrome web browser). 

This action will open the developer console at the bottom of the web page:

google developers console

Step-3: Click on the ‘Console’ tab.

Step-4: Right-click on the console and then select ‘clear console’:

Step-6: Reload your web page in the web browser and then look for error messages related to aborting:

#4 Read the GIF Request (Tracking Beacon)

The Google Analytics tracking code sends hit and browser data to the Google Analytics server via a transparent GIF image file called _utm.gif. This file is requested for each hit.

Through developer console you can read this file:

Sometimes you just won’t see the Google Analytics hit (pageview, screenview, event, etc) you want to send to the GA server in the tracking beacon. 

Whenever a hit is dropped, aborted or a Google Analytics command is ignored, it means your tracking code is not working the way it is supposed to work.

#5 Use Google Tag Assistant recording to find dropped hits

Google Tag Assistant Recording is one of the features of the Google Tag Assistant through which you can validate tags across multiple web pages.

Google Tag Assistant by default can not validate tags across multiple web pages. So you would need to use its recording feature.

Follow the steps below:

Step-1: Click on the Google Tag Assistant icon again and then click on ‘Menu’ button > ‘Show in separate tab’. The ‘Show in separate tab’ menu item will open the Google Tag Assistant in a separate browser tab:

show in seperate tab

Step-2: Click on the ‘Record’ button at the bottom of the ‘Result of Tag Analysis’ window:

Step-3: Now reload the web page from where you want to start the recording. This reload will send a request/hit to Google Tag Assistant and your recording will actually start.

Step-4: Click on the ‘Stop recording’ button:

stop recording

Step-5: Click on the ‘Show Full Report‘ button. Once you clicked on this button, you will be redirected to ‘Google Tag Assistant Recordings’.

Step-6: Click on the ‘Google Analytics Reports’ tab:

Google Analytics Report

Step-7: Select your GA property and view. You will then see the ‘Google Analytics report’ of the tag assistant recording.

Step-8: Scroll down to the bottom of the Google Analytics report and click on ‘Page Load’ under the ‘Flow’ section:

Step-9: Click on ‘Hit 1’:

Step-10: Now look at the message under ‘Mutation’. It should be something like the one below:

If the hit is dropped then you may see a message like the one below:

Sometimes errors and warnings are prominently displayed by tag assistant recordings which you can find under the ‘Alerts’ section:

Check the official Tag Assistant Recordings alert message reference guide to learn more about these error messages and what action can be taken to fix them.

#6 Avoid non-standard implementation of Google Analytics

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.

When you deploy the Google Analytics tracking code in any other way, your GA set up may no longer remain a standard implementation.

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

  • Google Analytics tracking code (GATC) placed outside the head section (<head> …</head>) of a web page.
  • GATC being executed via an external JavaScript file.
  • GATC contains Google Analytics commands which your current GA analytics library does not recognize/recommend.
  • GATC contains invalid formatting (extra comma, extra whitespaces, bracket or semicolon)
  • GATC contains invalid casing (GA function names are case sensitive)
  • GATC deployed via a third party plugin.
  • Using multiple Google Analytics tracking code on the same page.

There are many webmasters who use a third-party plugin to install Google Analytics tracking on their website.

These plugins often modify the original Google Analytics tracking code by:

# Changing the name of the tracking object.

# Adding new Google Analytics commands

# Adding their own lines of codes in between the Google Analytics tracking code.

Now if something goes wrong with the plugin itself or you customized the Google Analytics tracking code in such a way that the plugin no longer communicates with the GA JavaScript then your tracking may stop working.

Your testing could become really hard if you are not familiar with the plugin code and how it is supposed to work with Google Analytics.

Unless you are a ‘ninja’ or ‘guru’ of Google Analytics development environment, you know exactly what you are doing and how it can affect existing website tracking and/or you can decode any plugin, your best bet is to stay away from such third-party plugins and stick to the standard installation of Google Analytics.

#7 Avoid customizing the standard Google Analytics tracking code

Avoid making any changes to your Google Analytics tracking code, unless you are 100% sure what you are doing.

Use a test property if you really want to learn new tricks. Avoid experimenting on a live website esp. if it does not belong to you.

If you have already changed the Google Analytics tracking code then replace it with the fresh code provided by Google Analytics.

Make sure that you copy-paste the GATC directly into the HTML of your web pages without changing its formatting or casing.

#8 Look for broken GTM container tag

The use of Google Tag Manager (GTM) makes tag deployment very easy and efficient.

But sometimes during website updates, the container tag can break.

And when that happens all of the website tracking stop working immediately.

So if you use GTM then make sure that the container tag is still intact.

#9 Avoid non-standard implementation of Google Tag Manager

There is only one recommended way to install Google Tag Manager on a website:

Add one part of the container tag code (the JavaScript part) in the <head>…</head> section of a web page and the other part (the iframe part) in the body section of a web page (immediately after the opening <body> tag:

When you deploy the GTM container tag code in any other way, your GA set up may no longer remain a standard implementation.

Following are examples of non-standard implementation of Google Tag Manager:

  • All of the GTM container tag code added immediately after the opening <body> tag.
  • GTM container tag code added immediately before the closing </body> tag.
  • The container code deployed via an external JavaScript file.
  • Container code contains invalid formatting and/or invalid casing.
  • GTM container code deployed via another tag management solution
  • Use of multiple container codes on same web page.
  • Use of a third party plugin to install Google Tag Manager on a website.

Now I am not saying that you can not make the non-standard implementation of GA/GTM work for you.

But remember, when you have got a non-standard setup (the one which is not recommended by Google) you could end up creating hard to diagnose tracking issues.

Often a non-standard tracking setup behaves in an unexpected way and if you are not familiar with the GA/GTM development environment then you could make your testing and debugging unnecessarily difficult.

#10 Avoid customizing the GTM container tag

They say a little knowledge is a dangerous thing and this is particularly true for Google Tag Manager.

If you accidentally break your container tag while customizing it, all of your website tracking can stop working immediately.

Tread with extreme caution.

#11 Dealing with 307 redirects on Google Analytics Calls

Many times you will see that Google Analytics calls are duplicated or redirected when checked in the network tab of a browser. As you can see from the below image, it looks like the status code for all Google Analytics calls sent via the GET method are duplicating.

If this is happening on your website, you must understand that the 307 statuses are not duplicate calls, but are redirects.

In general, redirects happen when analytics hits are not sent through standard Google Analytics via SSL protocol. Long story short, if the analytics hits contain request URL with “http://” protocol you will find 307 redirects in debug console.

This happens if you are using an Ad-Block extension. The extra network calls are not causing any deviation to data being sent to Google Analytics but if you don’t want to see duplicate network calls try disabling your extensions and check again.

If you want to send analytics hits using standard “https://” protocol you can do it in the following ways

Use the forceSSL parameter in GTM

Add the forceSSL parameter with value set to true in fields to set for every Universal Analytics tag in Google Tag Manager

Add a piece of code to your main tracking code

Set forceSSL for your ga tracker ga(‘set’, ‘forceSSL’, true).

The complete tracking code may look like below



  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),



 ga(‘set’, ‘forceSSL’, true);

  ga(‘create’, ‘UA-xxxxxx-1’, ‘auto’);

  ga(‘send’, ‘pageview’);


#12 Filters Set Up

Many organizations use filters in their analytics views to avoid traffic from unwanted sources. In general, traffic filters are set to avoid counting internal employees visiting the website. Other analytics views created for specific purposes also uses filters. For example, if you have created a separate view for the European region and only want to have data from the European countries.

Sometimes setting up incorrect filters also results in no data in Google Analytics. Make sure you set up the filters correctly and validate them in real-time.

Also, it is good practice to always maintain an unfiltered view, just to avoid loss of data. Be extra cautious while using including and excluding attributes of a filter. You have to be very careful while filtering attributes.

#13 Blocking extensions: Ad blockers and script blockers

Many users nowadays use different types of browser extensions which saves them a lot of time when doing day to day routine activities.

Some of these extensions are ad blockers or script blockers which don’t allow the loading of certain files on the webpage and block files, particularly paid ads, display ads and video ads.

These extensions sometimes block Google Analytics script and Google Tag Manager script, hence you see no data in Google Analytics.

Try to disable all these extensions while debugging the analytics implementation.

#14 Iframe tracking

If you use iframes on your website to a larger extent you must know that an iframe contains its own <head> and <body> tags. In other words, you can say that iframes are a micro-website (child website) within your main website (parent website).

Analytics scripts only load for the parent website and because of this, you will not be able to track anything inside an iframe, leading to no data being sent to analytics tool for pageviews and events inside the iframe. If you want to track the iframe you need to manually load the analytics script into the iframe.

Note: Loading the same analytics script in the main parent website and iframe may lead to duplication of pageview and event.

#15 Dealing with website environments and publishing

You might use different website environments in order to test and validate the functionality of the website. The same happens with analytics as well. You can have a separate property or a separate view for each environment.

It happens many times while switching between the environments or publishing it to the production environment we forgot to update the property ID in the analytics script. This can break the current analytics set up and Google Analytics may stop working.

Always be careful while switching the environment and debugging its data in Google Analytics property or view for the corresponding environment.

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

Himanshu Sharma

Digital Marketing Consultant and Founder of

Himanshu helps business owners and marketing professionals in generating more sales and ROI by fixing their website tracking issues, helping them understand their true customers' purchase journey and helping them determine the most effective marketing channels for investment.

He has over 12 years of experience in digital analytics and digital marketing.

He was nominated for the Digital Analytics Association's Awards for Excellence. The Digital Analytics Association is a world-renowned not-for-profit association that helps organisations overcome the challenges of data acquisition and application.

He is the author of four best-selling books on analytics and conversion optimization:

error: Alert: Content is protected !!