Track clicks on 3rd Party Embed?

One of our clients is using an embed script for a 3rd party chat that specific to their industry. Is there any way in Hubspot to track when the chat widget is clicked?

Thanks,

Terry McMillan

Hey, @tmcmillan99 :waving_hand: Thanks for always having interesting questions. My gut says it would need to be something like:

  • adding a JavaScript event listener to the element that triggers the chat widget to open
  • Google Tag Manager may be an option if they are already using it
  • Custom Behavioural Events may be an option depending on their tier

@MatthiasWeber @albertsg @miljkovicmisa, do you have any additional suggestions for @tmcmillan99?

Thank you! — Jaycee

Sorry for my late reply! I have not much to add to @Jaycee_Lewis’s answer be honest, if Custom Behavioral Events are not an option due to tier limitations, then I would try Google Tag Manager as you can always track custom events via dataLayer.

@albertsg @Jaycee_Lewis

My apologies for not posting this earlier. I ended up talking with the developer and found out there was a setting available for the settings to add the analytics id. If that had not been the case then I would have gone the Google Tag Manager route as suggested.

Thanks,

Terry