Conversion tracking pixel
Use when the conversion happens in the same browser as the click (e.g. form submit → thank-you page). The cookie set on click is sent with the pixel request.
Endpoint
GET /api/pixel
Query parameters
| Parameter | Required | Description |
|---|---|---|
offerId | Yes | Must match the offer from the click cookie |
amount | No | Payout amount; defaults to offer's payout value |
externalId | No | Your unique transaction/lead ID for idempotency |
How it works
- User clicks a LeadsRefer tracking link. A cookie is set with the click ID and offer/affiliate.
- User completes the form. Show a thank-you page that loads the pixel.
- The browser sends the cookie. If within the attribution window, a conversion is created.
Example (image)
<img src="https://your-app.com/api/pixel?offerId=OFFER_ID" width="1" height="1" alt="" />
Iframe variant
Use when the img tag is blocked. GET /api/pixel/iframe?offerId=xxx&amount=optional&externalId=optional
For server-side conversion, use the Postback API instead.