Hi @Siyabonga,
I hope all is well with you ![]()
As mentioned on this documentation - HubSpot Conversations JavaScript API:
"The API is housed in the window.HubSpotConversations object. All available methods can be accessed via this object. The HubSpot script loader on your page will create this object for you, but it may not be available immediately. To defer accessing the API until it has been initialized, you may use the window.hsConversationsOnReady helper. "
And so, can you try the following code and see if this works for you:
<script >
if (window.HubSpotConversations) {
window.hsConversationsSettings = {
loadImmediately: false,
};
}else {
window.hsConversationsOnReady = [
() => {
window.hsConversationsSettings = {
loadImmediately: false,
};
},
];
}
</script>