Chat-related tags
From Genesys Documentation
This topic is part of the manual Event tracking with tag managers for version Current of Genesys Predictive Engagement.
Contents
Review chat-related tags that you can use in your organization.
About web messaging
Feature coming soon: Web messaging
This article only applies to customers using web chat. If you are a Genesys Cloud customer, we encourage you to use the new web messaging to replace web chat. To start tracking, configure Messenger and then use the Messenger JavaScript SDK to configure how you want to track web events.
Record a custom web event when a visitor rejects a chat offer
This tag records a custom web event when a visitor 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');
});
});
});