Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Legacy attribute function

How to update customer records via the legacy attribute function in Optimizely Data Platform (ODP) using the Web SDK.

📘

Note

This 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
});