APIs & Integrations

Ashwin007
Membre

How to set the custom-identifier for the contact

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?

0 Votes
3 Réponses
WendyGoh
HubSpot Employee
HubSpot Employee

How to set the custom-identifier for the contact

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!

0 Votes
Ashwin007
Membre

How to set the custom-identifier for the contact

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? 

0 Votes
WendyGoh
HubSpot Employee
HubSpot Employee

How to set the custom-identifier for the contact

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). 

0 Votes