provider marketing_analytics GET /api/environments/{environment_id}/marketing_analytics/utm_audit/
@utdk/posthog /api/environments/{environment_id}/marketing_analytics/utm_audit/
Run UTM audit
Cross-reference campaigns with spend from ad platforms against pageview events with UTM parameters to identify tracking issues.
date_from query
Start date for the audit period
string
date_to query
End date for the audit period
stringnull
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMarketingAnalyticsUtmAuditRetrieve
GET/api/environments/{environment_id}/marketing_analytics/utm_audit/
Cross-reference campaigns with spend from ad platforms against pageview events with UTM parameters to identify tracking issues.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Start date for the audit period

End date for the audit period

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.environmentsMarketingAnalyticsUtmAuditRetrieve({
  "date_from": "-30d"
})