Analytics Detection
developer/v1/domain/analyticsDiscovers 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
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 Compliance
Identify all tracking technologies for privacy policy documentation and consent management.
Maintain GDPR/CCPA compliance with complete tracking inventory.
Competitive Intelligence
Analyze competitor analytics stacks to understand their measurement approach.
Identify analytics tools to consider for your own stack.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Required | The domain to detect analytics forExample: example.com |
Response Fields
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain |
analytics | array | Detected analytics tools with name, confidence, evidence, and toolId (e.g. GA tracking ID, Facebook Pixel ID) |
count | number | Number of analytics tools detected |
Code Examples
curl "https://api.edgedns.dev/v1/domain/analytics" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "domain=example.com"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);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.