Menu

Set Public Event Properties

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.

Set Public Event Properties

     Call setSuperProperties to set public event properties.

Note:

  1. Public event properties will be saved in the cache and do not need to be called every time the app is launched.
  2. Calling the setSuperProperties method to upload previously set public event properties again will overwrite the previous properties.
  3. If a key in the public event properties overlaps with a property uploaded in an event report, the event's property will overwrite the public event property.
  4. It is recommended to set public event properties before SDK initialization using the initSeSdk method. This avoids potential issues where some reported events may not include the public event properties.
  5. Please do not use property keys that start with an underscore "_", otherwise, the property will be discarded.
Parameter NameParameter MeaningParameter TypeMandatory
userPropertiesDeveloper custom public event propertiesDictionaryYes

Call example:

let customProperties = {
    key1:"value1",
    key2:2
}
solarengine.setSuperProperties(customProperties);

Clear Defined Public Event Properties

Call unsetSuperProperty to delete the corresponding public event property of a defined key:

Parameter NameParameter MeaningParameter TypeMandatory
keyThe "key" of the public event property that needs clearing.StringYes

Call example:

solarengine.unsetSuperProperty("K3");

Clear All Public Event Properties  

Call clearSuperProperty to clear all public event properties:

Call example:

solarengine.clearSuperProperties();


Previous
Set Channel
Next
Get Preset Properties
Last modified: 2024-10-29Powered by