Lead Capture Tools

mikeasaunders
Participant | Gold Partner
Participant | Gold Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Hi, I'm hoping you wonderful people can help. 

 

We create events through Facebook and Google API Pixel Integrations through the Hubspot Integrations. However, this does mean that when using form-based events, you have to use a Hubspot form, not a third-party form. 

 

The problem is that we are struggling to find a way to get the HubSpot form to fetch the necessary data points to capture enough data for the Facebook APIs. Specifically, it needs to collect IP addresses, GCLIDs, and FBCLIDs

 

We know how to pull this through other forms but not through HubSpot forms. Any ideas or guidance would be appreciated. 

0 Upvotes
2 Accepted solutions
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Hi @mikeasaunders,

 

HubSpot forms can automatically capture the values of parameters when you adden hidden fields to your form that are named exactly like the parameter: https://knowledge.hubspot.com/forms/pass-contact-property-values-with-hidden-form-fields

 

In your case, you would create single-line text properties for 'gclid' and 'fbclid' and place these in your form as hidden fields. HubSpot should then automatically capture them if they're present in the URL of the browser at the time of submitting the form.

 

For the IP address, please refer to this earlier thread; this would require adjustment of the form javascript embed code: https://community.hubspot.com/t5/Lead-Capture-Tools/Is-there-a-way-to-collect-a-form-submitter-IP-ad...

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

mikeasaunders
Solution
Participant | Gold Partner
Participant | Gold Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Thats great news. Thanks again for your help.

View solution in original post

0 Upvotes
5 Replies 5
mikeasaunders
Participant | Gold Partner
Participant | Gold Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Hi @karstenkoehler , I'm experiencing a weird error where the form appears in an iframe. so the code works on the hubspot landing pages, but not on a wordpress page running elementor (where the iframe issue apprears). Ever experienced this? We have run embedded forms and full html forms. 

0 Upvotes
mikeasaunders
Participant | Gold Partner
Participant | Gold Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Thanks a million. We'll get to work on these suggestions. Reviewing them now makes sense, and I believe they should work to solve our problem. 

 

What I need clarification on, though, is how to instruct the hidden field in the HubSpot From to fetch the correct value in the URL. Is there documentation to help set this up correctly?

 

Thanks

0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

Form Hidden Fields (IP Address ETC)

SOLVE

@mikeasaunders HubSpot does this automatically as long as the spelling in the parameter matches the name of the hidden field. You can try this in any HubSpot form by adding ?email=jane.doe@gmail.com to the URL – and you'll see the email field of the form automatically populated. The same happens for hidden fields and parameters like ?gclid=

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
mikeasaunders
Solution
Participant | Gold Partner
Participant | Gold Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Thats great news. Thanks again for your help.

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Form Hidden Fields (IP Address ETC)

SOLVE

Hi @mikeasaunders,

 

HubSpot forms can automatically capture the values of parameters when you adden hidden fields to your form that are named exactly like the parameter: https://knowledge.hubspot.com/forms/pass-contact-property-values-with-hidden-form-fields

 

In your case, you would create single-line text properties for 'gclid' and 'fbclid' and place these in your form as hidden fields. HubSpot should then automatically capture them if they're present in the URL of the browser at the time of submitting the form.

 

For the IP address, please refer to this earlier thread; this would require adjustment of the form javascript embed code: https://community.hubspot.com/t5/Lead-Capture-Tools/Is-there-a-way-to-collect-a-form-submitter-IP-ad...

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.