APIs & Integrations

loothed
Miembro

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 Respuestas 2
quentin_lamamy
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

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


0 Me gusta
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

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

0 Me gusta