# Automatically adding contacts to HubSpot through external site

**URL:** <https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659>\
**Category:** Lead Capture Tools\
**Tags:** contacts\
**Created:** [October 20, 2021, 5:59pm UTC](https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659 "2021-10-20T17:59:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OTahir3](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@OTahir3](https://community.hubspot.com/u/OTahir3)\
**Post date:** [October 20, 2021, 5:59pm UTC](https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659/1 "2021-10-20T17:59:14Z")

</div>

Hello, I was wondering if the below situation is possible.

The company I am working for is in the process of implementing a new site, where a user can go and sign up for a free trial to our e-commerce platform. We would like to keep track of new users who visit and create an account by having them listed as a new contact on HubSpot, once they have completed their free trial sign up. The sign up site would require the user to fill in information such as ‘Name’, ‘Email’, ‘Phone Number’ , and ‘Company Name’.

This is the flow we were going for:

1. User lands on the free trial sign up site
2. The user fills in all mandatory information and clicks ‘Create Account’
3. The new user is then added as a new contact on HubSpot under the ‘Contacts’ tab, with information such as ‘Name’, ‘Email’, ‘Phone Number’ , and ‘Associated Comapny’ filled in

If anyone can provide guidance on if this situation is possible that would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [October 21, 2021, 10:12pm UTC](https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659/2 "2021-10-21T22:12:09Z")

</div>

Hello @OTahir3 thank you for providing step by step, this is a great question! I want to add a few top experts to share their ideas, @Dan1 @miljkovicmisa any recommendations to @OTahir3?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![miljkovicmisa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miljkovicmisa/32/86357_2.png) [@miljkovicmisa](https://community.hubspot.com/u/miljkovicmisa)\
**Post date:** [October 21, 2021, 10:34pm UTC](https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659/3 "2021-10-21T22:34:56Z")

</div>

Hi @OTahir3 , 👋 @PamCotton , this is absolutely feasible. There are two ways to achieve this.

1. By creating a hubspot form in you hubspot account you can use the embed code that is generate and use it in you website, this will automatically take care of creating the contacts as well as provide other useful data. More info on creating forms [here in this link](https://knowledge.hubspot.com/forms/create-forms)

And [this link](https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site) on how to embed it in you website.

2. This second way is a bit more elaborate but it gives more freedom regarding the form styling, basically you need to create a form with all the fields you need like in the first example but then you create that exact form on your website mapping the field accordingly to your hubspot form, then use ajax to send the form data as a request to the forms API.

You can find all you need for the API [in this link.](https://legacydocs.hubspot.com/docs/methods/forms/submit_form)

Hope I gave you some direction. If you need more assistance don’t hesitate to write.

_ **If my answer was helpful please mark it as a solution.** _

---

<div class="post-metadata">

**Author:** ![OTahir3](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@OTahir3](https://community.hubspot.com/u/OTahir3)\
**Post date:** [October 22, 2021, 2:10pm UTC](https://community.hubspot.com/t/automatically-adding-contacts-to-hubspot-through-external-site/45659/4 "2021-10-22T14:10:45Z")

</div>

Hello @miljkovicmisa and @PamCotton,

Thank you so much, your help is very much apprecaited!
