UserPropertyMixpanelPropertySetterFactory
class UserPropertyMixpanelPropertySetterFactory(mixpanel: MixpanelAPI) : MixpanelPropertySetterFactory(source)
Stores a UserProperty on the Mixpanel people profile, and declines every other property.
Mixpanel keeps two stores: people.set writes to the person's profile, while super properties ride along on every event sent afterwards. UserProperty says which one an attribute belongs in.
Put this before GenericMixpanelPropertySetterFactory in the chain. A UserProperty is also a Property, so a generic factory placed first claims it and the profile is never written to.
This writes to the profile only. To also put it on every event, write a factory returning both setters.