kapa.ai How can I transform the current_url property before it is sent via the automated pageview event?
Based on the knowledge sources provided, I don't find explicit information about transforming the current_url property before it's sent via automated pageview events.The knowledge sources show that: 1. The current_url property is automatically collected by the JavaScript SDK and represents "The URL of the page on which the event was tracked."2. You can add additional properties to pageview events using the track_pageview() method, as shown in the Track Page Views documentation: LBKS// Send a default page view event with additional "page" property mixpanel.track_pageview({ "page": "Pricing" });LBKSHowever, this allows you to add new properties, not transform existing default properties like current_url.For transforming properties after they're collected, you could:
- Use Custom Properties in Mixpanel's UI to create transformed versions of the URL for analysis purposes
- Implement server-side tracking where you have full control over the properties sentThe knowledge sources do not explicitly mention a way to transform default properties like current_url before they're automatically sent with pageview events in the JavaScript SDK. If you need to modify how URLs are tracked, you may need to disable automatic pageview tracking and implement custom tracking with your desired URL transformations.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
