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.
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.
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.
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?
@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
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.