How to set user image in mixpanel
Hi Nainik M., 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
To set a user's image (avatar) in Mixpanel, you can use the $avatar
reserved profile property. Here's how you can do it: 1. First, make sure you have identified the user using the identify
method.
2. Then, use the people.set
method (or equivalent in your SDK) to set the $avatar
property with a URL pointing to the user's image.Here's an example using the JavaScript SDK: LBKS// Identify the user mixpanel.identify('USER_ID');LBKS// Set the avatar URL mixpanel.people.set({ '$avatar': '[https://example.com/path/to/user/image.jpg](https://example.com/path/to/user/image.jpg)' });LBKS
The $avatar
property should be set to a URL resource of a gif, jpg, jpeg, or png image file. This will update the profile picture for the user in Mixpanel.It's worth noting that this property will override any profile picture that might have been pulled from Gravatar.Reserved Properties provides more information about the $avatar
property and other reserved profile properties in Mixpanel.
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! đź“š
Certainly! Here's a list of the reserved profile properties in Mixpanel: 1. name: The user's or group's general name. 3. last_name: The user's or group's last name. 5. phone: The user's or group's phone number. 7. created: The time that the profile was created. 9. name, last_name properties are used in various Mixpanel UI reports. - phone are important for sending emails or SMS via Cohort Syncs. - created needs to be manually set, as it's not auto-populated. - first_name and name.For more detailed information about these properties and their uses, you can refer to the Reserved Properties documentation.
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.