# Chat tracking code not working

**URL:** <https://community.hubspot.com/t/chat-tracking-code-not-working/116937>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** chat\
**Created:** [September 24, 2024, 9:55am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937 "2024-09-24T09:55:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BikeRunner](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bikerunner/32/2679_2.png) [@BikeRunner](https://community.hubspot.com/u/BikeRunner)\
**Post date:** [September 24, 2024, 9:55am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/1 "2024-09-24T09:55:30Z")

</div>

Hi,

I have created a new Chatflow, and the targeting rules are correctly set up to the domain, and I have installed it on the domain. But it is not showing.

The domain I want it to show on, is not my main domain set up in the Hubspot account - is that the reason it is not showing? Meaning I will have to set this new domain up as a brand domain in the Hubspot account for the chatflow/script to work, or what?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 24, 2024, 10:08am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/2 "2024-09-24T10:08:35Z")

</div>

Hi @BikeRunner,

Is the tracking code installed on that domain? That’s the main requirement. [Install the HubSpot tracking code](https://knowledge.hubspot.com/reports/install-the-hubspot-tracking-code)

Best regards

---

<div class="post-metadata">

**Author:** ![BikeRunner](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bikerunner/32/2679_2.png) [@BikeRunner](https://community.hubspot.com/u/BikeRunner)\
**Post date:** [September 24, 2024, 11:36am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/3 "2024-09-24T11:36:53Z")

</div>

Yes it is - and my webmaster says it should be installed correctly etc. But it is not showing on the site, which is why I am thinking it must be something like that that we are missing?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 24, 2024, 11:38am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/4 "2024-09-24T11:38:45Z")

</div>

@BikeRunner this article has step by step troubleshooting instructions: [Troubleshoot chat widget not appearing on website pages](https://knowledge.hubspot.com/chatflows/chat-widget-is-not-appearing-on-your-pages) – could you please go through these and report back?

Just to rule out the obvious, you have tested other devices and browsers, without any extensions, and cleared cache and cookies, and it’s not working there either?

---

<div class="post-metadata">

**Author:** ![BikeRunner](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bikerunner/32/2679_2.png) [@BikeRunner](https://community.hubspot.com/u/BikeRunner)\
**Post date:** [October 3, 2024, 9:10am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/5 "2024-10-03T09:10:08Z")

</div>

Hi again Karsten,

We have still not solved this issue even though we of course have been through the obvious. But what I am hoping to get a straight answer on, is - does the domain where the chat tracking code is implemented have to be set as a “brand domain” for the Hubspot account, for the code to work on that domain - or no? Hope you know the answer to this..

Best Kajsa

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [September 24, 2024, 10:13am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/6 "2024-09-24T10:13:03Z")

</div>

Hi @BikeRunner

Could you maybe specify which domains you are talking about and include screenshots of your chatflow targetting rules? The more detailed the information you can share the more likely someone here will be able to help you.

As a starter for 10 have you checked either of these articles:

- [Chat widget not appearing on website pages](https://knowledge.hubspot.com/chatflows/chat-widget-is-not-appearing-on-your-pages)
- [Troubleshoot the HubSpot tracking code](https://knowledge.hubspot.com/reports/how-do-i-know-if-my-hubspot-tracking-code-is-working)

Cheers

Frank

---

<div class="post-metadata">

**Author:** ![BikeRunner](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bikerunner/32/2679_2.png) [@BikeRunner](https://community.hubspot.com/u/BikeRunner)\
**Post date:** [September 24, 2024, 11:46am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/7 "2024-09-24T11:46:02Z")

</div>

Hi Frank,

Yes - the tracking code is installed on flattire.nl, and I can see it in the source code just before the \</body\> tag. And this is the settings of the chatflow targeting:

 ![BikeRunner_0-1727177942468.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/7/e7469c6816dabc7391f844e9a541508c479d95af.png)

But our brand-domain in hubspot is bikerunner.dk - and not flattire.nl (I cant seem to add more because I have a free version… ) - so I was thinking that was the reason? But it doesnt quite make sense then that you are able to type in another url for the targeting, if it - for that reason - will not work anyways… ? Then it should have been “locked” to only adding the brand domain, I think?

---

<div class="post-metadata">

**Author:** ![BikeRunner](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bikerunner/32/2679_2.png) [@BikeRunner](https://community.hubspot.com/u/BikeRunner)\
**Post date:** [October 3, 2024, 9:11am UTC](https://community.hubspot.com/t/chat-tracking-code-not-working/116937/8 "2024-10-03T09:11:40Z")

</div>

Hi again Frank,

We have still not solved this issue even though we of course have been through the obvious. But what I am hoping to get a straight answer on, is - does the domain where the chat tracking code is implemented have to be set as a “brand domain” for the Hubspot account, for the code to work on that domain - or no? Hope you know the answer to this..

Best Kajsa
