I have run into an issue where I can get the Hubspot Conversations SDK to work when I preview a page on Wordpress. The live chat is visible and easily manipulated as the SDK indicates. Once the page is published I see the following error messages in the console:
Uncaught TypeError: Cannot read property 'widget' of undefined
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.hubspot.com') does not match the recipient window's origin ('').
I have tried disabling all caches, changing how Hubspot is embedded, using the code to wait until the Hubspot Conversations is ready - all to no avail.