Check if a web page uses Google Analytics

In this article:

For web pages you own

With the Real-Time reports, you can monitor user activity as it happens. If you see data in these reports, it means that your tracking code is currently collecting data.

  1. Sign in to your Analytics account.
  2. 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.
  3. Select the Reporting tab.
  4. Select Real-Time > Overview.

For web pages you visit (and don’t own)

Note: If the web page you're visiting uses Google Tag Manager, you won't be able to determine whether or not the page uses Google Analytics. Pages using Google Tag Manager will have a container snippet instead of the Google Analytics tracking code. Only users with access to the Google Tag Manager container being used can see what tags (including the Google Analytics tracking code) are being used.

There are a different ways you can find out if a web page you’re visiting (and don’t own) uses Google Analytics. The most common ways to check are built into most modern browsers. You can either view the source code, which instructs the browser what to load, or use browser-based developer tools to see if the page is sending information to Google Analytics.

When you’re looking for Google Analytics, try both methods. It’s common for the Analytics JavaScript to be included directly on a web page, so you can see it in the source code. It’s possible for a page to call Analytics from another source. In these cases, you won’t see the JavaScript directly on the page. You’ll only be able to tell if the page is using Analytics if you check the developer tools for communication with Analytics.

If you’re using Chrome, and want to check the source code for the Google Analytics JavaScript:

  1. Load a web page in the Chrome browser.
  2. From the browser menu, select View.
  3. Select Developer, then View Source.
  4. You should see a lot of code. Search the page for either analytics.js (for Universal Analytics) or ga.js (for classic Google Analytics). A site can use both JavaScript libraries at the same time.

If you’re using Chrome, and want to use the developer tools:

  1. Load a web page in the Chrome browser.
  2. From the browser menu, select View.
  3. Select Developer, then Developer Tools.
  4. Click Network. If you don’t see any data in the table, refresh the page.
  5. In the Initiator column, look for either analytics.js (for Universal Analytics) or ga.js (for classic Google Analytics). A site can use both JavaScript libraries at the same time.

Availability and access to these tools vary. Check your browser's help center for more information on how to check the source code or use the developer tools.

Related resources

Set up the web tracking code

Was this article helpful?
Yes
No