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

# Track HubSpot form conversions

> Attribute affiliate conversions automatically when a tracked visitor submits a HubSpot form.

{/* Many referral conversions are simply a HubSpot form submission. Reach for this method when your
  conversion is a HubSpot form and you would rather not write any code: with the tracking snippet
  in place, a submission from a tracked visitor is attributed automatically. No embed-code
  changes, and it works for both classic and v4 HubSpot forms. */}

## What you'll achieve

A campaign that records a conversion automatically whenever a visitor who arrived from a partner's link submits a HubSpot form, attributing it to that partner with no code and no per-form configuration.

## Before you start

<Steps>
  <Step title="Install the tracking snippet">
    HubSpot tracking is driven by the same snippet as every other method. Install it in the `<head>` of the page that hosts the HubSpot form. See [Set up affiliate conversion tracking](./set-up-affiliate-conversion-tracking).
  </Step>

  <Step title="Confirm the form page is an allowed origin">
    The site hosting the form must be listed under **Allowed origins** on the campaign's **Install** tab (or allowed origins left empty). Submissions from other origins are rejected.
  </Step>
</Steps>

## Watch it

<Tabs>
  <Tab title="Video">
    <video controls playsInline preload="none" poster="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/01.png?v=1783329249" className="w-full rounded-xl" src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/video.webm?v=1783329249#t=2.5" />
  </Tab>

  <Tab title="Click through">
    <iframe className="w-full rounded-xl" style={{ width: "100%", aspectRatio: "16 / 11", border: 0, backgroundColor: "#FAFAFA" }} src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/walkthrough.html?v=1783329249" />
  </Tab>
</Tabs>

## Steps

<Steps>
  <Step title="Open the Install tab">
    Go to [Affiliate campaigns](https://app.introw.io/campaigns), open your campaign, and select the **Install** tab.

    <Frame>
      <img src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/03.png?v=1783329249" alt="Open the Install tab" />
    </Frame>
  </Step>

  <Step title="Confirm the snippet is installed on the form page">
    Make sure the tracking snippet is in the `<head>` of the page where the HubSpot form is embedded. The install status pill reads **Installed** when Introw detects it on your destination URL. The snippet both tracks the click and listens for HubSpot form submissions, so no embed-code changes are needed.

    <Frame>
      <img src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/04.png?v=1783329249" alt="Confirm the snippet is installed on the form page" />
    </Frame>
  </Step>

  <Step title="Review the HubSpot forms method">
    Under **Track conversions**, expand **HubSpot forms**. There is nothing else to set up: once the snippet is installed, every HubSpot form submission on an allowed origin is attributed automatically. The same snippet handles both classic and v4 HubSpot forms.

    <Frame>
      <img src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/05.png?v=1783329249" alt="Review the HubSpot forms method" />
    </Frame>
  </Step>

  <Step title="Set allowed origins for the form page">
    Under **Allowed origins**, confirm the site hosting the form is listed (comma-separated), so its submissions are accepted. Leave the field empty only if you intend to allow any origin. Select **Save**.

    <Frame>
      <img src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/06.png?v=1783329249" alt="Set allowed origins for the form page" />
    </Frame>
  </Step>

  <Step title="Test a tracked submission">
    Click a partner's referral link to set the click cookie, navigate to the page with the HubSpot form, and submit it. The submission must happen inside the campaign's attribution window after the tracked click for it to attribute.

    <Frame>
      <img src="https://assets.introw.io/docs/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions/steps/07.png?v=1783329249" alt="Test a tracked submission" />
    </Frame>
  </Step>
</Steps>

## Verify it worked

The test submission appears on the campaign's **Conversions** tab attributed to the partner whose link you clicked, with the email from the form. From then on, real HubSpot form submissions from referred visitors record the same way with no further work.

## Related

<CardGroup cols={2}>
  <Card title="Set up affiliate conversion tracking" icon="book-open" href="./set-up-affiliate-conversion-tracking">
    Install the snippet and verify conversions.
  </Card>

  <Card title="Record conversions via the API" icon="book-open" href="./record-conversions-via-the-api">
    Use server-to-server tracking instead.
  </Card>

  <Card title="Implementation reference" icon="screwdriver-wrench" href="../technical">
    Full configuration options.
  </Card>
</CardGroup>
