setCustomerIDs setcustomerids

setCustomerIDs plaatst 1 of meer zeer belangrijk-waardeparen die klant IDs en hun authentificatiestatus bepalen.

Syntaxis: visitor.setCustomerIDs()

U kunt een of meer id's instellen, zoals in het onderstaande codevoorbeeld wordt getoond. Zie Klant-id's en verificatiestatus voor meer informatie en voorbeelden .

// 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