kapa.ai are the following property names mixpanel reserved? "current_url_path", "current_url", "current_page_title", "$referrer"? Does that mean we should use these property names when we track for example the page path?
The property names you listed—current_url_path, current_url, current_page_title, and $referrer—are not Mixpanel reserved properties, but rather they are default properties that are automatically collected by Mixpanel’s client-side SDKs (such as the JavaScript SDK) when tracking events like page views.- Reserved properties are special names used internally by Mixpanel for system features and processing (e.g., $distinct_id, $event_name, time, etc.), and you should avoid using these for your own custom properties to prevent conflicts or unexpected behavior [Reserved Properties].
- Default properties like current_url_path, current_url, current_page_title, and $referrer are automatically populated by Mixpanel when you use features such as automatic page view tracking. These are safe to use and are intended for exactly the use case you described—tracking page path, URL, page title, and referrer information [Default Properties: Event Properties].Summary:
- These property names are not reserved, but are default properties.
- You can and should use these property names when tracking page-related information, especially if you want to align with Mixpanel’s automatic data collection and reporting features.For example, when you enable automatic page view tracking, Mixpanel will send a $mp_web_page_view event with these properties included by default [Track Page Views].> Tip: Avoid naming your own custom properties with a $ or mp_ prefix to prevent confusion with reserved or default Mixpanel properties [Special Types of Properties].
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.
Let me check the knowledge base for you again. One moment! 📚
Great question! Here’s the nuance: - $referrer is a Mixpanel default property—it is automatically collected by the JavaScript SDK and is safe to use for tracking the referring URL. You do not need to create your own custom property with this name; simply rely on Mixpanel to collect it for you if you’re using the SDK’s automatic tracking features [Default Properties: Event Properties].- The recommendation to avoid using the $ prefix applies specifically to custom properties that you define yourself. This is to prevent confusion or conflicts with Mixpanel’s reserved and default properties, which typically use the $ or mp_ prefix [Special Types of Properties].In summary:
- You should not create your own custom property called $referrer (or any other property with a $ prefix).
- If you want to track the referrer, use the $referrer property that Mixpanel already provides automatically.
- Only use the $referrer property name if you are intentionally leveraging Mixpanel’s default property, not as a custom property you define.This approach ensures you benefit from Mixpanel’s built-in features and avoid property naming conflicts.
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.
