moralab
Store foundations

What is Google Tag Manager?

Google Tag Manager, often called GTM, manages tags on a website or app. Tags send information to tools such as Google Analytics. GTM controls how those tags run; it is not the place where you read your traffic and sales reports.

By the MoraLab team · Updated · 2 min read

The parts of a GTM setup

Think of the container as the place where you keep a website's tag configuration. Within it, tags, triggers and variables have different jobs.

The basic building blocks
PartJob
TagSends information about an action to a tool such as Google Analytics.
TriggerDetermines when that action should run.
VariableSupplies a value, such as an event name or product ID.
ContainerHolds the configuration you preview and publish.

Source: Google: Create an account and container

An add-to-cart example

When a shopper adds an item to the cart, the store integration can pass the event and product details to a data layer. The data layer makes that information available to GTM, which can then send it to the analytics tool.

GTM does not know the correct product price simply because it is installed. The store or module must provide reliable data. A button click alone also does not prove that the cart was updated successfully.

Source: Google: The data layer

Do you need it for your store?

Check the integration you already have. If it supplies the events you need correctly, adding another route to the same Analytics property can create duplicate data.

GTM becomes useful when someone needs to manage several tags or a custom measurement setup. Name an owner who can explain the configuration and test changes. For Shopify GA4, the official setup uses the Google & YouTube channel.

Source: Shopify: Set up Google Analytics 4

Preview is not publication

Use Preview to inspect the events and tags before making a change live. Check the actual value being sent, not just whether a tag fired. Then publish a named version so the change is identifiable.

Test what happens when a visitor accepts or declines cookies. GTM does not replace a consent solution. Your tags need to respect the visitor's choices.

Sources: Google: Preview and debug containers; Google: Set up consent mode

Frequently asked questions

Is a GTM ID the same as a GA4 measurement ID?

No. A GTM container ID starts with GTM-. A GA4 web measurement ID starts with G-. They identify different parts of the setup and cannot be substituted for each other.

Can anyone with access publish tags?

Access depends on the permissions assigned. Give publishing access deliberately and make sure the business retains control of its account.

Sources

  1. Google: Create an account and container
  2. Google: The data layer
  3. Shopify: Set up Google Analytics 4
  4. Google: Preview and debug containers
  5. Google: Set up consent mode

Sources checked 15 November 2026. Figures are reported as the publishers state them; where sources disagree, the article says so.

Better product pages, without rewriting every one by hand.

Book a 30-minute demo. We'll look at your store together and show how MoraLab helps you improve product descriptions, images and SEO.

Book a demo