> ## 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.

# Conversion Tracking

> Install the tracking snippet, record conversions via the API or HubSpot forms, and review conversions in Introw.

**Open in Introw:** [Affiliate campaigns](https://app.introw.io/campaigns)

## How it works

A campaign records conversions in one of three ways. The browser snippet drops a tracking script on
your destination site that fires a conversion event when a visitor completes the goal. The
conversions API lets you record a conversion server to server, which is the most reliable method.
HubSpot form tracking captures conversions when a tracked visitor submits a connected HubSpot form.

Each conversion is matched to the partner's click within the attribution window and shown on the
conversions tab with partner, value, and status. The install tab holds the snippet, the conversion
method, and the allowed origins for browser tracking.

```mermaid theme={"theme":{"light":"github-light","dark":"github-dark"}}
flowchart LR
  sources["Snippet, API, or HubSpot form"] --> introw["Introw"]
  introw --> attribute["Attributed to the partner"]
  attribute --> record["CRM record and commission line"]
```

## Prerequisites

* A campaign with a conversion form and partners enrolled.
* Access to install a snippet on the destination site, or to call the API.
* For HubSpot tracking, a connected HubSpot integration.

## Settings & configuration

Tracking is configured on the campaign's install tab at [Affiliate campaigns](https://app.introw.io/campaigns).

### Tracking snippet

Copy the snippet from the install tab and add it to the destination site so clicks and conversions
are recorded in the browser.

### Allowed origins

Set the origins permitted to send browser conversion events, so only your sites can record
conversions.

### Conversions API

Use the conversions API to record conversions server to server, passing the tracking reference so
the conversion is attributed to the right partner.

### HubSpot form tracking

Connect a HubSpot form so a submission from a tracked visitor records a conversion automatically.

## Setup walkthrough

<Steps>
  <Step title="Open the install tab">
    On the campaign, open the install tab at [Affiliate campaigns](https://app.introw.io/campaigns).
  </Step>

  <Step title="Choose a method">
    Pick the snippet, the API, or HubSpot forms.
  </Step>

  <Step title="Install it">
    Add the snippet, wire the API, or connect the form.
  </Step>

  <Step title="Set allowed origins">
    Restrict browser tracking to your sites.
  </Step>

  <Step title="Test a conversion">
    Drive a test conversion and confirm it appears.
  </Step>
</Steps>

## How-to guides

<CardGroup cols={2}>
  <Card title="Record conversions via the API" icon="book-open" href="/features/affiliate/conversion-tracking/guides/record-conversions-via-the-api">
    Track affiliate conversions server to server by posting to the conversions API with a scoped secret key.
  </Card>

  <Card title="Set up affiliate conversion tracking" icon="book-open" href="/features/affiliate/conversion-tracking/guides/set-up-affiliate-conversion-tracking">
    Install the tracking snippet, restrict allowed origins, verify a test conversion, and review conversions in Introw.
  </Card>

  <Card title="Track HubSpot form conversions" icon="book-open" href="/features/affiliate/conversion-tracking/guides/track-hubspot-form-conversions">
    Attribute affiliate conversions automatically when a tracked visitor submits a HubSpot form.
  </Card>
</CardGroup>

## Limits & gotchas

<Warning>
  Browser tracking only fires from allowed origins, so a conversion from an unlisted domain is ignored. Server to server tracking via the API is the most reliable method when you control the backend. A conversion only attributes if it falls inside the campaign's attribution window after a tracked click.
</Warning>

## Troubleshooting

* **Conversions are not recording** - the snippet is missing, or the origin is not allowed.
* **A conversion is unattributed** - it arrived outside the attribution window.
* **HubSpot conversions are missing** - the form is not connected, or the visitor was not tracked.
