Setup and data
Google Tag Manager vs Google Analytics: what each one does
Google Analytics measures visits and reports on them; Tag Manager only loads tags. What each does, when you need both, and how they work together.
The CrispStats team · · 8 min read
In short
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 (today GA4) is a web and app analytics service. A small script on your pages sends a hit for each pageview and each event, Google stores them, and you read the result in reports: users, sessions, traffic channels, conversions, and explorations for deeper questions.
It keeps data. Standard properties can keep user-level event data for 2 or 14 months for explorations, while the standard aggregated reports are not affected by that setting (GA4 data retention explains what the setting deletes). It also recognises returning browsers with first-party cookies, which is why it is usually part of the consent discussion on sites with visitors in Europe. What Google Analytics collects lists the rest.
What is Google Tag Manager?
Google describes Tag Manager 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 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
| Row | 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 says it manages tags for free, and the Analytics page 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.
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 shows the same gtag call:
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
- In Variables, switch on the built-in click variables (Click ID, Click Classes, Click Text).
- In Triggers, create a click trigger of type All Elements that fires when Click ID equals
start-trial. - In Tags, create a Google Analytics event tag with your measurement ID, the event name
start_trial_clickand a parameterlocationwith the valuepricing. Attach the trigger. - Open Preview, click the button on your site, and check that the tag fired once.
- 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.
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 and what EU regulators decided about Google Analytics.
- 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.
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 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, with no trigger to keep in sync. Every feature, including events and funnels, is on every plan and in the free trial.