> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withsurface.com/llms.txt
> Use this file to discover all available pages before exploring further.

# One Click Setup

> Create HubSpot forms from Surface and start syncing partial & complete submissions

export const AddSurfaceDomain = () => <>
    <Frame>
      <img src="/images/hubspot/add-domain/1.png" alt="HubSpot Additional Site Domains settings" />
    </Frame>

    <p>To enable proper tracking and form submissions, add Surface's domain to your HubSpot account:</p>

    <ol>
      <li>In your HubSpot account, navigate to <strong>Settings</strong> → <strong>Tracking & Analytics</strong> → <strong>Tracking Code</strong></li>
      <li>Click on the <strong>Advanced Tracking</strong> tab</li>
      <li>Under <strong>Additional site domains</strong>, click <strong>+ Add domain</strong></li>
      <li>Enter <code>forms.withsurface.com</code></li>
      <li>Click <strong>Save</strong></li>
    </ol>
  </>;

export const oneClickDescription = 'Create HubSpot forms from Surface and start syncing partial & complete submissions';

The One Click Setup automatically creates HubSpot forms (both complete and partial) and starts sending form submissions to HubSpot.

## Step 1: Authenticate with HubSpot

<Frame>
  <img src="https://mintcdn.com/surfacelabs/S5q2pthg_WFbsIHX/images/hubspot/one-click-setup/1.png?fit=max&auto=format&n=S5q2pthg_WFbsIHX&q=85&s=f35891973ca8f232afb85d8cb0c6c0b6" alt="HubSpot authentication in form settings" width="2572" height="1714" data-path="images/hubspot/one-click-setup/1.png" />
</Frame>

1. Go to **Form Settings** → **HubSpot**
2. Click on **Connect HubSpot** if you're not already authenticated
3. Follow the on-screen instructions to authenticate
4. Select your HubSpot organization when prompted
5. Accept the necessary permissions to complete the connection

## Step 2: Add Surface Domain to HubSpot

<AddSurfaceDomain />

## Step 3: Enable HubSpot Sync

<Frame>
  <img src="https://mintcdn.com/surfacelabs/S5q2pthg_WFbsIHX/images/hubspot/one-click-setup/2.png?fit=max&auto=format&n=S5q2pthg_WFbsIHX&q=85&s=6ff351c5c3cafee214e4fc6ca5581f73" alt="Enable HubSpot Sync toggle" width="3004" height="1700" data-path="images/hubspot/one-click-setup/2.png" />
</Frame>

1. Under **HubSpot Connection**, toggle on **Enable HubSpot Sync**
2. Surface will automatically:
   * Create a form in HubSpot for finished submissions
   * Create a form in HubSpot for incomplete submissions
   * Start syncing form submissions to HubSpot

## What Happens Next?

Once enabled, Surface will:

* **Automatically create forms** in your HubSpot account
* **Sync complete submissions** to the complete form
* **Sync partial submissions** to the partial form
* **Handle field mapping** automatically

## Next Steps

* [HubSpot Tracking](/guides/hubspot-forms/configure-tracking) - Configure HubSpot tracking to properly track UTMs, first landing page, and lead sources
