Analytics Detection: Understand and Use the Results
Find tracking and analytics tools
Web analytics tools: how websites measure who visits them
Web analytics is the discipline of measuring who visits a website, what they do while they're there, and how they got there. It is one of the oldest forms of marketing measurement on the internet — Urchin (the predecessor of Google Analytics) launched in 1995 — and it has grown into a multi-billion-dollar industry. The major modern players include Google Analytics 4 (the dominant free option, used by an estimated 70%+ of all sites that have any analytics at all), Plausible (privacy-focused, hosted, paid), Matomo (open-source, self-hostable), Mixpanel and Amplitude (event-based, product-focused), Heap (auto-tracking), and Adobe Analytics (enterprise).
You should care because the analytics tool a website uses tells you a surprising amount about the team behind it. A site with Google Analytics 4 is using the default and probably hasn't thought hard about analytics. A site with Plausible has made a deliberate privacy-conscious choice. A site with Mixpanel or Amplitude is doing serious product analytics, which usually means an engineering and product team that takes data seriously. A site with no analytics at all is either philosophically opposed or hasn't bothered to set anything up. None of these are right or wrong, but they are signals.
The five things every analytics detection check looks at:
Script sources. Analytics tools load JavaScript from distinctive origins: `googletagmanager.com`, `plausible.io`, `mixpanel.com`, `amplitude.com`.
JavaScript globals. `window.dataLayer` (Google Tag Manager), `window.ga` (Google Analytics Universal), `window.gtag` (GA4), `window.mixpanel`, `window.amplitude`.
Cookie patterns. GA sets `_ga`, `_gid`, `_gat_`; Mixpanel sets `mp__mixpanel`; Amplitude sets `amplitude_*`.
Network requests. Outbound calls to known analytics endpoints during page load are unmistakable.
Privacy banners and consent flows. A GDPR-style consent banner often hints at the analytics stack underneath.
Three questions an analytics detection check answers:
Which analytics tool is this website actually using right now?
For a sales pitch, does the choice tell me whether the team takes data seriously?
For a competitive teardown, can I infer what metrics the company is probably watching?
The cost of guessing the analytics stack is misreading the data culture of the team. The fix is one detection pass and a list of known analytics fingerprints. The most useful public reference is the BuiltWith analytics overview and the W3Techs analytics market share, both of which publish regular surveys of which tools are most widely used.
What EdgeDNS surfaces beyond the marketing pixels. The detection sweep also catches three adjacent product categories that traditional analytics scanners ignore: error-monitoring / RUM SDKs (Sentry, Datadog RUM, Rollbar, LogRocket, New Relic Browser, Bugsnag, Honeybadger), feature-flag / experimentation SDKs (LaunchDarkly, Statsig, GrowthBook, Optimizely, Split.io, ConfigCat, Unleash), and consent-management platforms (OneTrust, Cookiebot, CookieYes, Iubenda, Termly, Osano, TrustArc). Each detection is tagged with a `category` so dashboards and LLM consumers can segment without an external lookup table — a Sentry deployment shows up as `error-monitoring`, a LaunchDarkly install as `feature-flag`, and a Cookiebot banner as `cmp`. Privacy-compliance audits get the consent layer (what GDPR/CCPA actually cares about) in the same response as the trackers themselves.
The Analytics Detection endpoint, in plain language
Find tracking and analytics tools
A full inventory of the modern dev + marketing + privacy stack in one call. Privacy officers get the consent layer + every tracker for GDPR/CCPA documentation. Dev-tool sales teams see whether prospects already use a competitor (Sentry vs Datadog, LaunchDarkly vs Statsig). MarTech audits catch dual-tracking-ID migrations that single-ID detectors silently hide.
What is actually happening when you call it
Scans HTML (HyperText Markup Language) source, inline scripts, and script source URLs for analytics scripts, tracking pixels, marketing tags, error-monitoring SDKs, feature-flag SDKs, and consent-management platforms. Each detection is tagged with a sub-category (analytics, tag-manager, conversion-pixel, session-replay, heatmap, chat, error-monitoring, feature-flag, cmp). Extracts ALL matching tool IDs (catches GA UA+G dual-config during migrations) and surfaces consent-mode-deferred GTM via dataLayer initialization patterns.
Why this specific tool matters
Choose a task: MarTech Audit. Audit analytics implementations to ensure all tracking is properly deployed and no duplicates exist.
Run the Analytics Detection request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Analytics Detection reference to check the field definitions and supported options.
Available on the developer plan. The technical details: `GET /v1/domain/analytics`.
When would I actually use this?
MarTech Audit
Audit analytics implementations to ensure all tracking is properly deployed and no duplicates exist.
Use the finding: Ensure data quality by identifying tracking gaps or duplicates.
Privacy Compliance
Identify all tracking technologies for privacy policy documentation and consent management.
Use the finding: Maintain GDPR/CCPA compliance with complete tracking inventory.
Competitive Intelligence
Analyze competitor analytics stacks to understand their measurement approach.
Use the finding: Identify analytics tools to consider for your own stack.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_analytics with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Analytics Detection, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Analytics Detection request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/analytics?domain=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Analytics Detection
Start with the inputs below. Keep the same hostname, path, and options when comparing Analytics Detection observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | The domain to detect analytics for | example.com |
Interpret Analytics Detection findings
Read these fields alongside the full response from your Analytics Detection check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain |
analytics | array | Detected tools, each with name, category (analytics | tag-manager | conversion-pixel | session-replay | heatmap | chat | error-monitoring | feature-flag | cmp), confidence, evidence, toolId (first ID, backward-compat), and toolIds (all extracted IDs — important for dual-config migrations) |
count | number | Total number of tools detected across all categories |
Words you might be wondering about
GDPR (General Data Protection Regulation) — Europe's privacy law. Requires websites to be transparent about what personal data they collect and how they use it.
CCPA (California Consumer Privacy Act) — California's privacy law. Gives California residents the right to know what personal data a company has collected about them.
HTML (HyperText Markup Language) — The basic language web pages are written in. The tags you see in the source code (<h1>, <p>, <a>) are HTML.
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.