Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
SPA and live chat ignoring trackingView path
SOLVE
Member
Aug 12, 2019 9:24 AM - edited Aug 12, 2019 11:18 AM
Hi,
We have problem with single page application and selecting chatflow with depends on query parameter. We are not able to fire the proper chatflow.
var _hsq = window._hsq = window._hsq || [];
_hsq.push(['setPath', '/myploys?lang=en']);
_hsq.push(['trackPageView']);
Chat is completly ignoring query paramaters send with _hsq.push(
window.HubSpotConversations.widget.load();
It is still loading bad chatflow.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
1 Accepted solution
Accepted Solutions
Solution
HubSpot Employee
Aug 19, 2019 10:38 AM
Hi, @tomasz.
Thanks for clarifying.
HubSpot live chat widgets use window.location
, so they will not change unless the parameters are in the URL. It is not enough to pass the variables to setPath
and then trigger widget.refresh()
.
Isaac TakushiAlumnus, HubSpot Developer Support |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content