Forms and tracking setup

Wix HubSpot Integration

Embed HubSpot forms on Wix or plan a native form connection, then test contact fields, automation and tracking. Follow the setup guide while keeping your website in Wix.

How to embed a HubSpot form on Wix

For direct HubSpot lead capture, embed a HubSpot form in the Wix page. If you need to retain a Wix form, define a separate connector or submission integration rather than treating the two forms as interchangeable.

1. Prepare the destination

Set the fields, contact properties and success message in HubSpot. Add the external domain in tracking settings and copy the embed code from the form’s publishing options.

2. Add the visible form

In Wix Editor, use Add Elements, Embed Code and Embed HTML. Paste the HubSpot form snippet and adjust the embed container. Dashboard Custom Code is for invisible snippets and is not the place to display the form.

3. Test the published page

Confirm the form loads over HTTPS, its fields remain visible on mobile and a test submission reaches the intended HubSpot account. Test the success message or redirect inside the actual embedded frame.

Wix HTML embeds use iframes, so size and navigation behavior need explicit checks. See Wix’s embedding instructions. Test the public page rather than relying on the editor preview.

Connect a Wix form or automation to HubSpot

If the native Wix form must stay, select a connector or custom integration that supports its submission event. Map email and the required contact properties, define what happens for an existing contact, and test failures and retries. Confirm whether the destination action records a form submission or only updates a contact; these are different outcomes for reporting and follow-up.

Check tracking on the top-level site

A snippet inside a form iframe does not establish tracking across the Wix site. Use a supported site-level installation route and verify it on a published site with a connected domain. Review Wix’s Custom Code guidance and HubSpot’s tracking instructions; Wix notes that some third-party snippets can be affected by frontend security restrictions.

Troubleshoot the complete lead journey

Form missing or clipped

Check the published page, embed placement, container dimensions and browser errors. Test without an extension blocking scripts and repeat on a mobile device.

Contact or fields missing

Verify the account, form and property mapping. Check spam submissions and connector logs. Test one new contact and one repeat submission separately.

Visits or follow-up missing

Check tracking and consent independently from contact capture. Confirm the intended workflow or notification is available in your subscription and enabled for the tested event.

Use the official HubSpot external form guide for embed and domain requirements and the tracking installation guide for analytics checks.

When Wix HubSpot integration is enough

Lead capture

Integration can be enough when Wix forms only need to send contacts into HubSpot and trigger simple follow-up.

Tracking

HubSpot tracking can help connect website visits and submissions to contacts while the public site stays in Wix.

Simple site operations

If the Wix site is small, easy to maintain, and not creating SEO or editing problems, integration may be the lighter path.

When to migrate Wix to HubSpot instead

A Wix to HubSpot migration makes more sense when the team needs cleaner templates, stronger CRM alignment, SEO-safe redirects, and easier marketing ownership inside HubSpot CMS.

Need help scoping the website handoff?

Share your current site and form requirements through the contact form, or explore the migration resources before deciding on a CMS move.