Customize aiaibot cookies

The setting of cookies in the chatbot can be prevented by adding an attribute on the aiaibot script tag. To do this, the following attribute must be added:

data-aiaibot-no-cookies

In addition, two complementary functions are available via the JavaScript API. To set aiaibot cookies, the following function should be called if the user agrees:

window.aiaibot.createTrackingCookies()

To delete aiaibot cookies, the following function should be called on subsequent rejection of the cookies:

window.aiaibot.removeTrackingCookies()
Was this article helpful?
2 out of 2 found this helpful