Display a visit's short ID on your web page

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 display a visit's short ID on your webpage, so your agents can assist your customers more efficiently. To configure the shortID length, seeWeb tracking.

Display a visit's short ID

To improve a customer's experience when they chat with an agent, you can display a visit’s short ID to a customer.

Use the following code to retrieve a visit's short ID along with other visit data:

ac('api.session.getShortId', function (error, shortId) {
  if (error) {

  console.log('Visit short ID is: ' + shortId);

For more information about the short ID, see Web tracking.