You may not see data from your website in Google Analytics for the following reasons:
- The measurement code is not installed on your website
- The measurement code is installed incorrectly
- Your website has not received any traffic
- Your data is not yet processed
The measurement code is not installed on your website
You can install Google Analytics on your website using the Google tag (gtag.js) or Google Tag Manager. Depending on the option you choose, you need to add one or two snippets of code to each page of your website. Learn how to install the measurement code
The measurement code is installed incorrectly
The following are possible reasons why your code might be installed incorrectly:
Google tag (gtag.js)
The Google tag snippet is in the wrong place
Make sure you add your Google tag after the opening <head>
HTML tag in your website code.
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.
The Google tag ID is incorrect
- Click Data Streams and then select the web data stream for the website.
- In the Stream details section, copy the Measurement ID.
The Measurement ID in the Stream details section must be the same ID in your Google tag:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=Measurement-ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'Measurement-ID');
</script>
The Google tag contains extra whitespaces or characters
Tag Manager
For more information about troubleshooting your Tag Manager setup, see Troubleshoot issues.
The Tag Manager snippets are in the wrong places
<head>
of the page as possible in your website code and the second snippet immediately after the opening <body>
tag.You also need to make sure you add the snippets to each page of your website. Google Analytics only collects data from your website pages that include the snippets. Learn more
The Google tag ID is incorrect
- Click Data Streams and then select the web data stream for the website.
- In the Stream details section, copy the Measurement ID.
The Measurement ID in the Stream details section must be the same ID in your GA4 Configuration tag.
The GA4 Configuration tag has not been configured
The GA4 Configuration tag does not have a trigger condition
The Tag Manager and Google tag snippets are both installed
The Tag Manager changes have not been published
Your website has not received any traffic
If you just installed Google Analytics for the first time, and you don't see any data coming in, it may be that you don't have traffic on your website to display in your reports. Try clicking around on the website and then wait about a minute to see if those clicks populate in the Realtime report.
Your data is not yet processed
The Realtime report shows you data as people use your website. If you just installed Google Analytics for the first time, you will need to wait up to 24 hours for Google Analytics to process the data from your website and then display the data in the Realtime report.
Additionally, when you don't have a lot of users on your website, Analytics may apply thresholds to protect the identity of individual users. You can check if a threshold has been applied along the top of a report. Learn more about thresholds