Chat-related tags

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

Review chat-related tags that you can use in your organization.

Record a custom web event if a customer rejects a chat offer

This tag records a custom web event if a user rejects a chat offer.

Tag

ac('dom', 'ready', function () {
  Array.prototype.forEach.call(document.querySelectorAll('cx-toaster button.cx-btn-default, .cx-toaster button.cx-button-close'), function (closeButton) {
    closeButton.on('click', function () {
      ac('record', 'chatoffer_rejected');
    });
  });
});