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.
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
1. Open Google Analytics Admin
Open Google Analytics.
In the GA4 dashboard, click Admin, then find Data collection and modification and open Data streams.
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.
If the list is empty, click Add stream, choose Web, and enter your website URL.
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
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.
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.
Realtime data is usually quick, but not always instant. Wait 1 to 5 minutes, then refresh.
Common Issues
| Issue | Cause | Fix |
|---|---|---|
| No data in GA4 | The ID was just added, or no frontend page has been visited yet | Open one or two frontend pages, then wait 1 to 5 minutes |
| The ID does not work | Full script or wrong ID was pasted | Paste only the G- ID |
The ID starts with UA- | This is the old Universal Analytics format | Use a GA4 G- measurement ID |
| Your own visit does not show | Browser extension or delay | Try another browser or phone |
Next
📌 Launch Checklist - run the final checks before launch.