Connect HubSpot Forms to your website.
You create the form in HubSpot and hand your MetriFi agent its embed code. Answers then go from your website straight into HubSpot as contacts.
Updated Tested hands-on
Five steps in HubSpot.
-
Create the form
Go to Marketing > Forms (opens HubSpot in a new tab) > Create form, and choose Start from blank. It already has First Name, Last Name and Email. Add Phone Number from Add (+) > Properties, then rename the form.
-
Leave reCAPTCHA off
When you click Review and update, HubSpot suggests turning on reCAPTCHA. Leave it off: with reCAPTCHA on, HubSpot refuses every answer sent from your website. Click Update to publish.
-
Choose who gets notified
In the form’s Settings > Submission settings, pick who gets an email for each answer. Only HubSpot users can be picked.
-
Add your website’s domains, then click Save
Go to Settings (opens HubSpot in a new tab) > Tracking & Analytics > Tracking code > Advanced Tracking > Additional site domains > Add domain. Add your live domain, such as www.examplecu.org, and the preview domain your MetriFi contact gives you. Then click Save in the bar at the bottom of the page. The domain shows in the list as soon as the Add dialog closes, but HubSpot keeps it only after Save. Until then, every answer goes to the form’s Spam tab while your visitor still sees Thank you. See HubSpot’s help on site domains (opens HubSpot’s help in a new tab).
-
Copy the embed code
After you publish, choose Get embed code and copy the two lines. They hold your portal ID and form ID. You will paste them into the prompt below; your page will not use HubSpot’s embed. HubSpot labels this way of sending answers from your own page “legacy”: it works today, and we’ll update this guide if HubSpot changes it.
One prompt, no login.
Fill in the parts in angle brackets and paste it to your agent. Do not send your HubSpot password or a key.
Please connect a form on our website to our HubSpot form. Build it as a headless form on our site (no HubSpot embed script, no HubSpot key or login). The visitor's browser should send the answers straight to HubSpot. Page: <page path, for example /contact/> Our HubSpot embed code (it holds our portal ID, form ID and region): <paste the two lines from HubSpot > Forms > your form > Share > Get embed code> Fields on the HubSpot form, with HubSpot's internal names: - First Name (firstname) - Last Name (lastname) - Email (email), required - Phone Number (phone) <for any custom field, give its internal name from Settings > Data Management > Properties> Thank-you text to show after a successful send: <your text> Spam settings we have checked in HubSpot: - reCAPTCHA is NOT added to this form (HubSpot refuses website submissions to a form with reCAPTCHA). - These domains are listed and saved under Settings > Tracking & Analytics > Tracking code > Advanced Tracking > Additional site domains: <your live domain, for example www.examplecu.org>, <the preview domain MetriFi gives you>. Collect only the fields above.
Send a test form submission.
Send a test from the preview page MetriFi gives you. It should show under Contacts (opens HubSpot in a new tab) and in the form’s Submissions, and the notification email should arrive. In our test each one took 4 to 5 seconds.
Three things we hit.
- Answers are missing, or sit in the Spam tab. Your website’s domain is not listed and saved (step 4). Save it. In our test, HubSpot then released the recent blocked answers from that domain on its own, and you can also release them by hand.
- Every send fails with FORM_HAS_RECAPTCHA_ENABLED. The form has reCAPTCHA on, and HubSpot keeps nothing, not even in Spam. Remove reCAPTCHA from the form and publish it again.
- A field is blank in HubSpot. Field names must match HubSpot’s internal names, such as firstname or phone. HubSpot does not report a wrong name; the value just does not reach the contact. Check the names in your prompt.