# JS tracking code: How to avoid registering unrelevant forms

**URL:** <https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825>\
**Category:** APIs & Integrations\
**Tags:** sdk\
**Created:** [December 7, 2020, 9:35am UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825 "2020-12-07T09:35:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Belibaste](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/belibaste/32/31184_2.png) [@Belibaste](https://community.hubspot.com/u/Belibaste)\
**Post date:** [December 7, 2020, 9:35am UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/1 "2020-12-07T09:35:41Z")

</div>

Hello,

I have the JS tracking code set up on my public website (handle by my own code), on the private part (same code/url than public) and the blog (handle by Hubspot). I use the chat and tracking.

On public site and private chat, I use tracking code for the chat feature. On the private side, the chat feature is used as support chat. Problem is that for example when a user connect to his account, he use the email + password form, which is registered by Hubspot, I don’t want that happening. Same thing for all the forms in the private part of the site.

Is there a way to prevent the JS tracking code form listening to form submit event ? Maybe all at once or just some forms ?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 8, 2020, 2:20am UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/2 "2020-12-08T02:20:49Z")

</div>

Hey @Belibaste !

Welcome to the forums!

I want to introduce you to this guy who is a freaking rock star (don’t tell him I said that) @tjoyce

Sir, how would you go about this?

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [December 8, 2020, 3:08pm UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/3 "2020-12-08T15:08:45Z")

</div>

@dennisedson - you’re the real rockstar here… but I still want my chicken parm

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [December 8, 2020, 3:08pm UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/4 "2020-12-08T15:08:20Z")

</div>

Hi @Belibaste - This solution by @garrett9 seems the most promising.

[https://community.hubspot.com/t5/Lead-Capture-Tools/Ignore-a-specific-non-Hubspot-form-from-being-collected/td-p/246957](https://community.hubspot.com/t5/Lead-Capture-Tools/Ignore-a-specific-non-Hubspot-form-from-being-collected/td-p/246957)

Garrett, do you know if this workaround is still valid?

---

<div class="post-metadata">

**Author:** ![garrett9](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/garrett9/32/62359_2.png) [@garrett9](https://community.hubspot.com/u/garrett9)\
**Post date:** [December 8, 2020, 3:51pm UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/5 "2020-12-08T15:51:15Z")

</div>

Still using it currently, so yep!

---

<div class="post-metadata">

**Author:** ![Belibaste](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/belibaste/32/31184_2.png) [@Belibaste](https://community.hubspot.com/u/Belibaste)\
**Post date:** [December 9, 2020, 10:36am UTC](https://community.hubspot.com/t/js-tracking-code-how-to-avoid-registering-unrelevant-forms/28825/6 "2020-12-09T10:36:06Z")

</div>

Hi

Thank you for your answers. I have find this which is exactly what I needed, thanks to @tjoyce : [Use non-HubSpot forms](https://knowledge.hubspot.com/forms/use-non-hubspot-forms#enable-or-disable-non-hubspot-forms)
