Every partner shares a tracked link that looks like https://traaaction.com/s/{slug}. Here's what happens when someone clicks it.
- Middleware catches the request and looks up the slug in Redis.
- A Click ID is generated — format
clk_<timestamp>_<hex>. - A cookie is set for 90 days:
trac_click_id. - The click is logged to Tinybird for analytics.
- The user is redirected to the target URL (your product page, your signup page, whatever the partner chose).
- Your SDK (or a manual metadata field in Stripe Checkout) carries
click_idinto every event. That's how Traaaction ties a sale back to the partner.
First-click attribution
Attribution is first-click and never overwritten. Once a click ID is set on a customer, any later click from another partner is ignored.
Where the click ID comes from in webhooks
Priority:
session.metadata.tracClickIdsession.client_reference_id- Stripe
Customerlookup (for renewals)
If none of those exist, no commission is created. This is why passing tracClickId in your Stripe Checkout metadata is required.