# Track clicks on 3rd Party Embed?

**URL:** <https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653>\
**Category:** CMS Development\
**Created:** [August 30, 2023, 8:10pm UTC](https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653 "2023-08-30T20:10:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [August 30, 2023, 8:10pm UTC](https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653/1 "2023-08-30T20:10:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 31, 2023, 10:10pm UTC](https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653/2 "2023-08-31T22:10:24Z")

</div>

Hey, @tmcmillan99 👋 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](https://knowledge.hubspot.com/analytics-tools/create-codeless-custom-behavioral-events) may be an option depending on their tier

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

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![albertsg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/albertsg/32/99473_2.png) [@albertsg](https://community.hubspot.com/u/albertsg)\
**Post date:** [September 26, 2023, 5:48pm UTC](https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653/3 "2023-09-26T17:48:21Z")

</div>

Sorry for my late reply! I have not much to add to [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)’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](https://support.google.com/tagmanager/answer/7679219?hl=en) via dataLayer.

---

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [September 29, 2023, 6:43pm UTC](https://community.hubspot.com/t/track-clicks-on-3rd-party-embed/88653/4 "2023-09-29T18:43:47Z")

</div>

@albertsg [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074)

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
