Display name
Act as a label while rendering a Custom Attribute
Description
Description about the Custom Attribute
Type
Type of data it will store. Currently supports Text, Number, Link, and Date
Key
Unique identifier attached to the Custom Attribute
window.$bevatel.setCustomAttributes({ key: value, // Key is a unique identifier which is already defined while creating a Custom attribute // Value should be based on type (Currently support Number, Date, String and Number) // Double-check that your keys always have a JSON-valid value // You need to flatten nested JSON structure while using this function });
Ex:
window.$bevatel.setCustomAttributes({
plan: "premium",
signUpDate: new Date(),
});
- window.$bevatel.deleteCustomAttribute("attribute-key");
Ex:
- window.$bevatel.deleteCustomAttribute("signUpDate");
Prior to version v1.22 , all the attributes rendered as text. Please create new definition to display the value properly