Skip to Content
DestinationsMixpanelStrip URL Parameters

Strip URL Parameters from Current URL

How to strip URL parameters from the current URL in Mixpanel.

Last reviewed September 15, 2026

This custom event property removes URL query parameters to make analysis cleaner.

Purpose

Convert URLs with query parameters into their base form. For example:

xxx.myshopify.com?utm_source=test&utm_medium=test becomes xxx.myshopify.com

Code Implementation

In Mixpanel’s custom property editor, use:

SPLIT(CURRENT_URL, "?", 1)

This formula uses the SPLIT function to divide the current URL at the question mark character. It returns the first segment, so it removes all query parameters.

Note: CURRENT_URL is a placeholder. In the custom property editor, use the Mixpanel property selector for Current URL.

Need help?

When you contact support, give your workspace, the source or destination name, the job ID and the first error message.

support@vendodata.com
Last updated on