A PostHog plugin to normalize the format of urls in your application allowing you to more easily compare them in insights.
Normalize the format of urls in your application allowing you to more easily compare them in insights. By default, this converts all urls to lowercase and strips extra trailing slashes, overrighting the old current_url
value.
Support PostHog and give it a try today. It's the best analytics platform for startups I've found. You won't regret it!
To develop this plugin 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/MarkBennett/posthog-url-normalizer-plugin.git 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 plugin is currently feature complete, 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 @Twixes and @marcushyett-ph for their help getting this plugin up and running, along with the awesome @posthog community!