Tracking Overview
Affitor tracking captures the complete customer journey—from the first click on an affiliate link to the final purchase.
How Tracking Works
When a partner shares their affiliate link, Affitor tracks three key events:
| Event | What it captures | When it fires |
|-------|------------------|---------------|
| Click | Visitor arrives via affiliate link | Page load with ?ref= parameter |
| Signup | Visitor registers or submits a form | Your signup form completion |
| Sale | Customer completes purchase | Stripe payment success |
Each event is linked together using tracking cookies, so you always know which partner drove which sale.
The Tracking Flow
Partner gets unique link
https://yoursite.com?ref=PARTNER123
Customer clicks
Affitor script detects ?ref= parameter
Cookie stored
partner_code and customer_code saved (30-day lifetime)
Customer browses
Cookie persists across sessions
Customer signs up
You call trackLead() → linked to partner
Customer purchases
Stripe metadata captures sale → commission created
What You Need to Implement
Three integrations connect your site to Affitor:
| Integration | Purpose | Difficulty | |-------------|---------|------------| | Pageview Tracker | Track clicks from affiliate links | Easy – one script tag | | Lead Tracking | Track signups and registrations | Easy – one function call | | Payment Tracking | Track sales via Stripe | Medium – metadata setup |
Most advertisers complete all three in under 30 minutes.
Attribution
How Attribution Works
Affitor uses last-click attribution with cookie-based tracking.
When a customer clicks an affiliate link:
- Partner code stored in cookie
- Cookie lasts 30 days
- Attribution window is 60 days from first click
- Any purchase within window credits that partner
Attribution Window
Default: 60 days
If a customer clicks a partner's link on January 1st and purchases on February 15th (45 days later), the partner gets credit.
If they purchase on March 5th (63 days later), no attribution—outside the window.
Multiple Clicks
If a customer clicks Partner A's link, then later clicks Partner B's link:
- Partner B gets credit (last-click wins)
- Cookie is overwritten with new partner code
Tracking Data
What Affitor Captures
| Data | Source | Purpose |
|------|--------|---------|
| partner_code | From ?ref= parameter | Identify which partner |
| customer_code | Auto-generated | Link events together |
| program_id | Your program ID | Route to correct program |
| Timestamp | Automatic | When event occurred |
| User agent | Browser | Analytics |
| IP address | Request | Fraud detection |
Cookie Storage
| Cookie | Value | Lifetime |
|--------|-------|----------|
| partner_code | Partner's referral code | 30 days |
| customer_code | Unique visitor ID | 30 days |
Cookies are set automatically by the tracker script. No action required.
Privacy & Compliance
GDPR Considerations
Affitor tracking uses first-party cookies on your domain. You should:
- Include in cookie policy: Mention affiliate tracking cookies
- Cookie consent: If required in your jurisdiction, include in consent flow
- Data retention: Tracking data follows your Affitor program settings
No Third-Party Tracking
Affitor doesn't:
- Use third-party cookies
- Share data with ad networks
- Track users across other sites
Next Steps
Set up tracking in order: