Event-related tags

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

This section only applies to customers using web chat. If you are a Genesys Cloud CX customer using web messaging, see Present a messaging offer when a visitor clicks a section on a page.

Use the following tag to trigger an action map to offer a chat to a visitor when the visitor opens the “Contact Us” section of a page. The visitor's action indicates that the visitor is very likely to call the contact center.

标签

console.log('[Predictive Engagement] 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);});

Present a messaging offer when a visitor clicks a section on a page

This section only applies to Genesys cloud customers using web messaging. If you are using web chat, see Offer a chat when a visitor clicks a section on a page.

标签

console.log('[Predictive Engagement] Contact Us Section v0.2');Genesys("subscribe", "Journey.ready", function(){  setTimeout(function(){  $('div.spl-accordion-heading').on('click', function() {      const sectionTitle = $(this).text().trim();           Genesys("command", "Journey.record", { eventName: "section_opened", customAttributes: { sectionTitle: "Contact Us Section"             }  });       });  }, 1500);});