destroy
Learn how to use the destroy method to stop all Journey JavaScript SDK activity and remove all tracking information.
This article only applies to customers using web chat. If you are a Genesys Cloud customer, we encourage you to use the new web messaging feature to replace web chat.
Description
The destroy method stops all Genesys Predictive Engagement SDK activity and removes all tracking information.
Signature
ac('destroy')
Arguments
None.
GDPR and destroyed data
The destroy method stops all Genesys Predictive Engagement tracking immediately. It also removes all cookies that the SDK set; and doesn't offer anymore proactive engagements. Use the destroy method when a customer requests that you stop tracking their activities on your website. For more information about using Genesys Predictive Engagement in a GDPR-compliant manner, see GDPR.