:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
{
"name": "User Agent Populator",
"url": "https://github.com/posthog/useragent-plugin",
"description": "Enhances events with user agent details",
"main": "dist/index.js",
"config": [
{
"markdown": "User Agent plugin allows you to populate events with the $browser, $browser_version for PostHog Clients that don't typically populate these properties"
},
{
"key": "overrideUserAgentDetails",
"name": "Can override existing browser related properties of event?",
"type": "string",
"hint": "If the ingested event already have $browser $browser_version properties in combination with $useragent the $browser, $browser_version properties will be re-populated with the value of $useragent",
"default": "false",
"required": false
},
{
"key": "enableSegmentAnalyticsJs",
"name": "Automatically read segment_userAgent property, automatically sent by Segment via analytics.js?",
"type": "choice",
"hint": "Segment's analytics.js library automatically sends a useragent property that Posthog sees as segment_userAgent. Enabling this causes this plugin to parse that property",
"choices": ["false", "true"],
"default": "false",
"required": false
},
{
"key": "debugMode",
"type": "choice",
"hint": "Enable debug mode to log when the plugin is unable to extract values from the user agent",
"choices": ["false", "true"],
"default": "false",
"required": false
}
]
}