How to have the chatbot open or closed depending on pages?

There are functions that allow you to manage the Livechat bubble display :

● ideta_bot_action(“load”) : load the bot

ideta_bot_action(“load”, load_open?:boolean) is a function that accepts a second optional parameter, which is a boolean type (true/false) that allows you to load an already opened bot or not.

● ideta_bot_action(“remove”) : remove the bot
● ideta_bot_action(“hide”) : hide the bot (only if it is already loaded)
● ideta_bot_action(“show”) : show the bot (only if it is already loaded and hidden)

NB: We recommend that you use these functions via window[“ideta_bot_action”](action) (ex: window[“ideta_bot_action”](“load”) ) to avoid problems with the code editors.

If you want to load the chat only later, make sure to click that option in Publish > See more > User behaviour management > Activate navigation options and make sure Load bot on page opening is unchecked.