← Docs

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

ParameterRequiredDescription
offerIdYesMust match the offer from the click cookie
amountNoPayout amount; defaults to offer's payout value
externalIdNoYour unique transaction/lead ID for idempotency

How it works

  1. User clicks a LeadsRefer tracking link. A cookie is set with the click ID and offer/affiliate.
  2. User completes the form. Show a thank-you page that loads the pixel.
  3. 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.