APIs & Integrations


Conversations SDK not resulting in visible live chat

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. 


2 Replies 2
Key Advisor

Conversations SDK not resulting in visible live chat

Hi @loothed , @dennisedson ,


I'm really sorry i don't know the front sdk i only work in back at the moment, hope someone else can help you

HubSpot Product Team
HubSpot Product Team

Conversations SDK not resulting in visible live chat

Hi @loothed 

Looks like you are dealing with a cross-origin issue.

Wondering if @HenryCipolla  or @quentin_lamamy could help here



HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show