: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": "URL parameters to event properties",
"url": "https://github.com/PostHog/posthog-app-url-parameters-to-event-properties",
"description": "Converts URL query parameters to event properties",
"main": "index.ts",
"config": [
{
"key": "parameters",
"name": "URL query parameters to convert",
"type": "string",
"default": "",
"hint": "Comma separated list of URL query parameters to capture. Leaving this blank will capture nothing."
},
{
"key": "customNames",
"name": "Custom property names",
"type": "dictionary",
"default": {},
"hint": "Capture URL parameters under custom property names. The key is the URL parameter and the value is the property name to store it as, e.g. key 'fid' with value 'follower_id' stores ?fid=123 as the property follower_id. Parameters listed here are captured even if they are not in 'URL query parameters to convert', and the prefix and suffix are not applied to them."
},
{
"key": "prefix",
"name": "Prefix",
"type": "string",
"default": "",
"hint": "Add a prefix to the property name e.g. set it to 'prefix_' to get followerId -> prefix_followerId. Not applied to parameters with a custom property name."
},
{
"key": "suffix",
"name": "Suffix",
"type": "string",
"default": "",
"hint": "Add a suffix to the property name e.g. set it to '_suffix' to get followerId -> followerId_suffix. Not applied to parameters with a custom property name."
},
{
"key": "ignoreCase",
"name": "Ignore the case of URL parameters",
"type": "choice",
"choices": ["true", "false"],
"default": "false",
"hint": "Ignores the case of parameters e.g. when set to true than followerId would match FollowerId, followerID, FoLlOwErId and similar"
},
{
"key": "setAsUserProperties",
"name": "Add to user properties",
"type": "choice",
"choices": ["true", "false"],
"default": "false",
"hint": "Additionally adds the property to the user properties"
},
{
"key": "setAsInitialUserProperties",
"name": "Add to user initial properties",
"type": "choice",
"choices": ["true", "false"],
"default": "false",
"hint": "Additionally adds the property to the user initial properties. This will add a prefix of 'initial_' before the already fully composed property e.g. initial_prefix_followerId_suffix"
},
{
"key": "alwaysJson",
"name": "Always JSON stringify the property data",
"type": "choice",
"choices": ["true", "false"],
"default": "false",
"hint": "If set, always store the resulting data as a JSON array. (Otherwise, single parameters get stored as-is, and multi-value parameters get stored as a JSON array.)"
}
]
}