Google Tag Manager (GTM) is the tool that controls what tracking code runs on your site, without needing a developer every time you make a change. This guide covers how to set it up correctly for GA4.

Getting Started

  • Create a GTM container for your website
  • Install the GTM code snippet in your site header and body
  • Confirm the container is firing using the GTM Preview mode

Setting Up Your GA4 Configuration Tag

  • Create a new tag using the GA4 Configuration tag type
  • Enter your GA4 Measurement ID
  • Set the trigger to “All Pages” so it fires on every page load
  • Save and test in Preview mode before publishing

Building Event Tags

  • Create a GA4 Event tag for each custom event you need
  • Set up triggers based on clicks, form submissions, or page views
  • Use variables to pass extra details, like button text or form name
  • Test every tag individually in Preview mode

Common Mistakes To Avoid

  • Publishing changes without testing in Preview mode first
  • Using vague tag and trigger names that make debugging harder later
  • Forgetting to remove old, unused tags that can conflict with new ones
  • Not documenting what each tag and trigger does

Frequently Asked Questions

Do I need Google Tag Manager if I can add code directly to my site?

GTM is strongly recommended even if you can edit code directly. It lets you add and change tracking without a developer, and it keeps all your tracking organized in one place.

What is Preview mode and why does it matter?

Preview mode lets you test your tags before they go live on your actual site. Skipping this step is the most common cause of broken tracking.

BOOK A FREE 30 MINUTE CALL →
We can set up or audit your GTM container so nothing is tracking incorrectly.