How to Check Your Site for Your Google Analytics Tracking Code

Do you want to test or verify if your Google Analytics tracking code is running on your website?

Once you’ve installed ExactMetrics, and connected to Google Analytics, it’s good practice to confirm that your Google Analytics tracking code is working as expected.

Follow this guide to learn the different ways of testing.

Prerequisites:

  1. You’ve already installed and activated ExactMetrics.
  2. You’ve already connected ExactMetrics with Google Analytics.
  3. You are logged out of your WordPress site, or you are using an Incognito / Private window to test.

By default, ExactMetrics will not run your tracking code if you’re logged in as an Administrator or Editor on your WordPress site.

1. Viewing the Source Code

You can simply view your website’s source code and search for ExactMetrics’ output to see if your tracking code is working.

First you’ll need to inspect element or view source while on your website.

Right-click anywhere while on your website and choose the option to view your page source. The option can vary from browser to browser:

  • Inspect
  • Inspect Element
  • View Page Source

Whichever the wording, find and click the option:

 

Then you can do a search within the source code (using CTRL + F or CMD + F) to confirm if ExactMetrics is inserting your tracking code:

2. Using Tag Assistant (by Google)

You can also use a chrome extension called Tag Assistant (by Google).

Visit the Tag Assistant (by Google) web store page and install this extension by clicking the Add to Chrome button.

 

Then Add extension.

 

With the Tag Assistant icon added to your browser, click on it and select Done to finish installation.

 

Go back to your website and enable the extension by clicking on the icon and clicking Enable.

 

Now you can refresh your page, and the extension will search your website for Google Analytics codes.

If your Google Analytics tracking code is installed correctly, you’ll see your tracking code appear under results, with a green icon meaning that it is running.

3. Using Google Anaytics Debugger

Another popular Chrome extension is the Google Analytics Debugger, which displays information in your Developer Tools ยป Console.

ExactMetrics also comes with this feature: enable debug mode using the ExactMetrics plugin (instead of using a browser extension).

Visit the Google Analytics Debugger web store page and install this extension by clicking the Add to Chrome button and then Add extension.

 

Then turn on Analytics debug mode by clicking on the extension icon while on your website.

To view the results of debug mode, open the developer tools, and click on the Console tab:

You should be able to see your tracking code UA number.

 

You did it! You learned how to verify your tracking code output.

What’s next? If you see your Google Analytics tracking code twice in your website, then you might have duplicate trackers that can skew your data. Learn how to remove other Google Analytics tracking codes.