analytics v0.1.0 Analytics.Mixpanel.People
This module is responsible for building a struct which is later can be used to send all changes via batch request to the Mixpanel.
Whenever batch request is submitted it’s validated as whole, so that if one of entries is invalid there would be no changes applied to a user.
Link to this section Summary
Functions
Appends each to a list associated with the corresponding property name. Appending to a property that doesn’t exist will result in assigning a list with one element to that property
When processed, the property values are added to the existing values of the properties on the profile. If the property is not present on the profile, the value will be added to 0. It is possible to decrement by calling “$add” with negative values. This is useful for maintaining the values of properties like “Number of Logins” or “Files Uploaded”
Creates a new People
struct that updates person with a distinct_id
Updates the profile attribute. If the profile does not exist, it creates it with these properties. If it does exist, it sets the properties to these values, overwriting existing values
The IP address associated with a given profile, which Mixpanel uses to guess user geographic location. Ignored if not set
Works just like set/2
, except it will not overwrite existing property values.
This is useful for properties like “First login date”
Creates or updates user profile with operations from People
struct
Adds a transactions to the individual user profile, which will also be reflected in the Mixpanel Revenue report
The list values in the request are merged with the existing list on the user profile, ignoring duplicates
Link to this section Functions
Appends each to a list associated with the corresponding property name. Appending to a property that doesn’t exist will result in assigning a list with one element to that property.
For more details see submit/2
.
When processed, the property values are added to the existing values of the properties on the profile. If the property is not present on the profile, the value will be added to 0. It is possible to decrement by calling “$add” with negative values. This is useful for maintaining the values of properties like “Number of Logins” or “Files Uploaded”.
For more details see submit/2
.
Creates a new People
struct that updates person with a distinct_id
.
Updates the profile attribute. If the profile does not exist, it creates it with these properties. If it does exist, it sets the properties to these values, overwriting existing values.
For more details see submit/2
.
The IP address associated with a given profile, which Mixpanel uses to guess user geographic location. Ignored if not set.
Works just like set/2
, except it will not overwrite existing property values.
This is useful for properties like “First login date”.
For more details see submit/2
.
Creates or updates user profile with operations from People
struct.
Options
:update_last_seen
- If the:update_last_seen
property istrue
, automatically updates 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. Default:false
.
Adds a transactions to the individual user profile, which will also be reflected in the Mixpanel Revenue report.
For more details see submit/2
.
The list values in the request are merged with the existing list on the user profile, ignoring duplicates.
For more details see submit/2
.