api.session.getCustomerCookieId

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Journey JavaScript SDK for version Current of Altocloud.

Learn how to obtain a customer's cookie Id.

Description

api.session.getCustomerCookieId returns a string that contains the customer's cookie Id.

Signature

ac('api.session.getCustomerCookieId', (err, cookieInfo) => {
  if (err) {
    // handle error
    return;
  }
  
  return cookieInfo;
});

Callback

The callback takes err as the first parameter.