HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Customers

This topic describes how to send a new customer or update to Optimizely Data Platform (ODP).

Call customer to send a new customer or update to ODP. If a customer id is supplied in the identifiers, ODP will associate it with any future events in the same web session. The customer function includes the vuid (cookie id) on all requests automatically. To make updates that do not include the vuid, use the Legacy Attribute Function.

The first object in the array contains any known identifiers. The second object in the array contains customer attributes, including any custom attributes available in the account.

zaius.customer({
    email: "[email protected]"
  },{
    first_name: "Johnny",
    last_name: "Zaius",
    gender: "M"
  });

Did this page help you?