People

Access to the Mixpanel People API, available as an accessible variable from the main Mixpanel instance.

  • controls the $ignore_time property in any subsequent MixpanelPeople operation. If the $ignore_time property is present and true in your request, Mixpanel will not automatically update the “Last Seen” property of the profile. Otherwise, Mixpanel will add a “Last Seen” property associated with the current time for all $set, $append, and $add operations

People

  • Set properties on the current user in Mixpanel People.

    The properties will be set on the current user. Property keys must be String objects and the supported value types need to conform to MixpanelType. MixpanelType can be either String, Int, UInt, Double, Float, Bool, [MixpanelType], [String: MixpanelType], Date, URL, or NSNull. You can override the current project token and distinct Id by including the special properties: $token and $distinct_id. If the existing user record on the server already has a value for a given property, the old value is overwritten. Other existing properties will not be affected.

    Precondition

    You must identify for the set information to be linked to that user

  • Convenience method for setting a single property in Mixpanel People.

    Property keys must be String objects and the supported value types need to conform to MixpanelType. MixpanelType can be either String, Int, UInt, Double, Float, Bool, [MixpanelType], [String: MixpanelType], Date, URL, or NSNull.

  • Set properties on the current user in Mixpanel People, but doesn’t overwrite if there is an existing value.

    This method is identical to set: except it will only set properties that are not already set. It is particularly useful for collecting data about the user’s initial experience and source, as well as dates representing the first time something happened.

  • Remove a list of properties and their values from the current user’s profile in Mixpanel People.

    The properties array must ony contain String names of properties. For properties that don’t exist there will be no effect.

  • Increment the given numeric properties by the given values.

    Property keys must be String names of numeric properties. A property is numeric if its current value is a number. If a property does not exist, it will be set to the increment amount. Property values must be number objects.

  • Convenience method for incrementing a single numeric property by the specified amount.

  • Append values to list properties.

    Property keys must be String objects and the supported value types need to conform to MixpanelType. MixpanelType can be either String, Int, UInt, Double, Float, Bool, [MixpanelType], [String: MixpanelType], Date, URL, or NSNull.

  • Removes list properties.

    Property keys must be String objects and the supported value types need to conform to MixpanelType. MixpanelType can be either String, Int, UInt, Double, Float, Bool, [MixpanelType], [String: MixpanelType], Date, URL, or NSNull.

  • Union list properties.

    Property values must be array objects.

  • Track money spent by the current user for revenue analytics and associate properties with the charge. Properties is optional.

    Charge properties allow you to segment on types of revenue. For instance, you could record a product ID with each charge so that you could segement on it in revenue analytics to see which products are generating the most revenue.

  • Delete current user’s revenue history.

  • Delete current user’s record from Mixpanel People.