Messaging-related tags
From Genesys Documentation
This topic is part of the manual Event tracking with tag managers for version Current of Genesys Predictive Engagement.
Review messaging-related tags that you can use in your organization.
Important
This article only applies to Genesys Cloud CX customers using web messaging. If you are using web chat, see Chat-related tags.Record a custom web event when a visitor rejects a messaging offer
This tag records a custom web event when a visitor rejects a messaging offer.
Tag
Genesys("subscribe", "Journey.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 () {
Genesys("command", "Journey.record", { eventName: "messagingoffer_rejected"});
});
});
});