Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

Mixpanel Android Semver Flag Operators: Rollout Tracking

Mixpanel Android 8.11.0 adds semver and date operators for feature flags. Track version-based rollouts and see who really gets each flag.

· 3 min read

Most feature rollouts are really version rollouts. You want the new checkout for app version 4.2.0 and above, or a banner that only appears after a launch date. Until now, targeting by version often meant clumsy string rules that mishandled numbers such as 4.10 and 4.9. Mixpanel’s Android SDK 8.11.0, released on 11 September, adds semver and date custom operators for runtime events in feature flags.

That is helpful, but it creates a measurement job. When targeting gets smarter, you need proof that the right people are in the right group. Without it, a rollout that looks healthy on paper may be hiding users on old builds who never see the feature, or users who see it too early.

The later 8.11.1 patch, released on 16 October, restored the Kotlin 2.0 minimum for SDK consumers, so check your build settings when you upgrade.

Data Points to Track

  • flag_key: the feature flag evaluated
  • flag_variant: the variant returned
  • app_version: the installed version, in semver form
  • version_rule: the semver condition that matched, such as greater than or equal to 4.2.0
  • date_rule: the date condition that matched, if any
  • rule_matched: true or false
  • sdk_version: the Mixpanel Android version in the build
  • evaluation_time_ms: how long the flag took to resolve

Setup Steps

  1. Upgrade the Mixpanel Android SDK to 8.11.1 and confirm your project builds with Kotlin 2.0 or later.
  2. List your flags that depend on app version or a calendar date.
  3. Rewrite string-based version rules as semver operators, one flag at a time.
  4. Send app_version as a consistent semver string on every event and flag evaluation.
  5. Log rule_matched with the flag key whenever a flag is checked.
  6. Test boundaries: versions just below, equal to and just above each threshold, including cases like 4.9 against 4.10.
  7. Test dates in more than one time zone, since a launch date can fall on different days for different users.
  8. Build a report that shows flag exposure by app version.

Actionable Insights

If exposure by version looks like a clean step at your threshold, the rule is doing its job. A ragged edge suggests some users report a malformed version string.

A large share of users on versions below the threshold is a product signal. It tells you the update prompt, store listing or release notes need work before the feature can reach the whole base.

Compare engagement between users who matched the rule and similar users who did not. If the gap is small, the feature may not be the cause of any change you see in retention or conversion.

Watch evaluation_time_ms as well. Rules should resolve quickly, and a slow flag can delay a screen on older phones.

Common Pitfalls

Do not compare versions as plain text. It is the reason this feature exists.

Do not test only on the latest build. Older versions in the field are the users the rule affects most.

Do not forget to retire old rules once the rollout is complete.

Making Rollouts Auditable

Keep a short record for each version-based flag: the threshold, the owner, the launch date and the expected audience. After release, compare the expected audience with the measured one. A written trail turns a vague sense that a rollout went fine into evidence you can share with the team.