name
attributes matching HubSpot's expected values.To pass UTM data from a Webflow popup form to a HubSpot Contact record, you need to capture the UTM parameters, store them in hidden fields on the form, and ensure those fields map correctly in HubSpot.
Name
(not ID) attributes should match HubSpot's expected names:tag” section or in an Embed element).
localStorage
or sessionStorage
(optional, but helps persist the data across pages or delays).Example (inline logic):
window.location.search
for utm_source=...
[name="utm_source"]
to that value.localStorage
.Important: Avoid using raw <script>
tags inside your form. Use Webflow’s Embed component or placed scripts.
Determine your form submission method:
If embedding a native HubSpot form inside Webflow:
HubSpot will auto-populate its fields if the hidden fields are named correctly and use name
attributes matching HubSpot’s properties.
If using Webflow’s native form:
Set up an integration using Zapier, Make (Integromat), or HubSpot's Forms API.
Ensure the UTM hidden fields are passed along and mapped to HubSpot contact fields.
?utm_source=google&utm_medium=cpc
).To pass UTM data from a Webflow popup form to HubSpot, add hidden fields for each UTM parameter, use custom JavaScript to populate them, and map those fields correctly in HubSpot. Use Zapier or HubSpot’s embedded form for integration if needed.