dydxprotocol / v4-native-ios

Other
1 stars 0 forks source link

add `isNativeApp` Statsig user property #269

Closed mike-dydx closed 1 week ago

mike-dydx commented 1 week ago

Description / Intuition

As statsig does not offer a way to distinguish native from mobile-web, we must add a custom property to distinguish.

from Statsig slack channel AI bot:

The documentation does not provide a specific out-of-the-box method to disambiguate between an iOS native app user and an iOS web-app user. However, you can use the systemName and userAgent fields in the StatsigUser object to help differentiate between the two. The systemName can indicate the operating system, and the userAgent can provide details about the browser, which might help in identifying web-app users. You may need to implement custom logic based on these fields to achieve the disambiguation. If you need further assistance, a Statsig team member will be by to help shortly.

Creating a Segment With new Property

Screenshot 2024-10-14 at 3 59 27 PM

Exhibit New User Property

Screenshot 2024-10-14 at 3 59 13 PM