About the tracking snippet
From Genesys Documentation
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
Use the Altocloud tracking snippet to track customer activity on your web pages.
How the tracking snippet works
Genesys Predictive Engagement provides a tracking snippet to track activity on your webpages.<meta charset="utf-8">For information on how to deploy the Genesys Predictive Engagement tracking snippet, seePredictive Engagement tracking snippetWhen you add the snippet to a webpage, the tracking snippet asynchronously loads the Genesys Predictive Engagement SDK. It then:
- Creates a new script HTML element
- Sets the source attribute to the Genesys Predictive Engagement SDK’s URL
- Sets the async attribute to 1 ( truthy)
- Adds the script element to the DOM
- Sets the name of the only global function exposed by the Genesys Predictive Engagement SDK to 'ac'
- Calls the ac function and executes the following commands:
- init to set the organization ID and region, and to specify which account to send the data to
- pageview to record an event when a page with the tracking snippet is loaded, allowing Genesys Predictive Engagement to track the visitor's journey across the website.
For more information about the the tracking method, see Web Tracking API.
Important
- The Genesys Predictive Engagement SDK does not block the loading of any other resources.
- This snippet represents the minimum configuration needed to add the Genesys Predictive Engagement customer support widget. To start sending tracking data from your visitors back to the Genesys Predictive Engagement servers, see Web Tracking API.
Comments or questions about this documentation? Contact us for support!