Event click-related tags

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

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

Offer a chat when a customer clicks a section on a page

Use the following tag to trigger an action map to offer a chat to a customer when the customer opens the "Contact Us" section of a page, indicating that the customer is very likely to call the contact center.

Tag

console.log('[Altocloud] Contact Us Section v0.2');
ac('dom', 'ready', function () {
  setTimeout(function(){
	  $('div.spl-accordion-heading').on('click', function() {
	      const sectionTitle = $(this).text().trim();
	      ac('record', 'section_opened', 'Contact Us Section', {
	        sectionTitle: sectionTitle
	      });
	  });
  }, 1500);
});