provider marketing_analytics GET
/api/environments/{environment_id}/marketing_analytics/suggest_utm_mappings/ @utdk/posthog
/api/environments/{environment_id}/marketing_analytics/suggest_utm_mappings/ Suggest UTM source mappings
Detect unmatched utm_source values from recent events and propose custom_source_mappings entries, alongside the full utm_source catalogue and current mappings. Read-only.
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- lookback_days query
- Days of history to inspect (1-365); defaults to 90
- integer
- min_event_count query
- Only suggest for raw values with >= this many events
- integer
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.environmentsMarketingAnalyticsSuggestUtmMappingsRetrieve({
"lookback_days": 90,
"min_event_count": 10
})