Magento 2 Google Tag ManagerMagento 2 Google Tag Manager
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Requirements
    • Installation
    • Activate & Connect
  • Configuration

    • Overview
    • General Settings
    • Shopper Actions to Track
    • Tracking Data Tuning
    • Consent & PII (GDPR / CCPA)
    • Developer
  • Destinations & Export

    • Overview (Guided Setup)
    • Google Analytics 4
    • Google Ads
    • Meta Pixel
    • Container Export
  • Events & dataLayer

    • Overview
    • Category & Search
    • Product
    • Cart & Checkout
  • Server-Side Tagging (sGTM)

    • Overview
  • How-To (find your IDs)

    • GTM Container ID
    • GTM Account ID
    • GA4 Measurement ID
    • Google Ads Conversion ID & Label
    • Meta Pixel ID
    • Validate the Installation
    • Verify Events (GTM Debug)
  • Help

    • Troubleshooting
    • FAQ

How to create a GA4 account & find your Measurement ID

The GA4 Measurement ID starts with G- (for example G-XXXXXXXXXX) and is entered in the Google Analytics 4 destination. If you do not have a Google Analytics 4 property yet, create one first using the steps below.

Create a Google Analytics 4 account & property

  1. Go to analytics.google.com and sign in. Click Admin (the gear icon in the left navigation).

Google Analytics Admin section

  1. Click Create Account.

Create a Google Analytics account

  1. Enter an Account Name and click Next.

Enter account details

  1. Enter a Property Name, choose your Reporting Time Zone and Currency, then click Next.

Enter property details

  1. Select your Industry Category and Business Size, then click Next.

Describe your business

  1. Choose the business objectives that match how you'll use Analytics, then click Create.

Select business objectives

  1. Review the Google Analytics Terms of Service and click I Agree.

Accept the GA4 Terms of Service

  1. Choose Web as the platform for your data stream to start collecting data.

Start collecting data — choose Web

  1. Enter your Website URL and a Stream Name, then click Create and Continue. The Measurement ID (G-XXXXXXXXXX) is shown at the top-right of the Web Stream Details page.

Set up the web data stream

Find the Measurement ID again later

If you already have a property and just need the ID:

  1. Go to analytics.google.com → Admin (gear icon).
  2. In the Property column, open Data Streams.
  3. Click your Web stream (create one with Add stream → Web if you have none).
  4. The Measurement ID (G-XXXXXXXXXX) is shown at the top-right of the stream details.

Find the GA4 Measurement ID

Where it goes

Paste it into Destinations → Google Analytics 4 → Measurement ID, then save. On container export, it is wired into the GA4 tag for you.

Measurement ID vs Stream ID

The Measurement ID starts with G-. The numeric Stream ID shown next to it is a different value — the extension needs the G- Measurement ID.

Verify it is collecting

After importing the container, open GA4 → Admin → DebugView (or Reports → Realtime) and browse your storefront in GTM Preview mode. Events should appear within a few seconds.

Prev
GTM Account ID
Next
Google Ads Conversion ID & Label