Legacy attribute function
How to update customer records via the legacy attribute function in Optimizely Data Platform (ODP) using the Web SDK.
NoteThis function is accepted for updating customer records where you do not want to include the VUID (cookie id) automatically. Otherwise, see Customers function for updated functionality.
Legacy attribute function example
zaius.entity("customer", {
email: "[email protected]",
first_name: "Johnny",
last_name: "Zaius",
gender: "M"
// any custom fields you have created can be added here
});
Updated 5 days ago