Google Tag Manager

⌘K
  1. Home
  2. Google Tag Manager
  3. Google Tag Manager Tracki...
  4. Implementing Google Analytics 4 (GA4) Tags in Google Tag Manager

Implementing Google Analytics 4 (GA4) Tags in Google Tag Manager

configuration tag tracks

Step 1: Get Your GA4 Measurement ID

  1. Go to https://analytics.google.com
  2. Select your GA4 property
  3. Click the gear icon ⚙️→ Admin
  4. Under Property, go to Data Streams
  5. Select your website stream
  6. Copy your Measurement ID (starts with G-)

Step 2: Create a GA4 Configuration Tag in GTM

  1. Go to https://tagmanager.google.com
  2. Choose your container → Go to the “Tags” section
  3. Click “New”
  4. Name your tag: “GA4 – Configuration” or sth like that
  5. Click Tag Configuration → Select Google Analytics: GA4 Configuration
  6. Paste your Measurement ID
  7. Leave everything else as default (you can enable enhanced measurement in GA later if needed)

Step 3: Set the Trigger for All Pages

  1. Under Triggering, click Add Trigger
  2. Choose “All Pages”
    → This tells the tag to fire on every page load.
  3. Click Save

Step 4: Preview and Test Your Setup

  1. Click Preview (top right in GTM)
  2. Enter your website URL → Click Connect
  3. Your site will open with the GTM debug panel at the bottom
  4. Navigate through a few pages and check:
    • The GA4 – Configuration tag fires on all page loads
    • If not, troubleshoot your GTM installation or triggers

Step 5: Publish Your GA4 Tag

  1. Back in GTM, click Submit
  2. Add a version name like:
    👉 Initial GA4 Setup
  3. Click Publish

Done!

GA4 is now live on your site and tracking pageviews.
To track custom events (like button clicks, form submissions, purchases), you must create GA4 Event Tags.

How can we help?