How to prevent creating contact through Tracking code identity
Hi All,
I am using tracking code for track this visitor, but when I am set identity as user email and fire 'trackPageView' event then this event create new hubspot contact, so I want to prevent this.
How to prevent creating contact through Tracking code identity
I found the answer in another thread, despite this thread showing up higher in SEO:
NonHS Forms on website(s) are automatically creating Contacts - How to stop?
This is probably because you are using ourNon HubSpot Forms tool. You can toggle that off inSettings > Marketing > Forms > Non HubSpot Forms. You have more information on this in the following article:
This is a all-or-nothing tool. You cannot select some external forms but not the others. If this is something you really want to do, I'd advise to use ourForms API.
How to prevent creating contact through Tracking code identity
@ASavaliya HubSpot's tracking script will automatically track page visits for you without trying to re-invent the wheel. You shouldn't need to use the identify call at all.
Nov 15, 202111:24 AM - edited Nov 15, 202111:25 AM
Top Contributor | Diamond Partner
How to prevent creating contact through Tracking code identity
@ASavaliya The identity API will always create a contact if an existing record for that email address does not exist in the system. That behavior cannot be changed.
If you don't want to create contacts unless they interact with webforms - I would not suggest using the identity API. Most HubSpot installations don't need to make use of the identify API to properly track user interactions.
I am trying to track my website visit count with the identity of the user email. So I set identity while the user visits a page. So when I set identity then it will check in Hubspot to identify contact, if this email is not found In Hubspot then it will create contact, So I want that if contact is not found in HubSpot it track as an anonymous user and don't create a new contact.