Hi Guys,
This is kind of a pity that there is no support yet for SPA with the HubSpotc chat. We would really appreciate having the chat firing on some pages only of the SPA, and not everywhere.
Thanks for your support ![]()
Hi Guys,
This is kind of a pity that there is no support yet for SPA with the HubSpotc chat. We would really appreciate having the chat firing on some pages only of the SPA, and not everywhere.
Thanks for your support ![]()
Came here to propose the same idea. To explain the issue a bit:
The only workaround we’ve thought of (but chosen not to implement) is to throw in some page refreshes at certain points to trigger the plugin to re-initialise.
Ultimately, this level of inconsistency is blocking us from deploying this plugin.
If a developer is reading this, please check out: GitHub - KidkArolis/location-bar: A microlib for managing browser's location bar via pushState and hashChange APIs. This lib makes it easy to listen to URL changes and update the URL. · GitHub.
OK i found a quite easy (partial) workaround for it. I added a tag in Google Tag Manager that hide/show chat icon depending of new URL fragment. This is easy to implement, but not perfect. I still cannot pass correctly the page URL to HubSpot so i can have different chat behavior depending of the page.
@hubspoteam: how can i potentially pass URL to HubSpot tag using Google Tag Manager? @mwakerman Let me know if you have any idea.
Empty
Hi, great to see this being actioned. Wondering if there is any update? We’re currently holding off going with a different solution because we’d rather stick w/ HubSpot.
We ended up just using Intercom. Would’ve loved to keep using HubSpot but needed this feature and didn’t get an update/timeline.
Please keep us informed about these feature. SPA’s aren’t something isolated and we’ve removed the chat from our software, for the same reasons above. At least, the chat could have an API, so we can show it and hide it based in our router current page.
Hi all- We have created an API to solve this problem. You can find the technical documentation here https://developers.hubspot.com/docs/methods/conversations_api/widget_refresh.
Let me know if you have any feedback!
Thanks!