A PostHog app to convert specific url search/query parameters to event properties allowing you to more easily compare them in insights.
You can specify a list of parameters to convert. Converted parameters are stored as event properties, but you can configure the plugin to set them as (initial) user properties as well. Properties are created using the parameter name and an optional prefix and suffix. (Initial user properties also get initial_
prepended to the property name.)
If a configured parameter is found one time, it will store the data as-is. If the parameter is found more than once, it will gather all the values found into an array, and store that in the property in JSON format. Or, you can set it to always store the data as a JSON array.
Support PostHog and give it a try today.
To develop this app locally, you'll need to clone it and then run specs. Please make sure you've got Node and Yarn installed. Pull requests welcome!
git clone https://github.com/PostHog/posthog-app-url-parameters-to-event-properties
yarn install
yarn test --watch
From there, edit away and enjoy!
- Open PostHog.
- Go to the Plugins page from the sidebar.
- Head to the Advanced tab.
- "Install from GitHub, GitLab or npm" using this repository's URL.
This app is early stage, but please consider starting a discussion or leaving an issue if there are features you'd like to see added.
Contributions of code, issues, reviews and documentation are welcome!
Thanks to the awesome @posthog community!
Thanks to @everald for the initial app!