Does Your Website's Google Tag Still Say G-XXXXXXXXXX?
What a real Google Analytics measurement ID looks like, why help pages show G-XXXXXXXXXX, and a ten-minute check of your own site’s source.
A Google Analytics measurement ID uniquely identifies a web data stream and looks like G- followed by letters and numbers (Google's example is G-PSW1MY7HB4). Google's own setup docs tell you to paste your tag ID into the snippet, and troubleshooting says the Measurement ID in Stream details must be the same ID in your Google tag. If your live site source still contains the documentation sample string G-XXXXXXXXXX, treat it as a question for your agency: which ID is the real one? (That last sentence is our suggested check, not a Google procedure.)
Search your site's HTML for G- and you may find a real-looking Analytics ID — or a solid run of X characters copied from a help page. Google's docs really do use those X-strings as samples. This guide covers what a measurement ID should look like, why docs show G-XXXXXXXXXX, what Google's troubleshooting says about mismatched IDs, and a ten-minute public check. Quotes below were last checked on November 5, 2026. Google updates these pages, so open the source if something looks different.
What a measurement ID is supposed to look like
Google Analytics Help says: "A measurement ID in Google Analytics is a unique identifier for a web data stream (which is a website registered within Google Analytics)." The same page gives the format: "The format of a measurement ID in Google Analytics is 'G-' followed by a combination of numbers and letters, such as 'G-PSW1MY7HB4.'" (Measurement ID)
That example matters: Google's own real-format sample mixes letters and numbers, not a solid run of X. The measurement ID "acts as a critical link, connecting your website to the corresponding data stream in Google Analytics" and "ensures that the data from your site is sent to the right location." Google also says: "In Google Analytics, the measurement ID is the same ID as the destination ID" and "Find the measurement ID in the first row of the stream details" (Measurement ID).
Google also lists pattern-style examples of tag IDs: "Examples of tag IDs include GT-XXXXXXXXX, G-XXXXXXXXX, and AW-XXXXXXXXX" (Google tag ID). Those X characters are a pattern mask in documentation — not an instruction to leave the literal string on a live site.
A tiny labeled sample on example.com (not a real customer site):
```html
```
Why docs show G-XXXXXXXXXX — and what that means if your live site still has it
Documentation samples use the X-string
Google's GA4 events developer docs literally include G-XXXXXXXXXX and gtag('config', 'G-XXXXXXXXXX') in sample code (Set up events). Configure docs use the shorter sample G-XXXXXX (Configure Google products and send event data). Legacy UA→GA4 tips describe the GA4 web stream tag ID format as "G-XXXXXXXX." (Tips for switching from analytics.js to gtag.js).
So: docs use an X-string as a placeholder sample. That is not "Google requires G-XXXXXXXXXX on your site," and Help pages do not publish a ban list for that string. They define the real format and say the ID in your tag must match Stream details.
Install steps say paste your ID
Analytics setup tells you to copy the Measurement ID (starts with "G-" or "AW-") and: "Paste your Google tag immediately after the <head> on each page of your website." (Set up Analytics for a website and/or app).
The gtag.js setup page says the Google tag "is a single tag you can add to your website to use Google measurement and advertising products like Google Ads, Google Analytics, Campaign Manager, Display & Video 360, and Search Ads 360." Steps: "Copy your Google tag ID." Then paste it into the code sample and "Place the Google tag snippet immediately after the opening <head> HTML tag on every page you want to measure" (Set up the Google tag with gtag.js).
Owner question: Did anyone replace the sample with our ID, or is the live source still the template?
Google's own "ID incorrect / must match" troubleshooting
Google's website tag troubleshooting includes a section titled "The Google tag ID is incorrect." It states: "The Measurement ID in the Stream details section must be the same ID in your Google tag:" It also says to add the tag after the opening <head>, and: "You also need to make sure you add the snippet to each page of your website. Google Analytics only collects data from your website pages that include the snippet" (Troubleshoot tag setup on your website).
Developer troubleshooting is equally direct: "Incorrect measurement ID: Ensure the Measurement ID in your gtag('config', 'G-XXXXXX') call exactly matches the ID from your Google Analytics web data stream settings. Typos in the Measurement ID are one of the most common and easy-to-make setup mistakes, so double-check it carefully." And: "Tag not on all pages: The Google tag snippet must be present within the <head> section of every page you want to track" (Verify and troubleshoot your Google Analytics setup).
Treat this as why Google lists incorrect or mismatched IDs as a common setup fault — not as a penalty for finding an X-string. This guide stops at observe and ask; it does not teach install or replace steps.
Related leftover: GTM-XXXXX / "must replace"
A parallel leftover-template pattern shows up in Tag Manager. Install docs say "you must replace the ID with your container ID" (Install a web container). Tag Assistant errors include: The "GTM-XXXXX" should be replaced by your account ID. That sits under "Invalid or missing account ID" (Google Tag Manager Errors). If source still has literal GTM-XXXXX, ask the same kind of question. This article is not a GTM install guide.
How this differs from "still running Universal Analytics"
Universal Analytics property IDs have the format "UA-XXXXXXXX". Web data streams for Google Analytics 4 properties use a tag ID with the format "G-XXXXXXXX." (Tips for switching from analytics.js to gtag.js).
This page's main line is a GA4 / Google tag placeholder that was never replaced, not "UA is still firing." For leftover UA- hits and sunset context, see Check Universal Analytics on your website.
Your 10-minute public check
You don't need an Analytics login for steps 1 to 5. These steps are our suggested method; where Google backs a point, we link it.
- Search for the documentation samples. Home page → View page source or Inspect → Ctrl/Cmd+F. Search literal
G-XXXXXXXXXXandG-XXXXXX. Note hits. (Samples appear in Google's events and configure docs.) - List every tag ID on the page. Search
gtag/js?id=,gtag('config', and bareG-/GT-/AW-/GTM-. Write down every ID. Both a mixed alphanumericG-…and a literal X-string? Google notes "A single Google tag can have multiple tag IDs" (Configure; Google tag ID), so coexistence is possible — don't over-claim. - Compare to the real format. A real measurement ID should be
G-+ letters and numbers (Google's exampleG-PSW1MY7HB4), not a solid run of X (Measurement ID). - Spot-check another page. Contact or a service page the same way. Sitewide layout, or one page only? Google expects the snippet on each page you want measured (Set up Analytics; Troubleshoot; Verify).
- (Optional) Tag Assistant. If you already use Tag Assistant, note which Google tags it lists — placeholder string, real ID, or both. This guide does not re-teach installing the extension.
- (Optional, Analytics access) Admin → Data streams → open Stream details. Does the Measurement ID match the non-placeholder
G-ID in source? Google says it must be the same ID / exactly match (Measurement ID; Troubleshoot tag setup; Verify and troubleshoot).
Questions to send your agency
Copy these into an email. They're our questions, not Google's.
- The source still contains
G-XXXXXXXXXX(orG-XXXXXX) — is that an unreplaced template, a test string, or left on purpose? - What is our official measurement ID — please send a Stream details screenshot showing the Measurement ID? (Google says you find it in the first row of the stream details.)
- Is the placeholder still loaded in
gtag('config', …)and/orgtag/js?id=on live pages? - If a real
G-ID is also present, which ID do reports use — and does the placeholder cause a second load or a dead hit? (Outsiders cannot prove hit destination; treat that last part as an inference. Google does say a single Google tag can have multiple tag IDs.)
If you also need to know whether Ads conversions are recording, see Check Google Ads conversion tracking. If the printed phone number doesn't match what people dial, see Website phone number vs what customers dial.
What you can't tell from outside
- Without Analytics access you cannot see Realtime, DebugView, or which destination receives hits. Our Universal Analytics check covers the outside UA /
G-hunt; this page stays on placeholder vs real-format. - A single Google tag can have multiple tag IDs. Finding both a real
G-and an X-string does not prove "no data" or "wrong property" — only that the agency must explain which ID is authoritative. - Not finding
G-XXXXXXXXXXdoes not prove measurement is correct. Typos, the wrong stream, or a tag missing on some pages still matter. - An X-string alone is not stated by Google as an automatic policy violation. Stick to format, "paste your ID," and must-match troubleshooting.
If the live source still shows the documentation sample and nobody can say which ID is official, sort that out before treating Analytics reports as settled.
Sources
- Measurement ID (support.google.com)
- Google tag ID (support.google.com)
- Set up events (developers.google.com)
- Configure Google products and send event data (developers.google.com)
- [UA→GA4] Tips for switching from analytics.js to gtag.js [Legacy] (support.google.com)
- Set up Analytics for a website and/or app (support.google.com)
- Set up the Google tag with gtag.js (developers.google.com)
- [GA4] Troubleshoot tag setup on your website (support.google.com)
- Verify and troubleshoot your Google Analytics setup (developers.google.com)
- 2. Install a web container (support.google.com)
- Google Tag Manager Errors (support.google.com)
Sources checked on November 5, 2026. Spot an error or an outdated link? Email james@agencyreferee.com and we’ll correct it.