https://www.growthbook.io/ logo
h

helpful-hydrogen-62495

02/08/2022, 10:06 PM
hey guys, trying to set up a segment for iOS vs Android users in Mixpanel โ€” what would I put in the event condition?
the Mixpanel default $os property breaks down into iOS and iPadOS and I wanted those together so itโ€™s just iOS & Android
f

future-teacher-7046

02/08/2022, 10:09 PM
The event condition supports full javascript, so you can do something like
["iOS", "iPadOS"].includes(event.property.$os)
h

helpful-hydrogen-62495

02/08/2022, 10:23 PM
looks right?
f

future-teacher-7046

02/08/2022, 10:31 PM
That looks correct. I haven't tested this particular use case in Mixpanel, so let me know if you run into any issues
๐Ÿ‘ 1
2 Views