provider marketing_analytics GET
/api/projects/{project_id}/marketing_analytics/suggest_utm_mappings/ @utdk/posthog
/api/projects/{project_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.
- 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
- 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
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.marketingAnalyticsSuggestUtmMappingsRetrieve({
"lookback_days": 90,
"min_event_count": 10
})