Dec 8, 2020 11:14 PM - edited Oct 4, 2021 8:28 PM
I am trying to embed Hubspot Live Chat inline on a page on my website. I am following the SDK instructions here: https://developers.hubspot.com/docs/api/conversation/chat-widget-sdk
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.
Dec 10, 2020 4:06 AM
Dec 9, 2020 1:54 PM