Dashboard

Partner conversion analytics overview

🤝
Active
Active Partners
👁️
↑ 0%
Total Visits
—%
Conversions
💰
Revenue
Total Revenue
Visits & Conversions
Daily traffic over selected period
Conversion Split
Converted vs not
Partner Performance
Ranked by visits in selected period
Partner Code Status Visits Conversions Conv. Rate Revenue Actions
🔄

Loading partners...

⚡ Live Activity Feed
Real-time tracking events from all partners
Auto-refreshing
📡

No events yet. Embed the tracker script to start receiving data.

🤝 Partner Management
Add and manage your referral partners
Name Email Ref Code Status All-time Visits All-time Conv. Revenue Actions
🔄

Loading...

👥 Visitor Sessions
Recent tracked visitor sessions
Session ID Partner Landing Page Page Views Status Revenue Started
🔄

Loading sessions...

1

Add the Tracking Script

Paste this script tag inside the <head> of every page you want to track. It will automatically detect partner referral codes from the URL.

<!-- PartnerTrack Tracker --> <script src="http://localhost:5000/tracker.js" data-api="http://localhost:5000"></script>
2

Share Partner Links

Each partner has a unique referral code. Share links in this format:

https://yourwebsite.com/?ref=PARTNER_CODE https://yourwebsite.com/?ref=A3F9B2

The tracker script automatically reads the ?ref= parameter and starts a session.

3

Record Conversions from Your Backend

When a purchase is completed, call this API endpoint from your server (e.g. from EassyLife's order controller):

// POST /api/track/convert const response = await fetch('http://localhost:5000/api/track/convert', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sessionId: 'session_id_from_cookie', // OR partnerCode: 'PARTNER_CODE', // fallback orderId: 'ORDER_123', amount: 999.00 }) });

Or from the frontend after checkout:

// Frontend (on purchase success page) window.PartnerTracker?.convert({ orderId: 'ORDER_123', amount: 999 });
4

Test It Works

Add ?pt_debug=1 to any URL to enable console logging from the tracker. You can also test via:

# Test a session start curl -X POST http://localhost:5000/api/track/session \ -H "Content-Type: application/json" \ -d '{"partnerCode":"YOUR_CODE","page":"/home"}' # Test a conversion curl -X POST http://localhost:5000/api/track/convert \ -H "Content-Type: application/json" \ -d '{"partnerCode":"YOUR_CODE","orderId":"TEST_001","amount":500}'