setCustomerIDs
setCustomerIDs sets 1 or more key-value pairs that define customer IDs and their authentication state.
Syntax: visitor.setCustomerIDs()
You can set single or multiple IDs as shown in the code sample below. See Customer IDs and Authentication States for more information and examples.
// Single ID with a single authentication state
visitor.setCustomerIDs({
"userid":{
"id":"67312378756723456",
"authState":Visitor.AuthState.AUTHENTICATED
}
});
//Multiple IDs with a single authentication state
visitor.setCustomerIDs({
"userid":{
"id":"67312378756723456",
"authState":Visitor.AuthState.AUTHENTICATED
},
"dpuuid":"550e8400-e29b-41d4-a716-446655440000"
});
recommendation-more-help
9c9e8ca9-9f7e-42c9-a5d5-a0d82776362a