Affiliates overview
Use Plandalf attribution context to carry referral data from campaign links into checkout sessions and invoices.
Affiliate and referral workflows depend on one thing: preserving attribution from the first click through checkout completion.
Attribution path
- A visitor clicks a campaign, partner, or affiliate link.
- The URL includes a reference such as
pf_ref. - The SDK captures the reference and keeps it with the visitor identity.
- Checkout opens with the same visitor and campaign context.
- Purchase events, invoices, webhooks, and integrations can use that context.
Link format
<a href="https://example.com/pricing?pf_ref=partner_123">
View offer
</a>
Checkout with attribution
await plandalf.present("pro-plan", {
metadata: {
partner: "partner_123"
}
});
Related docs
Builder context
Keep building from here.
Use the related Plandalf pages to connect this doc to offers, checkout, timers, integrations, automation, and implementation recipes.