How to check if chat widget is available (timeframe set)?
Hello everyone!
We have a chat widget on our website which works totally fine. In the HubSpot settings, we've set a specific timeframe in which this widget is visible on our website (09:00 - 17:00). Outside of this timeframe, the widget is hidden. Now, we've built custom buttons we're using on our website that opens the chat on button press, via the open()-function. But if a visitor visits our website in the evening, for example at 19:00, the chat is not available and so a button has no functionality. Unfortunately, I can't find any possibility to check the timeframe set in HubSpot with which I could hide the buttons in case the chat widget is hidden (= outside of set time the chat is available). Is there any way for doing that? Or is there any way I could check if the widget itself is loaded and really visible?
Unfortunately, it's not solving my issue. The var `hubspot_live_messages_running` also returns `true` if the chat is hidden (= off hours as defined in HubSpot).
In the object `HubSpotConversations`, I can't see anything that really helps me since the chat-widget itself is loaded in the background but not shown since it's off-hours.
Additionally, thank you for taking time to lay out what you've tried and the roadblocks and limitations you are facing. It helps the community so much when trying to offer suggestions.
Best,
Jaycee
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.