Tracking on Hubspot chat with Google Tag Manager


#1

Hi
I’m trying to track on how mange users who are opening our chat. We are using Hubspot’s chat tool. But the Tag Manager can’t tag the module - is there anybody who has tried this and have a solution?

I’m trying to tag with the class: reagan–widget-loaded


#2

In Google Tag Manager, I select a Custom HTML tag and paste:

<!-- Start of HubSpot Embed Code -->
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/xxxxxx.js"></script>
<!-- End of HubSpot Embed Code -->

In the HTML section, Then select pageView trigger, and chat widget is working for me.


#3

Hi @Shivraj_Badu, do you know what trigger to use if the chat window is clicked?


#4

Hi @Shivraj_Badu

I also need a trigger when a customer interact with the chat - not only a trigger that checks if the chat is online. Do you have a solution for that?

Best

/Mads


#5

Hi @yudhi.hamzah and @madslemvigh don't have that solution right now.


#6

Hi all,

Does anyone find a solution about how to track Hubspot chat interaction with GTM?

Thanks in advance.

Anaïs


#8

Hi all,

Unfortunately, I have yet to find a solution to this. See this related topic.

I certainly see value in tracking custom interactions with the live chat tool, however. I recommend upvoting and commenting on this HubSpot Community Idea and any other topics which match your use case to help them become realities.

This information is sent directly to our Product team and helps prioritize feature requests that have the greatest impact on our customers. I’ve already upvoted the idea and will continue to pass your feedback along through internal channels.