Skip to Content
DestinationsMixpanelStrip URL Parameters
How-to guideDestinationsAvailable

Strip URL Parameters from Current URL

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

Last reviewed July 13, 2026

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

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 and returns the first segment, effectively stripping away all query parameters.

Note: Replace CURRENT_URL with the actual Mixpanel property selector for Current URL in the custom property editor.

Need help?

Include your workspace, integration or job ID, and the first error message when you contact support.

support@vendodata.com
Last updated on