# Google Tag Manager vs Google Analytics: what each one does

The CrispStats team · Published 2026-11-23 · Updated 2026-11-29

**TL;DR:** Google Analytics is a measurement tool: it collects visits and events and turns them into reports. Google Tag Manager is a delivery tool: it decides which scripts, called tags, load on which pages and when, and it shows no traffic reports of its own. You can run Google Analytics without Tag Manager, and Tag Manager is often used to load Google Analytics alongside every other tag on a site.

The two names sound like parts of one product, and both are free from Google, so people install one expecting the other. The difference is simple once you see it: one tool counts, the other one loads the thing that counts. This guide explains each, puts them side by side, and walks through the same task done both ways.

## What is Google Analytics?

[Google Analytics](https://marketingplatform.google.com/about/analytics/) (today GA4) is a web and app analytics service. A small script on your pages sends a hit for each [pageview](/glossary/pageview) and each event, Google stores them, and you read the result in reports: users, [sessions](/glossary/session), [traffic channels](/glossary/traffic-channel), conversions, and explorations for deeper questions.

It keeps data. Standard properties can keep user-level event data for [2 or 14 months](https://support.google.com/analytics/answer/7667196) for explorations, while the standard aggregated reports are not affected by that setting ([GA4 data retention](/blog/ga4-data-retention) explains what the setting deletes). It also recognises returning browsers with [first-party cookies](https://support.google.com/analytics/answer/11397207), which is why it is usually part of the consent discussion on sites with visitors in Europe. [What Google Analytics collects](/blog/what-data-does-google-analytics-collect) lists the rest.

## What is Google Tag Manager?

Google describes [Tag Manager](https://support.google.com/tagmanager/answer/6102821) as a tag management system that lets you set up and manage tags on your site without editing its code. A **tag** is any snippet you want to run: the Google Analytics tag, an ad conversion pixel, a chat widget, a heatmap script. You add the container's two snippets to every page once, and from then on you add, change and remove tags in Tag Manager's web interface.

Everything in a container is built from three parts:

- **Tags.** What runs: a Google Analytics event, a pixel, a block of custom HTML.
- **Triggers.** When it runs: on every page, on a click, on a form submit, after a timer, on a custom event your code pushes.
- **Variables.** Values the tags and triggers read: the page path, the text of the clicked button, a value from the data layer.

Tag Manager is not a measurement tool. Google's [data privacy page for Tag Manager](https://support.google.com/tagmanager/answer/9323295) says it may collect aggregated data about tag firing, but does not collect, retain or share information about the visitors to your site beyond standard HTTP request logs, which it deletes within 14 days. Anything you learn about visitors comes from the tags it loads.

## Google Tag Manager vs Google Analytics, side by side

|  | Google Analytics | Google Tag Manager |
| --- | --- | --- |
| Job | Collect and report on visits and events | Load and fire other scripts on your pages |
| Output | Reports, explorations, audiences, exports | No traffic reports; a container of tags, triggers and variables |
| Keeps visitor data | Yes, per its retention settings | No, beyond aggregated tag-firing data and request logs, per Google |
| Works without the other | Yes, with the Google tag pasted into your pages | Yes, with any tags, including ones that are not Google's |
| Price | Standard GA4 is free; Analytics 360 has no published price | Free, per Google's product page |
| Typical owner | Marketing, product, analysts | Whoever manages tags: marketing ops, a developer, an agency |
| Change without a deploy | No: new tracking code needs a code change | Yes: publish a new container version |

The price row is from Google's own pages: the [Tag Manager page](https://marketingplatform.google.com/about/tag-manager/) says it manages tags for free, and the [Analytics page](https://marketingplatform.google.com/about/analytics/) says it gives you its tools free of charge. Both have paid 360 editions with no list price.

## Do you need both?

Not always. A useful way to decide is to count the scripts and the people involved.

- **Analytics only, no Tag Manager.** A site with one or two scripts, maintained by the same person who writes the code. Pasting the Google tag into the page head is simpler and one fewer thing to break.
- **Tag Manager plus Analytics.** Several marketing tags (analytics, ad pixels, a chat widget), or a marketing team that needs to add tracking without waiting for a developer release.
- **Tag Manager, no Google Analytics.** Perfectly possible. Tag Manager loads any script, so some sites use it to deliver a different analytics tool, ad pixels or consent tooling.

> **Start with what you have.** If the only tag you would ever put in Tag Manager is Google Analytics, you probably do not need Tag Manager yet. Add it when the second or third tag arrives.

## How they work together: one task done both ways

Say you want to know how many visitors click the **Start trial** button on your pricing page, and you want the count in Google Analytics as an event called `start_trial_click`.

### Without Tag Manager

A developer adds one line where the click is handled. Google's [events guide](https://developers.google.com/analytics/devguides/collection/ga4/events) shows the same `gtag` call:

```js
document.querySelector("#start-trial").addEventListener("click", function () {
  gtag("event", "start_trial_click", { location: "pricing" });
});
```

Then the change ships with the next release. Every new piece of tracking repeats that cycle.

### With Tag Manager

1. In **Variables**, switch on the built-in click variables (Click ID, Click Classes, Click Text).
2. In **Triggers**, create a [click trigger](https://support.google.com/tagmanager/answer/7679320) of type **All Elements** that fires when Click ID equals `start-trial`.
3. In **Tags**, create a Google Analytics event tag with your measurement ID, the event name `start_trial_click` and a parameter `location` with the value `pricing`. Attach the trigger.
4. Open **Preview**, click the button on your site, and check that the tag fired once.
5. **Submit** and publish the container version.

No code release was needed, but the tracking now depends on the button keeping its id. If a redesign renames it, the trigger silently stops matching. That trade is the heart of the choice: Tag Manager moves tracking out of the code, which makes it faster to change and easier to break without noticing. A longer walk-through is in [how to track button clicks](/blog/how-to-track-button-clicks).

## Three ways to install Google Analytics

| Method | How | Good for |
| --- | --- | --- |
| Google tag in the page | Paste the Google tag snippet into the head of every page | Small sites, one analytics tool, developer on hand |
| Through Tag Manager | Add a Google tag in a Tag Manager container that fires on all pages | Sites with several tags or a marketing team that ships tracking |
| Through a CMS or plugin | Enter the measurement ID in a platform setting | Hosted shops and site builders |

Pick one. The common mistake is to have two at once, which the next section covers.

## Common mistakes

- **Installing Analytics twice.** The Google tag is pasted into the theme and also fired by Tag Manager. Every page can then send two page_view events, pageviews double and engagement looks oddly high. Check the page source and the container before you add either.
- **Treating Tag Manager as a consent tool.** Tag Manager decides when tags fire, so it is often where consent rules live, but it does not make any tag compliant by itself. What a tag stores and sends is what counts. See [do you need a cookie banner for analytics](/blog/do-you-need-a-cookie-banner-for-analytics) and [what EU regulators decided about Google Analytics](/blog/is-google-analytics-gdpr-compliant).
- **A container nobody owns.** Old pixels from past campaigns keep firing for years. Each one is another request on every page and another place data goes. Review the container on a schedule and remove what nobody uses.
- **Publishing without preview.** A trigger that matches every click sends thousands of junk events in an afternoon. Preview mode exists for this.
- **Expecting reports in Tag Manager.** It only tells you whether tags fired, not what visitors did. The reports are in the tool the tag sends data to.

## When a site can skip Google Tag Manager

Skip the container when one person ships the site and the only script is the analytics tool. Tag Manager earns its place when tags change without a code release. With one script and a developer already in the repo, the container is an extra publish and a second place the same tag can be pasted.

- **One measurement script.** The Google tag in the page head, a measurement ID in a CMS field, or a cookieless script in the layout. The site already has a way to load it.
- **Clicks in the HTML.** Put the event on the element. A click trigger tied to an id stops matching when a redesign renames the control.
- **A short tag list.** Ad pixels, a chat widget and a heatmap are the usual reason a marketing team wants a container. With none of those, the container has nothing to manage.
- **A host that already has a field.** Site builders and many CMSs take the analytics tag in settings. That field is the install.

Keep Tag Manager when someone who does not ship code must add or remove tags, or when several tags already share a container and a consent rule. Tag Manager still only loads tags. Google Analytics, or another analytics product, still does the reporting. The section Do you need both? is this decision counted from the scripts and the people you already have.

## The mistake: two copies of the same tag

The Google tag in the theme and the same tag inside the container both fire. Each page load can send two page_view events. Pageviews double, engagement looks strong, and both tags did what they were told. Check the page source for the measurement ID, and the container's tag list, before you add either one. Use one row from the install table above.

After you publish, load the site once and watch realtime. One page view means one tag. Two hits means both copies are still live. Pause or delete the extra tag and publish the container, or remove the snippet from the theme, then check again.

The cookieless version of the same mistake is the script in the layout and again in a Custom HTML tag. Load CrispStats once. For the Start trial button in the worked example, the click can live on the element, with no trigger and no second tag:

```html
<button data-cs-event="start_trial_click" data-cs-prop-location="pricing">
  Start trial
</button>
```

That attribute is the pattern in [how to track button clicks](/blog/how-to-track-button-clicks). CrispStats is cookieless: an IP address is used for a daily rotating visitor hash and then discarded, and raw user agents are not stored. It measures visits. When ad pixels need a container, put the analytics script in that container once. The [Google Tag Manager guide](/integrations/google-tag-manager) has that Custom HTML tag.

## Where CrispStats fits

CrispStats is an analytics tool, so it sits on the Google Analytics side of this comparison, not the Tag Manager side. It is cookieless and keeps no IP addresses, and it does not replace a tag manager: if you need to run ad pixels or a chat widget, you still load those yourself or through one.

If you already use Tag Manager, you can load CrispStats with a Custom HTML tag on the All Pages trigger; the [Google Tag Manager guide](/integrations/google-tag-manager) has the snippet. One trigger is enough, because the script follows single-page navigation by itself. If you do not use Tag Manager, there is nothing to set up for clicks either: add a `data-cs-event` attribute to the button in your HTML and every click is sent as a [custom event](/glossary/custom-event), with no trigger to keep in sync. Every feature, including events and [funnels](/features/funnels), is on every plan and in the free trial.

## Frequently asked questions

### Is Google Tag Manager free?

Yes. Google's product page describes Tag Manager as free. There is also a paid Tag Manager 360, and the same page lists no price for it.

### Can Google Tag Manager replace Google Analytics?

No. Tag Manager has no traffic reports. It loads tags, and one of those tags can be Google Analytics or another analytics tool, which then does the measuring and the reporting.

### Should I install Google Analytics directly or through Tag Manager?

Directly, if Google Analytics is your only script and a developer maintains the site. Through Tag Manager, if you run several marketing tags or non-developers need to change tracking. Use one method only, or pageviews can be counted twice.

### Does Google Tag Manager slow down a website?

The container itself is one extra script. The cost comes mostly from the tags inside it: each pixel or widget adds requests and work in the browser. A container with a few well-chosen tags is light; one with years of unused pixels is not.

### Does Google Tag Manager set cookies?

Google's privacy page for Tag Manager says it does not collect or share information about your visitors beyond aggregated tag-firing data and request logs. The tags it loads are a different matter: Google Analytics, for example, sets first-party cookies. Whether you need consent depends on those tags, and your own counsel decides.

### Do I need both Google Tag Manager and Google Analytics?

Only when you want Tag Manager to load Google Analytics along with other tags. Analytics works on its own if you paste the Google tag into the page. Tag Manager works on its own if it loads tags that are not Google Analytics. Use one install path for Analytics so pageviews are counted once.

### When can a website skip Google Tag Manager?

When one person maintains the site and the only script is analytics, or when a CMS field already holds that script. Add Tag Manager when several marketing tags need to change without a code release. Skip it when the container would contain that one analytics tag and nothing else.
