# Affiliates overview
Use Plandalf attribution context to carry referral data from campaign links into checkout sessions and invoices.
Source: /docs/affiliates/overview
Last modified: 2026-06-18
Affiliate and referral workflows depend on one thing: preserving attribution from the first click through checkout completion.

## Attribution path

1. A visitor clicks a campaign, partner, or affiliate link.
2. The URL includes a reference such as `pf_ref`.
3. The SDK captures the reference and keeps it with the visitor identity.
4. Checkout opens with the same visitor and campaign context.
5. Purchase events, invoices, webhooks, and integrations can use that context.

## Link format

```html
<a href="https://example.com/pricing?pf_ref=partner_123">
  View offer
</a>
```

## Checkout with attribution

```js
await plandalf.present("pro-plan", {
  metadata: {
    partner: "partner_123"
  }
});
```

## Related docs

- [Affiliate attribution](/docs/affiliates/attribution)
- [CTA links and redirects](/docs/timers/cta-links)
- [Live events](/docs/sdk/events)