Skip to main content

Attributes

Definition

This document provides a detailed walkthrough of the fireing attributes

Triggers and Dispatch Conditions of the Attributes

The SDK will trigger attribute updates under the following conditions: when either utm_source or utm_campaign exists and has not been previously sent to the receiver, or when the UTM data differs from the last request, as stored in the "attributesStore" table in indexedDB. If the SDK is initialized and no record exists in indexedDB for the attributes, it will create a new record and set the attributesSent flag to false. Additionally, if the current device ID and DID from the indexedDB record differ during SDK initialization, the SDK will initiate attribute firing. Upon successful completion of an ongoing request, the SDK will update the attributesSent flag to true.

The schema of an attribute

{
'type': 'attribute',
'data': {
'name': string,
'operation': '$overwrite' | '$inc' | '$dec',
'value': string | number | boolean
},
'timestamp': number
}

attribute parameters

name

Specifies the attribute name.

operation

Indicates the operation associated with the attribute.

value

Represents the value associated with the attribute.