View on GitHub

Mixpanel Unity SDK

mixpanel.Mixpanel.People Class Reference

Core interface for using Mixpanel People Analytics features. You can get an instance by calling Mixpanel.people More...

Public Member Functions

void Append (Value properties)
 Append values to list properties. More...
 
void Append (string listName, Value value)
 Appends a value to a list-valued property. More...
 
void ClearCharges ()
 Permanently clear the whole transaction history for the identified people profile. More...
 
void Increment (Value properties)
 Change the existing values of multiple People Analytics properties at once. More...
 
void Increment (string property, Value by)
 Convenience method for incrementing a single numeric property by the specified amount. More...
 
void Set (Value properties)
 Set a collection of properties on the identified user all at once. More...
 
void Set (string property, Value to)
 Sets a single property with the given name and value for this user. More...
 
void SetOnce (string property, Value to)
 Like Mixpanel.Set(string property, Value to), but will not set properties that already exist on a record. More...
 
void SetOnceMap (Value properties)
 Like Mixpanel.Set(Value properties), but will not set properties that already exist on a record. More...
 
void TrackCharge (double amount)
 Track a revenue transaction for the identified people profile. More...
 
void TrackCharge (double amount, Value properties)
 Adds values to a list-valued property only if they are not already present in the list. More...
 
void Union (properties)
 Adds values to a list-valued property only if they are not already present in the list. If the property does not currently exist, it will be created with the given list as it's value. If the property exists and is not list-valued, the union will be ignored. More...
 
void Union (string listName, Value values)
 Adds values to a list-valued property only if they are not already present in the list. If the property does not currently exist, it will be created with the given list as it's value. If the property exists and is not list-valued, the union will be ignored. /// More...
 
void Unset (Value properties)
 Remove a list of properties and their values from the current user's profile in Mixpanel People. More...
 
 People (mixpanel.detail.Mixpanel mixpanel, bool tracking_enabled)
 

Properties

string Email [set]
 Sets the email for this user. More...
 
string FirstName [set]
 Sets the first name for this user. More...
 
string LastName [set]
 Sets the last name for this user. More...
 
string Name [set]
 Sets the name for this user. More...
 
string Phone [set]
 Sets the phone number for this user. More...
 
string PushDeviceToken [set]
 Register the given device to receive push notifications. More...
 

Detailed Description

Core interface for using Mixpanel People Analytics features. You can get an instance by calling Mixpanel.people

Member Function Documentation

void mixpanel.Mixpanel.People.Append ( Value  properties)
inline

Append values to list properties.

Parameters
propertiesmapping of list property names to values to append
void mixpanel.Mixpanel.People.Append ( string  listName,
Value  value 
)
inline

Appends a value to a list-valued property.

Parameters
listNamethe People Analytics property that should have it's value appended to
valuethe new value that will appear at the end of the property's list
void mixpanel.Mixpanel.People.ClearCharges ( )
inline

Permanently clear the whole transaction history for the identified people profile.

void mixpanel.Mixpanel.People.Increment ( Value  properties)
inline

Change the existing values of multiple People Analytics properties at once.

Parameters
propertiesA map of String properties names to Long amounts. Each property associated with a name in the map
void mixpanel.Mixpanel.People.Increment ( string  property,
Value  by 
)
inline

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

Parameters
propertyproperty name
byamount to increment by
void mixpanel.Mixpanel.People.Set ( Value  properties)
inline

Set a collection of properties on the identified user all at once.

Parameters
propertiesa JSONObject containing the collection of properties you wish to apply to the identified user. Each key in the JSONObject will be associated with a property name, and the value of that key will be assigned to the property.
void mixpanel.Mixpanel.People.Set ( string  property,
Value  to 
)
inline

Sets a single property with the given name and value for this user.

Parameters
propertyproperty name
toproperty value
void mixpanel.Mixpanel.People.SetOnce ( string  property,
Value  to 
)
inline

Like Mixpanel.Set(string property, Value to), but will not set properties that already exist on a record.

Parameters
propertyproperty name
toproperty value
void mixpanel.Mixpanel.People.SetOnceMap ( Value  properties)
inline

Like Mixpanel.Set(Value properties), but will not set properties that already exist on a record.

Parameters
propertiesa JSONObject containing the collection of properties you wish to apply to the identified user. Each key in the JSONObject will be associated with a property name, and the value of that key will be assigned to the property.
void mixpanel.Mixpanel.People.TrackCharge ( double  amount)
inline

Track a revenue transaction for the identified people profile.

Parameters
amountamount of revenue received
void mixpanel.Mixpanel.People.TrackCharge ( double  amount,
Value  properties 
)
inline

Adds values to a list-valued property only if they are not already present in the list.

Parameters
listNamename of the list-valued property to set or modify
valuesan array of values to add to the property value if not already present
void mixpanel.Mixpanel.People.Union ( properties  )
inline

Adds values to a list-valued property only if they are not already present in the list. If the property does not currently exist, it will be created with the given list as it's value. If the property exists and is not list-valued, the union will be ignored.

Parameters
propertiesmapping of list property names to lists to union
void mixpanel.Mixpanel.People.Union ( string  listName,
Value  values 
)
inline

Adds values to a list-valued property only if they are not already present in the list. If the property does not currently exist, it will be created with the given list as it's value. If the property exists and is not list-valued, the union will be ignored. ///

Parameters
listNamename of the list-valued property to set or modify
valuesan array of values to add to the property value if not already present
void mixpanel.Mixpanel.People.Unset ( Value  properties)
inline

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

Parameters
propertiesproperties array

References mixpanel.Mixpanel.People.Email.

Property Documentation

string mixpanel.Mixpanel.People.Email
set

Sets the email for this user.

Referenced by mixpanel.Mixpanel.People.Unset().

string mixpanel.Mixpanel.People.FirstName
set

Sets the first name for this user.

string mixpanel.Mixpanel.People.LastName
set

Sets the last name for this user.

string mixpanel.Mixpanel.People.Name
set

Sets the name for this user.

string mixpanel.Mixpanel.People.Phone
set

Sets the phone number for this user.

string mixpanel.Mixpanel.People.PushDeviceToken
set

Register the given device to receive push notifications.


The documentation for this class was generated from the following file:
  • Mixpanel.cs