when using set profile to set the user's email, should I use $email or just email as the variable's name
Hi Zeyad Y., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
When setting a user's email in their profile using Mixpanel, you should use $email
as the variable name, not just "email". This is because $email
is a reserved profile property in Mixpanel.According to the Reserved Properties documentation: > email' : 'sam@​example.com',
}, meta = {'ip' : 0})LBKS[Mixpanel SDKs: Python](https://docs.mixpanel.com/docs/tracking-methods/sdks/python#storing-user-profiles)LBKSIn Swift: LBKS
Mixpanel.mainInstance().people.set(properties: ["email' => 'sam@​example.com'
}, ip = 0)```Mixpanel SDKs: RubyAlways use $email
to ensure proper functionality and integration with Mixpanel's features.
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.