· 2 min read · Technical infrastructure

Google Tag Manager

Google Tag Manager is a free tag management system for deploying and updating tracking and marketing tags through a web interface without editing site code.

Kasper Hermann Due Stück
Founder & E-commerce SpecialistBuilding Shopify apps focused on SEO and growth for merchants.

What is Google Tag Manager?

Google Tag Manager (GTM) is a free tag management system where you deploy and update tracking and marketing tags through a web interface instead of editing the site’s source code each time. You install a single container snippet on the site, and the individual tags are then managed from GTM’s interface. A tag is, for example, a GA4 event or a conversion pixel, a trigger decides when it fires, and data is passed to the tag through a dataLayer object.

Why does Google Tag Manager matter?

GTM lets marketing and analytics teams publish and change tags without waiting on a developer for every tweak. That makes tracking faster to maintain and easier to keep consistent across channels. GTM is commonly used to deploy GA4 events, Google Ads conversions, and the Facebook Pixel, and the container supports Google Consent Mode so tags fire only in line with user consent.

Common use cases

  • Deploying GA4 and Google Ads tags without editing the theme for each change.
  • Tracking clicks, forms, and scroll via triggers and built-in variables.
  • Passing product and order data to tags through the dataLayer.
  • Setting up server-side tracking with a cloud-hosted server-side container.
  • Gating tag firing by consent with Consent Mode.

Shopify perspective

Shopify does not install GTM automatically — you add the container manually via theme.liquid, a custom web pixel, or an app. Note that a container placed in the theme cannot track the checkout itself on standard plans, because Shopify does not allow custom scripts on the checkout pages. Use Shopify Customer Events (the Web Pixels API) instead to capture checkout and purchase events so conversions are measured correctly.

Pocium updates for Shopify merchants

New apps, practical Shopify guides, and product updates.