Check your web-tracking-code setup
If you’re not sure your tracking code is working correctly, try one of the options below to check your setup.
In this article:
Check your Real-Time reports
The Real-Time reports let you see current activity on your site. If these reports have data, then your tracking code is collecting data and sending it to Analytics as expected.
The Real-Time Overview and Behavior reports let you see activity for specific pages. If you haven’t added the tracking code to all pages on your site, you can check these reports to see whether the tracking code is sending data from the pages you have tagged. These reports show activity for only the most active pages, so they don’t provide an exhaustive assessment, but they’re a good signal that your tracking code is working correctly.
To see the Real-Time reports:
- Sign in to your Analytics account.
- Navigate to a view in the property to which you added the tracking code. If you only recently added the tracking code to this property (website), it is likely that there will only be one view.
- Open Reporting.
- Select Real-Time > Overview or Real-Time > Behavior.
Use Google Tag Assistant to verify your setup
Google Tag Assistant is a free Chrome browser extension that shows you whether Google Analytics tags (the tracking code) are firing correctly. Tag Assistant lets you record a user journey on your site, and then see a report of all the hits sent during that journey and whether there were any errors associated with sending those hits.
The image below shows an example of the kinds of errors that Tag Assistant reveals:
See an example of a Tag Assistant report.
Learn more about installing Google Tag Assistant and recording a user journey.
Troubleshoot your tracking code setup
If you don't see data in your Analytics account, or you see a significant drop in number of sessions, try this troubleshooter.
* Nguồn: Google Analytics