APIs & Integrations

grantges
Member

Embedding Hubspot Chat - conversation object doesn't load

I'm trying to embded HubSpot Chat into an existing view of our webapp. We have integrated per the documentation, and I have  HubSpotConversations.widget object - however when querying the status - i'm seeing that it fails to load.

 

let status = window.HubSpotConversations.widget.status()

// status == {loaded:false}

 

If I try to programmatically load / open the Chat Message via API nothing happens

 

// Nothing Happens when calling either of these commands.

window.HubSpotConversations.widget.load();

window.HubSpotConversations.widget.open();

 

Question - Is it required to have a targeted ChatFlow for this page in order for this to work? It would seem like we don't need that, but if I target this page with a chat flow, the bubble and behavior is as expected.

 

Thanks in advance for any help! 

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Embedding Hubspot Chat - conversation object doesn't load

Hey @grantges,

 

According to this article - Chatflow not appearing on your pages, you'd need to ensure that the targeting rules contain the URL(s) of the page(s) that you'd like the chatflow to show up. 

 

Additionally, do ensure that the HubSpot tracking code is present on the page. 

0 Upvotes