Website monitoring · No. 06
Google Analytics 4 tag check
In short
The Google Analytics 4 tag is a snippet of code with an ID like G-XXXXXXX that sends data about your visitors and their actions to GA4. It’s installed directly (gtag.js) or through Google Tag Manager. If the tag disappears, GA4 reports show a drop, and Google Ads loses conversions imported from Analytics and bids without them.
Contents
What is the Google Analytics 4 tag?
The Google Analytics 4 (GA4) tag is a snippet of code on your website’s pages that sends events to Google Analytics on every visit: page views, scrolls, clicks, purchases. Without the tag, your GA4 property still exists in your account, but it receives no data at all.
Today, the GA4 tag is part of the Google tag (the gtag.js library). Here’s how Google describes it:
“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.”
Every GA4 data stream has an ID — “a series of letters and numbers that usually starts with ‘G-’” (Google Analytics Help). That ID is what connects the code on your website to your Analytics property.
Google Analytics Help describes three ways to install the tag: through Google Tag Manager, through a website builder or CMS (a built-in field for the ID, or a plugin), and directly in your page code (Google Analytics Help).
| Installation method | What it looks like on the website | Where you change the settings |
|---|---|---|
| Directly, with gtag.js | A <!-- Google tag (gtag.js) --> snippet with the G-XXXXXXX ID in the <head> | In the website code or the CMS settings |
| Through Google Tag Manager | Only the GTM-XXXXXXX container is in the page code; the G- ID is stored inside the container | In the GTM interface |
| Through a plugin or a CMS or website builder integration | The platform or plugin adds the code based on the ID you enter | In the platform settings |
Google recommends sticking to one method: “You should only use either the Google tag or Tag Manager, not both” (Google Analytics Help).
Why monitor your Google Analytics 4 tag?
Because the tag disappears quietly: the website works, orders keep coming in, and analytics hasn’t recorded a thing for days. Here’s what happens then:
- GA4 reports show a crash. Users, sessions and conversions drop to zero or fall sharply. The data for those days won’t show up retroactively: a tag that didn’t fire didn’t send anything.
- Google Ads loses conversions. If your Google Ads conversions are based on GA4 key events, they stop being counted too.
- Automated bidding flies blind. Bid strategies that optimize for conversions get a false “no conversions” signal.
- Audiences stop growing. Visitor lists built in GA4 for advertising shrink over time.
Google spells out the link between Analytics and ads:
“Google Ads conversions that are based on Google Analytics key events can help you see how well your advertisements from Google Ads are performing so you can improve your marketing strategy and optimize your bidding strategy through Google Ads Smart Bidding.”
The opposite problem is a tag installed twice. Then every page view is counted more than once, and your reports show growth that isn’t really there. Google warns that using both methods at once “will have unintended consequences, such as overcounting data from your website” (Google Analytics Help).
Why does the Google Analytics 4 tag disappear?
Usually after changes to the website or to Google Tag Manager that were made for some other reason:
- A theme update or redesign. The gtag.js code was pasted into a template file by hand, and the new template version overwrote it.
- Changes in the GTM container. Someone deleted or paused the Google tag in the container and published a new version. The container code on the website stayed in place.
- The container itself is gone. If GA4 runs through GTM, it disappears along with the container.
- A disabled plugin or integration. The analytics plugin in your CMS was turned off or updated and lost its settings.
- The wrong ID. After a website migration, the ID of a test property was left behind instead of the live one. Google reminds you that the ID in your data stream settings must match the ID in the tag.
- Separate page templates. The cart, checkout or landing pages run on a different template that doesn’t have the tag.
How to spot a problem with your Google Analytics 4 tag
The first signs usually show up in your GA4 and Google Ads reports, not on the website:
| What you see | Likely cause | What to do |
|---|---|---|
| Users in GA4 dropped sharply across the whole website | The tag is missing from your pages, or the GTM container is gone | Look for G- in the page source or the GTM container, and restore the tag |
| Data is coming in, but with no purchases | The tag is missing from the checkout or thank-you page | Check those pages separately |
| Page views suddenly doubled | The tag is installed both in the code and in GTM | Keep just one installation method |
| Google Ads shows zero conversions with the usual number of clicks | The GA4 tag isn’t sending key events | Check the tag and events in GTM Preview mode |
| The GA4 property is empty even though the tag is on the website | The tag uses the ID of a different property | Compare the ID with your data stream settings |
How to check your Google Analytics 4 tag yourself
Start with how the tag should be installed according to Google’s instructions. First, find out which method was used on your website: Google Tag Manager, a plugin or built-in CMS integration, or the Google tag (gtag.js) added directly to the website code. That determines where to look for the tag and where to fix it. For installing it in the code, Google advises:
“Paste your Google tag immediately after the <head> on each page of your website.”
- In Analytics, go to Admin → Data streams, select your website’s stream and copy the ID that starts with
G-. - Open a page on your website, press
Ctrl+U(Cmd+Option+Uon a Mac) and search for that ID withCtrl+F. If it isn’t there butGTM-is, the tag was most likely installed through Google Tag Manager. - If you use GTM, turn on Preview mode: Tag Assistant shows which tags fired on the page (Tag Manager Help).
- Install Google’s official Tag Assistant extension for Chrome. It helps you verify that the Google tag is installed on the page and find setup errors — no matter how the tag was added.
- Open the website in another browser and check the Realtime report in GA4: your visit should show up there. If you’ve just installed the tag, give it time: according to Google, data collection may take up to 30 minutes to begin (Google Analytics Help).
- Go through your key pages — a product page, the cart, the thank-you page — and make sure the tag is there too.
- Or use the FullCheckApp “Google Analytics 4 tag check” and get the results in a clear visual format.
If you chose the last option, you’ve already made the right call: the check runs automatically, and you’ll be the first to know about any warning or critical issue.
What FullCheckApp checks
Every day, FullCheckApp checks whether the Google Analytics 4 tag is installed. We look for the tag in two places: in the page code itself and inside the Google Tag Manager container. So the check works the same way no matter how GA4 is connected — directly through gtag.js or through GTM.
- When. Once a day, at a time you choose, in your time zone.
- Where. The home page and up to 10 inner pages per website; the report shows exactly which page has the problem.
- How it’s labeled. Green means OK, yellow means a warning, red means critical. You can set the severity separately for each website.
- How you find out. You get an email report after every check, and critical issues are also sent to Telegram.
The GA4 tag wasn’t found on the page or in the GTM container.
The service looks at your website from the outside, like a regular visitor, so there’s nothing to install. The container itself is monitored separately by the Google Tag Manager check. And FullCheckApp shows your actual GA4 data on the Analytics tab — see the article on GA4 website traffic monitoring.
FAQ
What is the G- ID in Google Analytics 4?
It’s the ID of your GA4 data stream, also called the measurement ID. It looks like G- followed by letters and numbers. You’ll find it in Analytics under Admin → Data streams → your website’s stream. The ID in the tag on your website must match this value; otherwise, the data goes to a different property.
Should I install GA4 with gtag.js or Google Tag Manager?
From our own experience, we recommend installing GA4 through Google Tag Manager: it gives your website a single entry point and one control panel for all tags, and changes don’t require code edits. Gtag.js works too, especially for a small website. The key is to pick one method: Google advises against using the Google tag and Tag Manager together, because it inflates your data.
Can I recover GA4 data for the days the tag was missing?
No. Google Analytics only records the events the tag sent during a visit. If the tag wasn’t on your pages, the property simply has no data for that period, and it won’t appear retroactively. That’s why it’s important to notice a missing tag as soon as possible — not when you’re putting together the monthly report.
How does a missing GA4 tag affect Google Ads?
If your Google Ads conversions are based on GA4 key events, they stop being counted without the tag. Campaigns with automated bidding that optimize for conversions get a false signal that there are no conversions. On top of that, the GA4 audiences you use in your ads stop growing.
The tag is on my website, but GA4 shows no data. What should I check?
First, compare the ID in the tag with the data stream ID in Analytics: it may belong to a different property. Next, open the Realtime report while you visit the website yourself. If the tag runs through Google Tag Manager, use Preview mode to check whether it actually fires on the page.
Sources
- Analytics Help — Set up Analytics for a website and/or appsupport.google.com/analytics/answer/9304153?hl=en
- Analytics Help — Find your Google tag IDsupport.google.com/analytics/answer/9539598
- Analytics Help — Troubleshoot tag setup on your websitesupport.google.com/analytics/answer/9311124
- Google for Developers — Set up the Google tag with gtag.jsdevelopers.google.com/tag-platform/gtagjs
- Google Ads Help — Create Google Ads conversions based on Google Analytics key eventssupport.google.com/google-ads/answer/10632359
- Tag Manager Help — Preview and debug containerssupport.google.com/tagmanager/answer/6107056
- Chrome Web Store — Tag Assistantchromewebstore.google.com/detail/tag-assistant/kejbdjndbnbjgmefkgdddjlbokphdefk
Check your website
Add your website address — the first check runs right away, and you’ll see the status of every item in this article.
Check for free