Skip to main content

Analytics Detection

developer
GET/v1/domain/analytics

Discovers analytics and tracking tools used on a website including Google Analytics, Mixpanel, Hotjar, Facebook Pixel, and many more marketing technologies.

What It Does

Scans HTML source and network patterns for analytics scripts, tracking pixels, and marketing tags. Identifies tool IDs where possible (GA tracking ID, Facebook Pixel ID, etc.).

Why It's Useful

Understanding analytics implementations helps with competitive analysis, privacy compliance assessment, and identifying optimization opportunities in marketing technology stacks.

Use Cases

Marketing Operations

MarTech Audit

Audit analytics implementations to ensure all tracking is properly deployed and no duplicates exist.

Ensure data quality by identifying tracking gaps or duplicates.

Privacy Officer

Privacy Compliance

Identify all tracking technologies for privacy policy documentation and consent management.

Maintain GDPR/CCPA compliance with complete tracking inventory.

Growth Manager

Competitive Intelligence

Analyze competitor analytics stacks to understand their measurement approach.

Identify analytics tools to consider for your own stack.

Parameters

NameTypeRequiredDescription
domainstringRequiredThe domain to detect analytics forExample: example.com

Response Fields

FieldTypeDescription
domainstringThe queried domain
analyticsarrayDetected analytics tools with name, confidence, evidence, and toolId (e.g. GA tracking ID, Facebook Pixel ID)
countnumberNumber of analytics tools detected

Code Examples

cURL
curl "https://api.edgedns.dev/v1/domain/analytics" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "domain=example.com"
JavaScript
const response = await fetch(
  'https://api.edgedns.dev/v1/domain/analytics?domain=example.com',
  {
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  }
);

const data = await response.json();
console.log(data);
Python
import requests

response = requests.get(
    'https://api.edgedns.dev/v1/domain/analytics',
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    params={
    'domain': 'example.com'
    }
)

data = response.json()
print(data)

Read the full Analytics Detection guide

Why it matters, real-world use cases, parameters, response fields, and how to call it from Claude, ChatGPT, or Gemini via MCP.

Read the guide →

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the Analytics Detection endpoint live in the playground.