Loading...
Loading...
Loading...
Read about the type of data that Genesys Predictive Engagement tracks and how to ensure that you track visitor data in a regulatory-compliant manner. Understand the implications of using ad blocking software. Finally, learn how the tracking snippet works and the types of tracking snippets available.
Genesys Predictive Engagement provides a tracking snippet that you can copy and paste. Since you are logged in to Genesys Cloud CX, the tracking snippet already contains your organization ID and region.
Ad blockers are plug-ins or browser extensions that improve page load times and minimize questionable tracking. The majority of ad blockers tested with out-of-the-box settings do not interfere with Genesys Predictive Engagement’s tracking capabilities. However, there are a couple considerations if you use uBlock Origin:
The Website snippet provides tracking support to traditional webpages that contain little or no dynamic content. Traditional websites load a new HTML page whenever the visitor navigates to a different URL. To provide tracking support to traditional webpages, the Website snippet calls ac('pageview') each time the web browser loads a new page.
The SPA snippet can track activity on Single Page Applications (SPAs). SPAs load dynamic content on demand without requiring a hard reload of the HTML page. The SPA snippet can also track when visitors click relative links, which the Website snippet does not. The SPA snippet works on SPAs such as Angular, React, and Vue.js. For more information about the additional tracking options available with the SPA snippet, see autotrackURLChange.
| If you have this type of website… | Use this snippet… |
| Not sure | SPA |
| Mix of traditional and SPA pages | SPA |
| Traditional pages only | Website |
You can customize how the snippet tracks activity on your website.
After deploying the tracking snippet, use Live Now to verify that Genesys Predictive Engagement is tracking your website activity. You should see an update every 4-5 seconds.
If the tracking snippet does not work properly when you load your web pages, check the following:
For more suggestions, see about deploying the snippet.
| Error code | Description |
| 403 error | Is your domain in the list of allowed domains? |
| 404 error | Is there extra white space in the snippet?
Note: In a URL, white space is encoded as %20. |
| Bad request | Is there extra white space in the snippet?
Note: In a URL, white space is encoded as %20. |
| Initialization error | Are there any of the following in the snippet:
|
After the tracking snippet is on your webpages, call it using one of the following:
ac('init') to initialize the Journey JavaScript SDK. For more information, see init.ac('load') to load the autotrackUrlChange module and initialize the Journey JavaScript SDK. For more information, see load and autotrackURLChange.After you initialize the Journey JavaScript SDK, Predictive Engagement tracks pageview events when visitors arrive on your webpages. For more information, see Tracking methods.
Use the Web tracking feature to specify the domains to track and configure web-related tracking settings.
Use a set of modules to enhance the functionality that the Journey JavaScript SDK provides.
Use your tag manager to build custom tags and triggers that define how Predictive Engagement tracks activity on your website. For more information, see About event tracking with tag managers.
Use cookies to track domains and subdomains. For more information, see Cookies and Advanced tracking with cookies.
Get user feedback about articles.