How to Disable Google Analytics

Cody Schneider6 min read

Thinking about turning off Google Analytics? Whether you're switching platforms, developing a new site, or prioritizing user privacy, removing Google Analytics is a straightforward process. This guide walks you through exactly how to disable GA tracking, from temporarily pausing it for testing to permanently removing it from your website.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Would You Disable Google Analytics?

While Google Analytics is an incredibly powerful tool, there are several valid reasons you might need to hit the brakes on data collection. Understanding your "why" will help you choose the right method.

  • Switching to a New Analytics Platform: You might be moving to a privacy-focused alternative like Matomo or Fathom, or a product analytics tool like Mixpanel. Running two analytics scripts at once can slow down your site and is generally unnecessary.
  • Website Redesigns or Development: When you're staging a new version of your website, you don't want test traffic from your developers and designers polluting your real-world data. Disabling tracking on a development server is standard practice.
  • Privacy Compliance: For some businesses, navigating the complexities of GDPR, CCPA, and other privacy regulations with Google Analytics is a significant challenge. Some choose to opt-out entirely in favor of simpler, privacy-first tools.
  • Decommissioning a Website: If a microsite, campaign landing page, or old version of your blog is being taken offline, there's no reason to keep the tracking code active.
  • Improving Site Performance: Although the GA script is highly optimized, every external script adds a tiny bit to your page load time. For sites obsessed with performance, removing non-essential scripts can provide a marginal speed boost.

How to Temporarily Disable Google Analytics Tracking

Sometimes you don't want to get rid of GA forever, you just need to stop tracking your own activity or pause data collection during development. Here are the best ways to do that.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Method 1: Block Your Own Traffic with a Browser Extension

This is the easiest way to stop GA from recording your own visits. It only affects your browser, so real users will still be tracked. This is perfect for marketers, content creators, and admins who are constantly on their own site and don't want to skew the data.

  1. Go to the Chrome Web Store (or the extension marketplace for your preferred browser).
  2. Search for an extension like "Block Yourself from Analytics."
  3. Add the extension to your browser.
  4. Once installed, open the extension's options and add your website's domain to the blocklist.

That's it. The extension will now block the Google Analytics script from firing whenever you visit your own website from that browser.

Method 2: Use an IP Address Filter in Google Analytics

This method tells Google Analytics to ignore all traffic coming from a specific IP address, like your office or home network. It’s a more robust solution for excluding internal traffic from your entire team without requiring everyone to install a browser extension.

In Google Analytics 4, you do this by defining "Internal Traffic."

  1. Find Your IP Address: Simply search "what is my IP address" on Google. Copy the public IP address it shows you.
  2. Define Internal Traffic:
  3. Activate the Filter:

After a few hours, GA will start excluding any data coming from the IP address(es) you specified.

How to Permanently Disable Google Analytics

If you're ready to remove Google Analytics for good, you'll need to remove the tracking code snippet directly from your website files. The steps vary depending on how your site is built.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Method 1: Removing the Code from Your Website's HTML

The first step is always to locate your unique GA tracking script. A GA4 snippet (or gtag.js snippet) typically looks like this:

<-- Google tag (gtag.js) --&gt, <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script> <script> window.dataLayer = window.dataLayer || [], function gtag(){dataLayer.push(arguments),} gtag('js', new Date()), gtag('config', 'G-XXXXXXXXXX'), </script>

Your goal is to find this block of code and delete it.

For a simple HTML website:

You'll need to edit the HTML files of your site. This code is almost always located in the <head> section of every page. If your site uses a template or header file, you'll likely only need to remove it from that one location.

For a WordPress website:

There are a few places the code might be:

  • Via a Plugin: If you used a plugin like MonsterInsights, Site Kit by Google, or Insert Headers and Footers, the solution is easy. Just go to that plugin's settings in your WordPress dashboard and either disconnect your Google Analytics account or remove the script from the settings field.
  • In Your Theme Options: Some WordPress themes have a dedicated section in the theme customizer (under "Appearance" > "Customize") to add tracking scripts. If you find your code there, simply delete it and save.
  • Manually in theme files (header.php): If it was added manually, the code is likely in your theme's header.php file. Go to "Appearance" > "Theme File Editor," select header.php from the right-hand menu, find the G-tag snippet, and carefully delete it. Warning: Editing theme files directly can break your site if you make a mistake. Make a backup first.

Method 2: Remove the Code Using a Tag Manager

If you use Google Tag Manager (GTM):

  • Log in to your Google Tag Manager account.
  • Select your container and go to the Tags section.
  • Find your Google Analytics tag (usually named something like "GA4 Configuration").
  • Click on the tag to open it.
  • You can either Pause the tag by clicking the pause icon or Delete it permanently via the three-dots menu.
  • Finally, click the blue Submit button to publish your changes.

Your GA tracking will stop immediately after you publish the changes in GTM.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Last Resort: Deleting Your Google Analytics Property or Account

If you've removed the script from your site but also want to obliterate the historical data, you can delete your property or entire account. This is a permanent action and your data cannot be recovered after the grace period.

  1. Go to Admin in Google Analytics.
  2. To delete just one website (a Property), select it in the Property column, click Property Settings, and then click Move to Trash Can.
  3. To delete your entire account and all properties within it, select the account in the Account column, click Account Settings, and then click Move Account to Trash Can.

Items in the trash can are permanently deleted after about 35 days.

Final Thoughts

Whether you need a quick, temporary way to exclude your own traffic or a permanent solution for switching analytics tools, disabling Google Analytics is a manageable task. The right approach depends entirely on your goal - from installing a simple browser extension to editing your website's code or deleting your property altogether.

Once your analytics are sorted, the real work begins: turning data into actionable insights instead of just collecting it. Manually combining reports from different platforms often feels like a full-time job. To simplify this, we built Graphed. It connects to all your marketing and sales data sources in one place, so you can build dashboards and get insights just by asking questions in plain English - no more wasted hours wrestling with spreadsheets or over-complicated BI tools.

Related Articles

How to Enable Data Analysis in Excel

Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!