# Prevent to add contact automatic form hubspot tracking code

**URL:** <https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [January 21, 2021, 11:38am UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543 "2021-01-21T11:38:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASavaliya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asavaliya/32/47092_2.png) [@ASavaliya](https://community.hubspot.com/u/ASavaliya)\
**Post date:** [January 21, 2021, 11:38am UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543/1 "2021-01-21T11:38:56Z")

</div>

Hey All,

I use hubspot tracking code and i also set email as identity for hubspot contact.

but when some login my web app and this user are not in hubspot contact.

Then hubspot automatically created contact based on email id.

So i to to prevent this.

Thanks

Ankur Savaliya

---

<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:** [January 21, 2021, 9:28pm UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543/2 "2021-01-21T21:28:25Z")

</div>

Hi @ASavaliya !

I wonder if @Oscar1 or @IvanGil might have some ideas here

---

<div class="post-metadata">

**Author:** ![Oscar1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oscar1/32/56859_2.png) [@Oscar1](https://community.hubspot.com/u/Oscar1)\
**Post date:** [January 22, 2021, 8:15am UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543/3 "2021-01-22T08:15:54Z")

</div>

Hey @ASavaliya , basically you have to [disable “collect data from website forms”](https://knowledge.hubspot.com/forms/use-non-hubspot-forms#:~:text=In%20the%20left%20sidebar%20menu,%2Fdisable%20non%2DHubSpot%20forms.):

 ![36846iA3915FCDA0C6EEA6.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/6/565b7f8a34a80124b7a54840894b1c880f58165e.png)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![ASavaliya](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/asavaliya/32/47092_2.png) [@ASavaliya](https://community.hubspot.com/u/ASavaliya)\
**Post date:** [January 22, 2021, 9:35am UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543/4 "2021-01-22T09:35:17Z")

</div>

Hey @Oscar1

I don’t want to turn off non-hubspot form.So is there any other way to stop this by doing java script in my code.

Thank you

Ankur Savaliya

---

<div class="post-metadata">

**Author:** ![Oscar1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/oscar1/32/56859_2.png) [@Oscar1](https://community.hubspot.com/u/Oscar1)\
**Post date:** [January 22, 2021, 10:15am UTC](https://community.hubspot.com/t/prevent-to-add-contact-automatic-form-hubspot-tracking-code/30543/5 "2021-01-22T10:15:53Z")

</div>

Hey Ankur,

Not sure about this, as I’m not a developer. Something it might work out, if you’ve added the HubSpot tracking code with GTM, you can add an exclusion rule on this page so that the tracking code doesn’t load there. It’s not the cleanest solution but will do the work I reckon.
