Skip to content

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

Google Tag Manager vs Google Analytics, side by side
RowGoogle AnalyticsGoogle Tag Manager
JobCollect and report on visits and eventsLoad and fire other scripts on your pages
OutputReports, explorations, audiences, exportsNo traffic reports; a container of tags, triggers and variables
Keeps visitor dataYes, per its retention settingsNo, beyond aggregated tag-firing data and request logs, per Google
Works without the otherYes, with the Google tag pasted into your pagesYes, with any tags, including ones that are not Google’s
PriceStandard GA4 is free; Analytics 360 has no published priceFree, per Google’s product page
Typical ownerMarketing, product, analystsWhoever manages tags: marketing ops, a developer, an agency
Change without a deployNo: new tracking code needs a code changeYes: 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

  1. In Variables, switch on the built-in click variables (Click ID, Click Classes, Click Text).
  2. In Triggers, create a click trigger 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.

Three ways to install Google Analytics

Three ways to install Google Analytics
MethodHowGood for
Google tag in the pagePaste the Google tag snippet into the head of every pageSmall sites, one analytics tool, developer on hand
Through Tag ManagerAdd a Google tag in a Tag Manager container that fires on all pagesSites with several tags or a marketing team that ships tracking
Through a CMS or pluginEnter the measurement ID in a platform settingHosted 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.

Guide questions. Straight answers.

What people ask after reading this.

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

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

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

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

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

Not answered here? Write to hello@crispstats.com

Go further

Free tools

  • Analytics cost calculator

    Pick a monthly volume and compare list prices of privacy-friendly analytics tools at that exact volume.

  • Bounce rate calculator

    Calculate bounce rate from sessions, under the classic single-page rule or the GA4 definition, and see how many bounces stand between you and a target.

  • Conversion rate calculator

    Work out your conversion rate from visitors and conversions: conversions ÷ visitors × 100.

Use cases

  • CrispStats for SaaS

    See which channels bring paying customers, where trials stall in the funnel, and how your app performs for real users, from one cookieless script.

  • CrispStats for ecommerce

    Tie orders to the campaign, page and source they came from, find where checkout loses people, and watch page speed, without cookies.

  • CrispStats for startups

    Funnels, retention, revenue attribution and uptime from the first day, on a price that stays small while you find your market.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.