Integration to HubSpot using hidden field as identifier not working | Community
Skip to main content
Question

Integration to HubSpot using hidden field as identifier not working

  • February 21, 2022
  • 8 replies
  • 387 views

I have created a survey form with just one visible question and one hidden field that picks up the responder’s HubSpot Contact ID in the URL to identify him/her as an existing contact in HubSpot (I don’t want to use email in the URL due to data privacy). I then select this field in the integration to be used as the identifier when updating existing contacts, so that if the fields match, they will be updated with the answer they gave in the survey question.

 

I did a test on this before going live, and it was working perfectly. However, after it went live, it seems not to work anymore, so I am a bit puzzled. The HubSpot ID is picked up in the responses, so why is Typeform not using it to update existing contacts in HubSpot as it is supposed to?

8 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • February 22, 2022

Hi @Sheila Hansen If the respondent has cookie tracking turned off, this will prevent the data from being collected. Sadly, there’s nothing you can do about this since it’s their right to turn off tracking. Though, if this is happening with all respondents, then it sounds like something might be wrong. 

If this is the case, do you mind sending the URL where you have the form located? 


  • Author
  • Explorer
  • 4 replies
  • February 22, 2022

Hi Liz,

Thank you for your reply. I can indeed accept that if cookie tracking is turned off, I won’t be able to get the data over to HubSpot. This was something I was aware of when doing the setup and testing. However, as it stands right now, I have all respondents with a HubSpot Contact ID in the hidden field being collected from the URL field merge, so no one had cookie tracking turned off.


I have the form located here: https://admin.typeform.com/form/KPLptSEq/create?block=01FT5Q3DD3N4M2R9J743WMHY8E (hope this is the URL you can use to see it)

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • February 24, 2022

Hi @Sheila Hansen I sadly won’t be able to see the URL from the builder panel, but do you mind sending the public URL? Thanks!


  • Author
  • Explorer
  • 4 replies
  • February 25, 2022

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • February 25, 2022

Thanks, @Sheila Hansen ! Do you have the form embedded? If so, could you send that URL? If not, how are you passing the Hubspot data into the Typeform URL? For example, is the URL hyperlinked in an email? 


  • Author
  • Explorer
  • 4 replies
  • February 28, 2022

Hi Liz,
Yes, I have the form embedded into the email. I don’t have a URL for it, but I have the embed code that is pasted into the code editor of HubSpot. Each answer has a URL of its own, which is as follows:

https://form.typeform.com/to/KPLptSEq?typeform-medium=embed-email#hscontactid={{contact.hs_object_id}}&answers-01FT5Q3DD3N4M2R9J743WMHY8E=01FT5Q3DD3TDVDJ5N6J2AZVX1G

https://form.typeform.com/to/KPLptSEq?typeform-medium=embed-email#hscontactid={{contact.hs_object_id}}&answers-01FT5Q3DD3N4M2R9J743WMHY8E=01FT5Q3DD3PT6SHSCPWSKSQT7R

https://form.typeform.com/to/KPLptSEq?typeform-medium=embed-email#hscontactid={{contact.hs_object_id}}&answers-01FT5Q3DD3N4M2R9J743WMHY8E=2be88003-15f4-422f-90b2-de960019ea61


https://form.typeform.com/to/KPLptSEq?typeform-medium=embed-email#hscontactid={{contact.hs_object_id}}&answers-01FT5Q3DD3N4M2R9J743WMHY8E=d1ee31f3-342b-453c-b70e-ec1189cd28c2


https://form.typeform.com/to/KPLptSEq?typeform-medium=embed-email#hscontactid={{contact.hs_object_id}}&answers-01FT5Q3DD3N4M2R9J743WMHY8E=87609ed7-87b6-4b9c-9ce9-98748635ef1a

The HubSpot data is passed into the Typeform URL via a field merge of the ID field in each of these URL’s: {{contact.hs_object_id}}

This is picked up automatically when a contact selects one of the URL’s as his/her answer to the question asked, and this is what I had requested Typeform to use to compare against existing contacts in HubSpot, so that if the fields match, they'll be updated. As it is now, the fields do match, but the contacts in HubSpot are not being updated accordingly.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • February 28, 2022

@kabir.mathur is there anything that might prevent the data from updating in Hubspot correctly? 


This is how the integration setup looks in Typeform:

 


Reply