Skip to main content

Google Analytics 4 (GA4) Setup

💡 In this guide, you will copy the G- measurement ID from Google Analytics and add it to AllinCMS admin. Estimated time: 8 minutes.

GA4 helps you see whether visitors are opening your site, where they come from, and which pages they view.

Only paste the ID

AllinCMS admin only needs the G- ID, such as G-XXXXXXXXXX. Do not paste the full <script> code.

Sign in to Google Analytics first. Google Analytics setup pages are visible only after signing in with a Google account. If Google asks you to log in, sign in first and then continue.

Overview

1Open Google Analytics
2Open Admin
3Open Data streams
4Copy the G- measurement ID
5Paste it into Google Tracking in AllinCMS admin
6Open the frontend site
7Check Realtime

1. Open Google Analytics Admin

Open Google Analytics.

In the GA4 dashboard, click Admin, then find Data collection and modification and open Data streams.

GA4 Admin page - open Data streams
If GA4 already exists

Do not create another property if your team already has GA4. Open Admin -> Data streams and find the stream for this website.

2. Open the Website Data Stream

Open the Web tab and click the website data stream row.

GA4 data streams list - click the website stream

If the list is empty, click Add stream, choose Web, and enter your website URL.

Choose Web

For website analytics, choose Web. Do not choose iOS or Android.

3. Copy the G- Measurement ID

In the web stream details screen, find Measurement ID.

It looks like this:

G-XXXXXXXXXX
GA4 web stream details - copy only the G- measurement ID
Copy only this ID

Only copy the G- ID. Do not copy the full Google install code or the <script> tag.

If GA4 opens Installation instructions after creating the stream, do not copy the gtag.js code. Return to the stream details and copy the Measurement ID.

4. Add the Google Tag ID in AllinCMS admin

Open your AllinCMS admin site dashboard and click Google Tracking in the left sidebar.

Paste the G-XXXXXXXXXX value into Google Tag ID, then click Add Google Tag ID.

Google Tracking page in AllinCMS admin - paste the G- ID and click Add

5. Check Realtime

After adding the Google Tag ID, open your frontend site in another browser, an incognito window, or a phone, and visit one or two pages.

Then return to Google Analytics and open Reports -> Realtime overview. Check Users in last 30 minutes.

Wait briefly if nothing appears

Realtime data is usually quick, but not always instant. Wait 1 to 5 minutes, then refresh.

Common Issues

IssueCauseFix
No data in GA4The ID was just added, or no frontend page has been visited yetOpen one or two frontend pages, then wait 1 to 5 minutes
The ID does not workFull script or wrong ID was pastedPaste only the G- ID
The ID starts with UA-This is the old Universal Analytics formatUse a GA4 G- measurement ID
Your own visit does not showBrowser extension or delayTry another browser or phone

Next

📌 Launch Checklist - run the final checks before launch.