provider marketing_analytics GET
/api/environments/{environment_id}/marketing_analytics/diagnose/ @utdk/posthog
/api/environments/{environment_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
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- include_conversion_goals query
- Whether to include the conversion-goal summary in the diagnostic
- boolean
- source_type query
- Optional integration filter
- stringnull
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsMarketingAnalyticsDiagnoseRetrieve({
"attribution_lookback_days": 7,
"include_conversion_goals": true
})