How to install Tag Manager and GA4

Install Google Tag Manager and Google Analytics 4 correctly. Get the right foundations in place before tracking any events or conversions.

How to install Tag Manager and GA4

Introduction

Every optimisation you run and every decision you defend will lean on the data you set up here. A clean Google Tag Manager (GTM) + Google Analytics 4 (GA4) installation means you can add events, switch consent modes, or debug campaigns without begging developers for deploy time. Follow the steps below exactly; I’ll note where to drop your screenshots so the rest of the team can replicate your work later.

Create a GTM container and add the snippets

Create the container

  1. Navigate to tagmanager.google.comCreate account.
  2. Enter the company name and Container name (use your root domain).
  3. Choose Target platform → Web and click Create.

4. Accept the terms; Google shows two code snippets.

5. Copy both the snippets

Add GTM snippets to Webflow

Follow the two–snippet rule: the head script lives once in global Site Settings; the body noscript lives on every page via a reusable Component.

1 Paste the head snippet in Site Settings

  1. In Webflow, open Site settings → Custom Code → Head.
  2. Copy the entire <script> snippet from the Tag Manager modal.
  3. Paste it into the Head field.
  4. Click Save and Publish the site.
[PRINT SCREEN: Webflow › Site Settings › Custom Code panel showing <script> pasted in Head]

2 Add the body snippet with a Code Embed element

  1. Open any page in the Webflow Designer.
  2. Drag a Code Embed element into the very top of the page tree, just inside the <body>.
  3. Copy the <noscript> snippet from Tag Manager.
  4. Paste it into the Code Embed editor and click Save & Close.

3 Turn the Code Embed into a reusable Component

  1. Right-click the Code Embed element → Create Component.
  2. Name it GTM Body Snippet.
  3. The Component now appears in the Components panel; drag it onto every template or static page that should fire GTM.
  4. If you ever need to update the <noscript> (e.g., container change), edit the Component once Webflow propagates the change to every page.
Paste this component on every page!

4 Publish and verify

  1. Publish the site again.
  2. View source on the live page and search for GTM-XXXX you should see the head script near the top and the noscript immediately after the opening <body>.
  3. Proceed to Preview mode in GTM to confirm the tag fires.
[PRINT SCREEN: Browser View-Source showing both snippets in their correct locations]

By splitting the two snippets this way and turning the body code into a Component you guarantee the noscript loads everywhere and future edits take seconds, not hours.

Create a GA4 property and add configuration tag

Set up GA4

  1. In analytics.google.com choose Admin → Create property.
  2. Name it “<Site> GA4”, set the correct currency + time-zone, click Next → Create.
  3. On the Data streams screen choose Web, enter your domain, click Create stream.
  4. Copy the Measurement ID (G-XXXXXXX) on the right.

Connect GA4 in GTM

  1. Back in GTM → click Tags → New.
  2. Name it GA4 – Configuration.
  3. Tag type: Google Analytics: GA4 Configuration.
  4. Paste the Measurement ID.
  5. Leave Enhanced measurement ON by default (scrolls, outbound link, etc.).
  6. Under Fields to set add:
    • analytics_storage = granted
    • ad_storage = denied (update later when consent banner is live).
  7. Trigger: All Pages. Click Save.

Test the installation in preview mode

Launch GTM Preview

  1. In GTM click Preview → enter site URL → Connect.
  2. A new tab opens with the Tag Assistant debugger.

Confirm events in GA4 DebugView

  1. In GA4 → Admin → DebugView (or Configure → DebugView in left nav).
  2. Refresh your site tab.
  3. Look for page_view event from your device within 10 seconds.
[PRINT SCREEN: GA4 DebugView timeline highlighting page_view]

If the event appears, both snippets and the configuration tag are working. If not, check ad-blockers, script blockers, or copy/paste errors.

Publish and verify real-time data

Publish GTM workspace

  1. Click Submit → Version name “Initial GA4 install” → Publish.
  2. Share the version link in Slack for audit trail.

Verify in GA4 Realtime

  1. GA4 → Reports → Realtime.
  2. Open an incognito window, visit three pages.
  3. You should see active users and top event = page_view.
[PRINT SCREEN: GA4 Realtime report showing 1 active user from your location]

Allow up to 24 hours for standard reports (Engagement, Acquisition) to populate.

Publish and confirm data is flowing correctly

Publish GTM workspace

  1. Click Submit → Version name “Initial GA4 install” → Publish.
  2. Share the version link in Slack for audit trail.

Verify in GA4 Realtime

  1. GA4 → Reports → Realtime.
  2. Open an incognito window, visit three pages.
  3. You should see active users and top event = page_view.

Allow up to 24 hours for standard reports (Engagement, Acquisition) to populate.

Conclusion

A clean install of Tag Manager and GA4 follows four steps: add the GTM snippets, create the GA4 property, test every page in preview mode and publish only after verification. Completing those steps today gives you a single source of truth and ends guess-work about site traffic.

I run the same process for every new project because it prevents tedious repairs later. Your analytics now show live page views; the next task is to decide which actions demos, trials, deals belong alongside them. That decision turns raw hits into growth insight and will be the focus of the following chapter.

Tools

Relevant tools

Google Tag Manager
Tool

Google Tag Manager

Tag management that lets you add and control scripts, events and pixels with versioning and consent rules.

Google Analytics
Tool

Google Analytics

Web analytics that tracks user behaviour and conversions, essential for understanding traffic and lead sources when configured well.

Looker Studio
Tool

Looker Studio

Free dashboard tool that pulls data from many sources, great for quick reports and shareable views.

Amplitude
Tool

Amplitude

Product analytics for events, funnels and cohorts, useful when you need to see how users move and where they drop in product journeys.

Next chapter

Continue reading

Article
2

How to decide what to track

Track what matters for growth decisions. Map key conversions, name events with clear conventions, and document tracking specifications.

Playbook

How to implement tracking

Broken tracking means flying blind. Proper implementation shows exactly which traffic converts, which campaigns deliver ROI, and where to double down. Measurement makes optimisation possible.

See playbook
How to implement tracking
Growth wiki

Growth concepts explained in simple language

Wiki

Event tracking

Capture specific user actions in your product or website to understand behaviour patterns and measure whether changes improve outcomes or create friction.

Wiki

Conversion tracking

Measure which marketing activities drive desired outcomes to allocate budget toward channels that actually generate revenue instead of vanity metrics.

Wiki

Cookie

Store information in browsers to track user behaviour across visits and enable personalised experiences without requiring login for every interaction.

Wiki

UTMs

Track campaign performance precisely by appending parameters to URLs that identify traffic sources, mediums, and campaigns in your analytics.