How to identify if user perform the event by using vertical screen or flip to horizontal screen?
Hi Yanisa S., 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 determine if a user performed an event in vertical (portrait) or horizontal (landscape) screen orientation using Mixpanel, you can leverage the default event properties automatically collected by the client-side SDKs. Specifically, the properties $screen_height and $screen_width are captured for each event. By comparing these values: - If $screen_height > $screen_width, the device is likely in portrait (vertical) orientation. - If $screen_width > $screen_height, the device is likely in landscape (horizontal) orientation.These properties are available for web, Android, and iOS SDKs, and can be used in your Mixpanel reports to segment or filter events by screen orientation Default Properties: Automatically collected properties.There is no explicit "orientation" property, but this method allows you to infer the orientation at the time of the event.
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.