Did you just set up Google Analytics and want to check if Google Analytics is working? To verify Google Analytics tracking, you’ll need to look at the source code of your website. In this article, we’ll show you different ways to check if Google Analytics tracking is properly added to your site.
Verifying Google Analytics Tracking
You need to set up Google Analytics on your site to determine how your visitors are interacting with your site. After the setup, it can take up to 24-48 hours to appear your traffic data in Google Analytics. But before you get the data in your Google Analytics account, you need to verify if Google Analytics has properly set up on your site.
Unless you verify tracking, you wouldn’t be able to identify if Google Analytics has properly set up. While the real-time report in your Google Analytics profile tells you if tracking code is installed on your site, it doesn’t give you a clue on whether Analytics is double tracking your visits.
The easiest way to set up Google Analytics properly and avoid double tracking visits on your WordPress site is by using MonsterInsights. It takes the pain out of Google Analytics set up, and makes it easy to leverage the full potential of Google Analytics on your WordPress site.
1. Viewing the Source Code
The first and easiest method is to view the source code of your site and look for your Google Analytics tracking code.
If you installed MonsterInsights on your site, you’ll need to turn on the incognito mode (private browsing) in your browser to see the Analytics tracking code. It’s because MonsterInsights doesn’t track your own visits to avoid skewing your Google Analytics data. This way, it doesn’t discern the actual traffic with your own traffic.
If you’re not using MonsterInsights, you might be skewing your Analytics data by tracking your own visits. In that case, simply open your website with your browser.
Then, you can use a keyboard shortcut to view the source code of your site. If you’re on Windows or Linux, press Ctrl + U to view the source code. If you’re on Mac, press Command + U.
Alternatively, you can right click anywhere on the page and click the View page source option. The wording may be slightly different depending on your web browser.
Here’s what your Google Analytics tracking code will look like:
2. Using Tag Assistant (by Google)
The next method is to use the Chrome extension Tag Assistant (by Google). Go to the link using the Chrome browser and download the extension by clicking Add to Chrome. Then, click Add extension in the popup that appears.
Now you’ll see the Tag Assistant (by Google) icon in your extension bar along with other extensions. Click on it and select Done.
Now go to your website and click on the extension icon again. Then, click Enable.
Now refresh your page. If your Google Analytics code is installed correctly, you’ll see your tracking ID when the extension icon is clicked.
3. Using Google Analytics Debugger
You can also check the Analytics tracking code by using another popular Chrome extension Google Analytics Debugger. Alternatively, you can follow our guide to enable debug mode using the MonsterInsights plugin without installing any Chrome extension.
To use the extension, go to the Google Analytics Debugger. Then, click Add to Chrome.
You can turn on Analytics debug mode by clicking on the extension icon in your extension bar.
After enabling it, go to your website. Then, right click and select Inspect.
Now click on the console tab to view your tracking ID.
If your Google Analytics code appears more than once, it may be double counting your site traffic. See our guide on removing other Google Analytics tracking codes for more details.
We hope this article helped you check Google Analytics tracking code on your site.