The first-time event means that the event will only be reported the first time it is triggered on the same device. Only registration event and custom events support this feature. rst in-app ad impression event
Calling the trackFirstEvent
function can report a first-time registration event. If the same firstCheckId is called multiple times, only the first call will take effect.
Parameter | Parameter Meaning | Type | Required |
---|---|---|---|
firstCheckId | First-time event verification ID | String | Yes |
eventName | _appReg | String | Yes |
properties | _appReg event properties | object | Yes |
"properties" description
Parameter | Parameter Meaning | Type | Required |
---|---|---|---|
registerType | Register type such as "WeChat", "QQ" and other custom values | String | Yes (No more than 32 characters) |
registerStatus | Register status such as "success" | String | No |
customProperties | custom properties | object | No |
Code Example
let firstCheckId = "test_uniqueID";
let properties = {
registerType:"WeChat",
registerStatus:"success",
customProperties:{
test_key1:"1",
test_key2:2,
}
}
solarengine.trackFirstEvent(firstCheckId, "_appReg", properties)
// You can choose not to set customProperties.
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.
Code Example
let firstCheckId = "test_uniqueID";
const customProperties = {
test1: "key1",
test2: 2,
test3: [1, "2", { "keyxx": "xx" }],
}
solarengine.trackFirstEvent(firstCheckId, "test_Event", customProperties)
// You can choose not to set customProperties.
// Please do not report custom properties starting with "_", otherwise SDK will abandon its value by default.