How to set the custom-identifier for the contact

Highlighted
New Contributor

Scenario:
1. Hubspot tracking enabled on our website

2. A visitor filled up the contact form (with email) and submitted it. Here we want to auto-embed our custom-visitor-identifier during the form submission. On contact creation at HubSpot, this the webhook should carry this id to our server to map the visitor at the backend. 

 

How to do this?

Reply
0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

Hey @Ashwin007,

 

Just to clarify, are you looking to pass the custom-visitor-identifier value into HubSpot upon form submission? If so, I'd recommend you to create a custom contact property > On the form submission map the custom-visitor-identifier value to the custom contact property.

 

Hope this helps!

Reply
0 Upvotes
Highlighted
New Contributor

I understand the custom contact property. But this field should get auto-filled and should not be visible to the user. 

 

I mean when the API is invoked to submit the form, this custom-property (backend-user-id) field should be sent along with the other filled fields. 

 

Hope to achieve this? 

Reply
0 Upvotes
Highlighted
HubSpot Moderator

Hey @Ashwin007,

 

In thise case, you can achieve this by setting the form field that set the custom-identifier id to be hidden (Pass contact property values with hidden form fields). 

Reply
0 Upvotes