Sourcemap Explorer
Stack · Analytics

Google Analytics

Google Analytics is a free web analytics service that tracks and reports website traffic.

Analytics

About

Google Analytics is a free web analytics service that tracks and reports website traffic.

Categories: Analytics

Quick facts

CategoriesAnalytics

Detection methodology for Analytics

Analytics SDKs are usually loaded from a vendor-controlled CDN (`googletagmanager.com`, `google-analytics.com`, `cdn.segment.com`, `cdn.amplitude.com`, `eu.i.posthog.com`) and expose a global with a recognisable surface. We catch the script src URL plus the global plus — when a sourcemap is available — the exact `node_modules/<sdk>/package.json` version. Tracker isolation prevents these vendor libraries from polluting the surrounding stack readings.

How we detect Google Analytics

Each signal alone is rarely conclusive — Sourcemap Explorer cross-references all of them and weights by confidence. You can reproduce any of these checks yourself in Chrome DevTools.

Cookie

Cookies set by the platform. Visible in DevTools → Application → Cookies.

__utma
_ga
_ga_*
_gat
JavaScript global

Window-level global the technology installs on page. Reproducible by typing the path into the DevTools console.

window.GoogleAnalyticsObject
window.gaGlobal
Script src URL

Script URL pattern. Typically a CDN host or chunk path that ships with the technology.

google-analytics\.com/(?:ga|urchin|analytics)\.js
googletagmanager\.com/gtag/js
gtag\([^)]+'(UA-)
gtag\([^)]+'(G-)
DOM selector

A DOM selector that only this technology's pages render. Verified at runtime by the content script.

amp-analytics[type*=googleanalytics]

FAQ

How do I check if a website is using Google Analytics?

Open the page in Chrome, click the Sourcemap Explorer toolbar icon, and read the Stack tab. The popup matches Google Analytics's fingerprint signals (response headers, asset URL prefixes, runtime globals, sourcemap paths) and flags it whenever any combination is found. The same checks can be reproduced manually in DevTools — see the "How we detect" section above.

What Google Analytics version can Sourcemap Explorer detect?

Google Analytics ships as a hosted analytics rather than a bundled npm package, so version-specific detection isn't always possible. Where the platform leaks a version in response headers (`X-Powered-By`, `Server`, generator meta tags) we surface it; otherwise we report presence only.

Where can I read more about Google Analytics?

Official site: https://google.com/analytics. For Sourcemap Explorer's detection guide, see the deep-dive link below or the related guides in the cross-link section.

Keep reading on Sourcemap Explorer

Detected by Sourcemap Explorer

Open the popup on any page running Google Analyticsand you'll see the exact version pulled from the bundled package.json when sourcemaps are exposed.

Install free on Chrome