How to Check Your Site for Your Google Analytics Tracking Code

After installing MonsterInsights and authenticating it with Google Analytics, you may want to ensure that your tracking code is added to your site properly. To verify that Google Analytics can track your traffic, you’ll need to look at the source code of your website. In this article, we’ll show you how to do it.

Before we get started, you’ll either need to log out of your site or use incognito mode/private browsing mode. This is because, by default, MonsterInsights doesn’t track logged in users to ensure site owners do not skew their own Google Analytics data.

There are a few different ways to check your site for Google Analytics tracking code.

Viewing the Source Code

The best method to check your site for your tracking code is to view the source code of your site and look for the MonsterInsights tag.

To do this, navigate to your website in 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:

Inspect code for MonsterInsights tracking

Below the text “This site uses the Google Analytics by MonsterInsights plugin” will be your tracking code. In the screenshot, the tracking code starts with UA-.

Make sure this tracking only appears once in the source code. 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.