Public event properties refer to the properties that are included in every event, such as the user's source channel and the advertising ID associated with conversions.
Call setSuperProperties to set public event properties.
Note:
Function
public static void setSuperProperties(Dictionary<string, object> userProperties)
Parameter | Description | Type | Required |
---|---|---|---|
userProperties | Developer custom public event properties | Dictionary | Yes |
Sample Code
Dictionary<string, object> dict = new Dictionary<string, object>();
dict.Add("K1", "V1");
dict.Add("K2", "V2");
dict.Add("K3", 2);
SolarEngine.Analytics.setSuperProperties(dict);
Call unsetSuperProperty to delete the corresponding public event property of a defined key:
Function
public static void unsetSuperProperty(string key)
Parameter | Description | Type | Required |
---|---|---|---|
key | The "key" of the public event property that needs clearing. | String | Yes |
Sample Code
SolarEngine.Analytics.unsetSuperProperty("K3");
Call clearSuperProperty to clear all public event properties:
Function
public static void clearSuperProperties()
Sample Code
SolarEngine.Analytics.clearSuperProperties();