# Does tracking code API create automatically Marketing Contact?

**URL:** <https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [April 11, 2024, 3:24pm UTC](https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610 "2024-04-11T15:24:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [April 11, 2024, 3:24pm UTC](https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610/1 "2024-04-11T15:24:07Z")

</div>

Hello,

Does the [Tracking code API](https://developers.hubspot.com/docs/api/events/tracking-code) create automatically marketing contacts? I don’t manage to find in the documentation the answer.

Best regards

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [April 11, 2024, 7:39pm UTC](https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610/2 "2024-04-11T19:39:14Z")

</div>

Hi @yoLotus,

That really depends on how it is setup.

If you are using the tracking script on a non-HubSpot website and you are not using HubSpot forms, please check these [docs](https://knowledge.hubspot.com/forms/use-non-hubspot-forms) on how to setup non-HubSpot form tracking.

If you are using HubSpot forms, you can update the settings per form to determine if the form should create marketing contacts.

---

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [April 12, 2024, 9:16am UTC](https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610/3 "2024-04-12T09:16:18Z")

</div>

Hello Teun,

thanks for your reply and quick answer,

I just want to use the js SDK and call the _trackPageView_ js function in a single page app. I’ve managed to activate Markeking Hub for testing purpose in a test account, I’ll do my test this way to see.

have a good day 🙂

---

<div class="post-metadata">

**Author:** ![yoLotus](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yoLotus](https://community.hubspot.com/u/yoLotus)\
**Post date:** [April 12, 2024, 9:49am UTC](https://community.hubspot.com/t/does-tracking-code-api-create-automatically-marketing-contact/104610/4 "2024-04-12T09:49:31Z")

</div>

Hello again Teun,

Apparently the SDK is creating on the fly a non Hubspot form when a visitor is identified and creating as contact in Hubspot. So I may need to follow the doc you provided.

thanks you,

best regards
