Documentation Index
Fetch the complete documentation index at: https://architect-d889a35e-dependabot-npm-and-yarn-nx-22-7-0.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you start, make sure you have:- Access to your HubSpot account
- Access to the Architect platform (app.tryarchitect.com)
- A HubSpot form created or ready to create
- Your HubSpot tracking code available
- Complete Steps 1-3 and then share the details with the Architect team in Step 4
How it works
When a visitor lands on your Architect page, the HubSpot tracking script drops a cookie (hutk) on the visitor. When that visitor submits a form, Architect sends the form data along with the tracking cookie to HubSpot via the HubSpot Forms API. HubSpot then associates the submission with the visitor’s browsing activity, giving you full attribution on the contact.
The Architect team will handle the middleware setup to send form submissions into HubSpot on your behalf.
Step 1: Add HubSpot Tracking to Architect Pages
Adding the HubSpot tracking script to your Architect pages allows HubSpot to drop its tracking cookie on visitors. This means when a visitor later submits a form, HubSpot can associate that submission with their full browsing activity and attribute the contact correctly.Copy the HubSpot embed code
In HubSpot, go to Settings, then Tracking & Analytics, then Tracking Code. Copy the Embed Code. It will look something like this:
Step 2: Choose or Create a Form in HubSpot
You need a form in HubSpot to push submissions to via the Forms API. This is where you will see form submissions come into.Select or create a form in HubSpot
In HubSpot, go to Marketing and then Forms. Either select an existing form or create a new one.
Choose your fields
For each field on your form, note the Internal Name — this is how you match the fields with Architect’s form. Click on a field to see its internal name under the property settings.Common default internal names:
| Field | Internal Name |
|---|---|
email | |
| First Name | firstname |
| Last Name | lastname |
Get the form embed code
Once you have your form, click Share and then Embed Code. Copy the embed code — this contains your Portal ID and Form ID, which you will need to connect the form.The embed code will look something like this:The
data-portal-id is your Portal ID and the data-form-id is your Form ID.Step 3: Create a Form in Architect
Step 4: Set Up with Architect
Share the following with the Architect team:- Your form embed code from the HubSpot form (from Step 2)
- The field internal names for that form — these can be found under Connected Property on each form field in HubSpot

