provider marketing_analytics GET /api/projects/{project_id}/marketing_analytics/diagnose/
@utdk/posthog /api/projects/{project_id}/marketing_analytics/diagnose/
Diagnose marketing analytics
Aggregate data-source sync health, UTM attribution health, and conversion-goal config into a single per-integration diagnostic with recommended actions. Read-only.
attribution_lookback_days query
Lookback window for attribution health (1-365 days); defaults to 7
integer
include_conversion_goals query
Whether to include the conversion-goal summary in the diagnostic
boolean
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
source_type query
Optional integration filter
stringnull

Try it

Authentication
Configure credentials for PostHog API
marketingAnalyticsDiagnoseRetrieve
GET/api/projects/{project_id}/marketing_analytics/diagnose/
Aggregate data-source sync health, UTM attribution health, and conversion-goal config into a single per-integration diagnostic with recommended actions. Read-only.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Lookback window for attribution health (1-365 days); defaults to 7

Whether to include the conversion-goal summary in the diagnostic

Optional integration filter

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.marketingAnalyticsDiagnoseRetrieve({
  "attribution_lookback_days": 7,
  "include_conversion_goals": true
})