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.