Normalize URLs

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? Ask Max AI.

It's easier than reading through 608 docs articles.

Community questions

Was this page useful?

Next article

Convert URL query parameters to event properties

This transformation automatically converts URL query parameters for specific terms into event properties in PostHog, enabling you to analyse them like any other data point. This can be useful for seeing how your product or content converts based on search terms. Installation In PostHog, click the " Data pipeline " tab in the left sidebar. Search for 'URL query parameter converter' and select the transformation, press Install. Configure the transformation to whitelist the parameters you want to…

Read next article