URL Normalizer

Last updated:

|Edit this page

This transformation normalizes the format of URLs so you can more easily compare them in insights.

By default, the URL Normalizer converts all URLs to lowercase and strips trailing /s, overriding the old current_url property.

Requirements

Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.

Installation

  1. In PostHog, click the "Data pipeline" tab in the left sidebar.
  2. Search for 'URL Normalizer' and select the transformation, press Install.

Configuration

No configuration is needed. The URL Normalizer will automatically convert all URLs to lowercase and remove any trailing slashes.

If you'd like to normalize URLs into a different format, please consider contributing a PR to the repo.

FAQ

Is the source code for this transformation available?

PostHog is open-source and so are all transformations on the platform. The source code for the URL Normalizer is available on GitHub.

Who created this transformation?

We'd like to thank PostHog user and community member Mark Bennett for creating this app

Who maintains this?

This is maintained by the community. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think..

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Questions?

Was this page useful?

Next article

User Agent Populator

This transformation enhances incoming events by including browser & OS details from the $useragent property. Note: This transformation is generally only needed when using clients that don't already set these properties, or when sending events directly from the server. This transformation extracts the following properties from the provided $useragent : Property Description Example $browser Name of the browser for the user Chrome, Firefox $browser_version The version of the browser that was…

Read next article