How to Check if Google Analytics 4 is Installed on Website
Wondering if your website is correctly tracking data with Google Analytics 4? You're not alone, and you don't need a developer to find out. This article will walk you through four straightforward methods to confirm that GA4 is properly installed and collecting data from your site, helping you trust the numbers you’re seeing.
Method 1: The Quick Source Code Check
The most direct way to check for a Google Analytics tag is to look for its tell-tale code snippet right inside your website's HTML source code. This might sound technical, but it's just a simple search you can do in a few clicks. It's a great first step to see if the tracking script has been placed on the page.
How to View Your Website's Source Code
First, you need to open your website’s source code. Don't worry, you aren't changing anything, just looking. Here’s how:
- Open a web browser (like Google Chrome, Firefox, or Safari) and navigate to your website.
- Right-click anywhere on an empty part of the page.
- From the menu that appears, select "View Page Source" (or something similar like "Show Page Source").
This will open a new browser tab filled with your site’s HTML code. It can look overwhelming, but you only need to search for one specific thing.
What to Look For in the Code
Now that you have the source code open, you can use your browser’s find function to quickly locate the GA4 tracking code.
- Press Ctrl+F on Windows or Cmd+F on a Mac to open a search box.
- In the search box, first try searching for "G-". A Google Analytics 4 Measurement ID always starts with this prefix, followed by a series of letters and numbers (e.g.,
G-ABC123XYZ). - If you find an ID like this, it’s a strong sign that the GA4 tag is present.
- Another phrase to search for is "gtag.js". This is the name of the JavaScript library that Google uses to send tracking data.
Example of a Typical GA4 Tracking Snippet
A typical GA4 tracking snippet loaded directly on a page will look something like this:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [],
function gtag(){dataLayer.push(arguments),}
gtag('js', new Date()),
gtag('config', 'G-XXXXXXXXXX'),
</script>What If You Can't Find It?
If your search comes up empty, don't panic. This doesn't necessarily mean GA4 isn't working. Many websites manage their marketing and analytics tags using Google Tag Manager (GTM). In this case, the GA4 snippet won't be visible directly in the source code, instead, you'll see a GTM snippet. The following methods will give you a more definitive answer.
Method 2: Use the "Network" Tab in Browser Dev Tools
For a foolproof way to confirm data is being sent to Google Analytics, you can use your browser's built-in developer tools. This lets you observe the live web traffic between your browser and Google's servers. It's the most reliable way to get ground-truth confirmation that data is actually leaving your site.
Opening and Using the Network Tab
Here’s how to access and use the Network tab for your check:
- Open Developer Tools: On your website, press F12 (on Windows) or Cmd+Option+I (on Mac). This will open a new panel on the side or bottom of your browser window.
- Select the Network Tab: At the top of this panel, click on the "Network" tab.
- Filter the Requests: In the filter box at the top of the Network tab, type
collect?v=. This isolates the specific requests that send data to Google Analytics, making it easier to spot. - Refresh the Page: You may want to click the small "clear" icon first (a circle with a line through it). Then, with the Network tab still open, refresh your webpage.
What a Successful Request Looks Like
As your page reloads, you’ll see new lines appear in the Network tab. If GA4 is working, you should see at least one entry that matches your filter. Here are the key things to check:
- The name of the request will start with
collect?v=... - It will have a "Status" code of 200 or 204, which means the request was sent and received successfully.
- If you click on the request 'name,' you can view details. In the "Headers" tab, scroll down to the "Request URL" or "Query String Parameters." In this section, you will see a parameter called
tid. The value associated with it should be your GA4 Measurement ID (e.g.,tid: G-XXXXXXXXXX).
Seeing this confirms that your browser is successfully sending pageview data to the correct GA4 property.
Method 3: The Easiest Way - A Browser Extension
If the first two methods feel a bit too technical, this is the solution you’re looking for. The easiest and most user-friendly way to verify tags is by using a free browser extension from Google specifically created for this purpose.
Using Google's Tag Assistant Companion
The Tag Assistant tool allows you to debug the installation of Google tags in a much more visual and understandable way. Here's how to use it:
Step 1: Install the Extension
- Open the Chrome Web Store and search for "Tag Assistant Companion."
- Click "Add to Chrome" to install the extension. Once installed, it's a good idea to "pin" it to your browser toolbar for easy access.
Step 2: Start a Debugging Session
- Navigate your browser to tagassistant.google.com.
- Click the "Add Domain" button.
- Enter your website's full URL (e.g., https://www.yourwebsite.com) and click "Connect."
A new browser window for your website will open. In the bottom right corner, you should see a small overlay indicating it's connected to Tag Assistant. At the same time, the original Tag Assistant tab will begin showing data.
Step 3: Check the Results
Navigate back to the original Tag Assistant tab you opened from google.com. You will see a summary of the tags found.
- You should see your GA4 Measurement ID (starting with "G-") listed under "Tags Found."
- Click on your GA4 ID in the list to see the "Hits Sent". You should see events like
page_viewanduser_engagement. - Navigate to a different page on your website (in the window that opened). You should see these new page views and events appear in the Tag Assistant window in real-time.
This extension provides a clear, visual confirmation that your tags are not only present but are also firing correctly as you interact with the site. A "green" tag indicates a successful implementation.
Method 4: Confirm Your Visit in the GA4 Realtime Report
The ultimate confirmation that your GA4 setup is working is seeing your own visit show up within your Google Analytics account. If the data arrives there, you know everything is connected and processing correctly from end to end.
How to Find and Use the Realtime Report
This method requires you to have access to the Google Analytics account linked to your website.
- Go to Google Analytics and log in.
- Select the correct GA4 account and property for your website.
- In the left-hand navigation menu, click on Reports.
- From the Reports menu, click on Realtime.
The Realtime report shows activity happening on your website within the last 30 minutes. Now, let’s test it.
- Keep the Realtime report open in one browser tab or window.
- In a separate browser window (or on your smartphone), visit your website’s homepage. Then, click on a few other pages on your site.
- Anonymously is better: Use an "incognito" or "private" browser window, or open the site on your phone using cellular data instead of your office Wi-Fi. This helps avoid your visit being excluded by any IP filters that might be set up.
What to Look For
After clicking around your site, go back to the Realtime report tab in Google Analytics. You should see:
- The "Users in last 30 minutes" counter should tick up by at least one.
- On the map under "Users by Country," you should see a blue circle appear near your current location.
- The card titled "Views by Page title and screen name" should list the titles of the pages you just visited.
It can sometimes take a minute or two for data to appear, but seeing yourself show up is definitive proof that your setup is working perfectly.
A Quick Clarification: GA4 vs. the Old Universal Analytics (UA)
While you're checking for your analytics tags, it's important to know which kind you're looking for. The old version of Google Analytics, called Universal Analytics (UA), used tracking IDs that started with "UA-". On July 1, 2023, Google stopped processing data for standard UA properties.
The current version is Google Analytics 4, and its Measurement IDs start with "G-".
If you've run through the tests above and only find a "UA-" code, it means your website isn't using the modern version of Google Analytics. You aren't collecting any new standard data, and it's essential to upgrade to a GA4 setup as soon as possible.
Final Thoughts
Verifying your analytics setup is a vital step in trusting your business data. Whether you're diving into your site's source code, using browser developer tools, clicking through Tag Assistant, or seeing yourself in the Realtime report, you now have a complete toolkit to confirm your GA4 installation is working correctly at any time.
Confirming your GA4 tag is firing is the crucial first step, but the real goal is getting clear, actionable insights from all that data, without spending hours in confusing report builders. At Graphed, we make that part effortless. Once you connect your Google Analytics account, you can create real-time dashboards and get answers instantly by just asking questions in plain English, turning your raw data into smart decisions in seconds, not hours.
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.