mixpanel.people.set(userIdFromResp, { $email: user.email, plan: defaultPlan, }); mixpanel.people.set(userIdFromResp, { plan: defaultPlan, }); When I will calling second time first time set email will remove ?
Hi Anjali N., 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
No, the $email will not be removed..people.set() only overwrites the properties you include in that call; it does not clear or unset properties you donβt mention. So: js mixpanel.people.set(userIdFromResp, { $email: user.email, plan: defaultPlan, });LBKScreates/updates both $email and plan.Later: js mixpanel.people.set(userIdFromResp, { plan: defaultPlan, });LBKSwill only update plan. $email will stay as it was. [JS SDK profiles]
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.
