How to remove Google Analytics from a website, step by step

Find where the Google tag loads (your CMS or theme settings, a snippet in your pages, or Google Tag Manager), remove it there (keeping any part other Google products use), reload and check in your browser's Network tab that nothing reaches Analytics, then delete the property in Analytics if you want it gone. Steps checked against Google's help pages on 15 October 2026.

TL;DR

  • Find where the Google tag loads: your CMS or theme settings, a snippet in your pages, or Google Tag Manager.
  • Remove it there, keeping any part other Google products use.
  • Reload and check in your browser's Network tab that nothing reaches Analytics.
  • Delete the property in Analytics if you want it gone.

If you are swapping Analytics for something else, Stickybeak is one script tag. It is in early access, with a free plan and paid plans from US$20 a month.

Get early access

Before you start

  • Edit access to your site: the CMS or website builder, or the theme or page files.
  • If you use Google Tag Manager, access to the container with permission to publish.
  • To delete in Analytics afterwards: an Editor role or above. Google says Editor is needed to open the Trash Can and to delete a data stream.
  • Do the site first and the Analytics account second. The tag lives in your pages, so deleting the property doesn't take it out of them.
  • Removing it because of privacy rules? Read whether Google Analytics is GDPR compliant first; consent settings may be all you need to change.

How to remove Google Analytics

  1. Find where the tag loads. Open your site, view the page source and search for googletagmanager.com, gtag( and your Measurement ID, which starts with G-. A Tag Manager container shows as an ID starting GTM-. Note every place you find it, because sites often have it in more than one. Also note whether the same tag serves other Google products: one Google tag can send to several destinations, such as Google Ads as well as Analytics, and it can load under any of its IDs (GT-, G- or AW-). If it does, don't remove it from your site, or your Ads tracking stops too. Remove Analytics as a destination in the tag's settings instead (the last step below).
  2. Clear it from your website builder or CMS. Google's setup guide says that on platforms such as Shopify, HubSpot, Wix and WordPress you install Analytics by entering your Google tag ID in the field the platform provides. Open that field (in the platform's analytics or integrations settings), delete the ID and save. (The Wix analytics guide shows where that field sits on Wix, and the Squarespace analytics guide where it sits on Squarespace.) If a plugin or theme option added it, turn that off too. If the tag in that field also serves Google Ads, leave it and remove the Analytics destination instead.
  3. Delete a pasted snippet. Google's manual install has you paste the JavaScript snippet immediately after the opening head tag on each page. The snippet is two script blocks: the first loads gtag/js, and the second is an inline block that holds the configuration. If Analytics is the only thing the tag does, remove both, ending at the second closing script tag, from your theme's header template or from each page that has it. If the tag also serves another product such as Google Ads, leave the snippet in place: with a combined Google tag, deleting the gtag('config', 'G-…') line doesn't necessarily stop Analytics, because the tag's destinations are set in Google's tag settings, not on the page. Remove the Analytics destination there instead.
  4. Remove the tag in Google Tag Manager. If Analytics loads through a container, open the workspace and delete only the Analytics tag there; the container can stay for your other tags. If that Google tag's ID also serves Google Ads, keep it and remove the Analytics destination instead. Then click Submit, choose Publish and Create Version, name the version and click Publish. Until you publish, the tag keeps firing on your live site.
  5. Check it's gone. Clear your site's cache and any CDN cache, then open your browser's developer tools, go to the Network tab, reload the page and click around. No request should go to Google Analytics with your Measurement ID (filter for G- or collect). Google's Tag Assistant shows the same thing. Searching the page source for googletagmanager.com isn't enough on its own: a Tag Manager container you're keeping for other tags still matches, and Analytics loaded by a container doesn't appear in the source. The Realtime report in Analytics is a useful second check, since your visit should no longer show up, but it can lag.
  6. If the tag is shared, remove Analytics as a destination. Open the Google tag's settings: in Google Ads, open the Google tag settings; in Analytics, go to Admin, then Data streams under Data collection and modification, and select your stream. In the tag's Admin tab, under Manage your Google tag, remove the Analytics destination. Google says removing a destination doesn't change the tag's IDs, so the code on your site keeps working for the products you keep. Then check the Network tab again.
  7. Delete the property, if you want to. In Analytics, open Admin, and under Property click Property details, then Move to Trash Can. Google holds accounts and properties in the Trash Can for 35 days before they're permanently deleted, and the property's data streams go with it.

Removing the tag is the part that stops data leaving your site. Deleting the property is optional housekeeping.

If you only want to delete one data stream

In Admin, under Data collection and modification, click Data streams, click the stream's row, then open the More menu (three dots) and choose Delete stream. You need the Editor role on the property. Google is plain about the cost: "If you delete a data stream, you can't undelete or recover it", and integrations that rely on it, such as BigQuery Export, stop working. A property moved to the Trash Can can be restored, a stream deleted on its own can't.

If it doesn't work

  • The tag is still in the page source. Look for a second copy: a plugin, a second template, a footer, or a page builder block. Then check for a cached version of the page.
  • Visits still appear in Realtime. Another page or subdomain may still carry the tag, or Tag Manager still has it because the container was never published.
  • You can't see Trash Can or Delete stream. Google requires the Editor role. Ask an account administrator.
  • You deleted too soon. Within 35 days, open Admin, click Trash Can under Account, find the property and click Restore. Google says data processing resumes for core reports within an hour of a restore. A stream deleted on its own can't be restored.
  • You want a record first. Export any reports you need before deleting, because permanent deletion can't be undone.

Where Stickybeak fits

If you're swapping Analytics for something else, Stickybeak is one script tag: the quick start has the steps. It's in early access, with a free plan up to 10k pageviews a month and paid plans from $20 a month (see pricing). For other options, see Google Analytics alternatives; for what the tag manager does and whether to keep the container, GTM vs Google Analytics.

Questions

How do I remove Google Analytics from my website?

Remove the tag from wherever it loads: the Google tag ID field in your website builder or CMS, the snippet pasted into your pages' head, or the Analytics tag in Google Tag Manager (then publish the container). If the same Google tag also serves Google Ads, keep it on your site and remove Analytics as a destination in the tag's settings instead. Reload the page and check in the browser's Network tab that no request reaches Analytics.

Does deleting my Analytics property remove the tracking code from my site?

No. The tag is part of your own pages or container, so you remove it there. Deleting the property only deals with the account side.

Can I get a deleted Google Analytics property back?

For 35 days, yes. Google moves accounts and properties to the Trash Can and holds them for 35 days before permanent deletion, and you need the Editor role to restore one. A data stream you delete directly can't be undeleted or recovered.

Do I need to delete the property if I remove the tag?

No. Removing the tag stops your site sending data. Deleting the property is optional and only worth doing if you want the account tidied up or the history gone.

How do I remove Google Analytics from a site that uses Google Tag Manager?

Delete only the Analytics tag in your container's workspace and leave its other tags, then click Submit, choose Publish and Create Version, and click Publish. Until you publish, the tag keeps firing on your live site.

Sources, checked 15 October 2026: Analytics Help, Set up Analytics for a website, Delete / restore accounts and properties and Edit / delete accounts, properties, and data streams; Tag Manager Help, Publishing, versions, and approvals. Google changes its pages; if one has moved on, tell us and we will fix it.