# Attribution

> Choose which visit gets the credit when someone converts, becomes a CRM lead or pays you.

A person often visits your site several times before they convert. Attribution
decides which of those visits gets the credit. Your settings apply to the whole
site, and every credited figure in Numbat follows them: conversions, CRM leads
and revenue on Ad Campaigns and Ad Insights, the credit columns on Traffic, and
the people behind each figure in Visitors.

[Open Attribution in Numbat](https://app.numbat.io/go/attribution)

Only a role that can edit site settings can change them. A Workspace Member can
read them.

## Who gets the credit

Each kind of outcome has its own rule, so you can credit revenue differently
from conversions.

| Outcome | What is credited |
|---|---|
| **Conversions** | Each time a visitor completes one of your conversions. |
| **CRM leads** | Each HubSpot contact the first time they reach lead or later. Shows when HubSpot is connected. |
| **Revenue** | Won deals from HubSpot, or payments from Stripe, whichever your site reads. Shows when one is connected. |

Each rule has a model.

| Model | Who gets the credit |
|---|---|
| **First visit** | All of it goes to the visit that first brought the person. |
| **Last visit** | All of it goes to the last visit before the outcome. This is the default. |
| **Even split** | Every visit before the outcome gets an equal share. |
| **First and last** | The first and last visits get 40% each. The visits between share 20%. |

A split model can give a visit part of a conversion, so a row can show 0.5. A
CRM lead is a person, so it always counts as one, on one row.

Turn on **Paid visits only** to credit only visits from your ads. An outcome
with no paid visit before it is then not credited to any campaign. It still
counts in your totals.

## Look-back window

The **Look-back window** is how far back before the outcome a visit can take
credit. Choose 30, 60, 90, 180 or 365 days. The default is 90 days. A longer
window suits a long sales cycle, where the first visit can come months before
the deal.

## Excluded sources

An excluded visit never takes credit. The outcome still counts and goes to the
other visits under the same rule.

Under **Channels**, choose the channels to exclude. **Direct** is excluded by
default, so a person who comes back by typing your address does not take the
credit from the ad that first brought them. Paid channels cannot be excluded.

Under **Sources**, type a source and choose **Add source**. A source matches a
visit's `utm_source`, or the site that sent the visit and any of its
subdomains. Add `stripe.com` and a visitor coming back from
checkout.stripe.com after paying does not take the credit for the payment.

When every visit before an outcome is excluded, the last visit gets the credit,
so no outcome is lost.

## When your figures change

Choose **Save** on the card you changed. Each card saves on its own. Every
figure follows the new settings the next time it loads, including past dates.
Numbat stores no credit per conversion, so you can change your mind and change
back at any time.

## Related

- [Tag your ads](/docs/tracking/tag-your-ads)
- [HubSpot](/docs/integrations/hubspot)
- [Stripe](/docs/integrations/stripe)
