Documentation
Everything you need to track, optimize, and stop losing money on refunds.
Getting Started
Converge tracks clicks and conversions, then dual-fires them to Meta & TikTok via server-side CAPI -- recovering the 15-30% of conversions browser pixels miss.
- Sign up (free, no card) → get your workspace
- Create a campaign and add your offer
- Connect a traffic source, grab the tracking link
- Add your Meta/TikTok CAPI token (see below)
- Drive traffic -- conversions auto-fire to CAPI
Tracking Setup
Point your traffic source to the Converge click URL. Converge redirects to your offer and records the click.
https://your-domain/click.php?campaign={campaign_id}&source={source}&sub1={sub1}
On conversion, your affiliate network fires a postback to:
https://your-domain/postback.php?click_id={click_id}&payout={payout}&txid={txid}
Meta CAPI -- 15 Parameters
Unlike RedTrack (5 params) or BeMob (3), Converge sends all 15 Meta Advanced Matching parameters -- hashed with SHA-256 for privacy:
em, ph, fn, ln, db, ge, ct, st, zp, country,
external_id, client_ip_address, client_user_agent, fbc, fbp
Setup
- In Meta Events Manager → Settings → generate a Conversions API token
- In Converge → Campaign → Meta CAPI → paste Pixel ID + token
- event_id is shared with the browser Pixel for 24h dedup
TikTok CAPI
Same dual-fire model. Server-side events to TikTok Events API with event_id dedup against the browser Pixel.
- TikTok Events Manager → generate Access Token
- Converge → Campaign → TikTok CAPI → paste Pixel Code + token
Refund Write-Back
When a customer refunds, fire a negative-value event to offset the original conversion. The ad algorithm stops optimizing toward refunders. No other major tracker automates this.
POST /api-refund-conversion.php
{
"conversion_id": 12345,
"amount": 49.00,
"reason": "customer_refund",
"type": "refund"
}
This generates a refund adjustment record AND auto-writes the negative event back to Meta/TikTok CAPI.
Postback / S2S
Inbound: your affiliate network → Converge. Outbound: Converge → traffic source + CAPI.
# Inbound conversion from network
GET /postback.php?click_id={ldelim}click_id{rdelim}&payout={ldelim}payout{rdelim}&txid={ldelim}txid{rdelim}
API Reference
Session-authenticated JSON endpoints. Responses use the envelope {ok, data, error}.
| Method | Endpoint | Description | Params |
|---|---|---|---|
| GET | /api/live-stats.php |
Dashboard realtime stats | — |
| GET | /api/attention/roi-alerts.php |
ROI alerts | — |
| POST | /api/bot-mode.php |
Bot detection mode toggle | mode=shadow|block|off |
Self-Hosting
Converge runs on PHP 8.2+ / MySQL 8. Deploy on your own server for full data ownership -- no per-event fees, unlimited volume.
git clone <repo> && cd converge
composer install
# configure config/config.php (DB + APP_KEY)
# point web root to /public
See saas-deployment.md for production setup (Nginx + PHP-FPM + MySQL).
Questions? hello@converge.io · ← Back to home