Skip to main content

Pixel Tracking

How pixel (cookie-based) tracking works in Swaarm - when to use it instead of S2S postback tracking, how to configure it, and how attribution works.

Updated this week

Pixel tracking - also called cookie-based or client-side tracking - attributes conversions using the user's browser rather than a server-to-server postback from the advertiser. A small tracking pixel on the advertiser's conversion page fires back to Swaarm when the user converts.


When to use pixel tracking

Pixel tracking is an alternative to S2S postback tracking. Use it when:

  • The advertiser cannot send server-side postbacks

  • The offer does not involve mobile app installs

  • The end-users are on browsers that support cookies

  • The advertiser's website uses SSL (HTTPS)

⚠️ If a user does not accept cookies in their browser, they cannot be tracked with pixel tracking.


How to configure pixel tracking

  1. Go to Offer → Edit → General tab

  2. Set Attribution Type to Image Pixel

  3. Add the pixel URL to the advertiser's conversion page

Pixel types supported:

Type

How to use

Image Pixel

Standard <img/> tag placed on the advertiser's conversion page

iFrame Pixel

Replace <img/> with <iframe/> - use when the advertiser's page blocks image pixels

Tracking events via pixel:

To track specific conversion events (not just the default install), add our_event_type_id= or event_id= to the pixel tracking URL.


How pixel tracking works

On click

  1. User clicks the publisher's ad

  2. Swaarm records the click and generates a unique click ID

  3. Swaarm stores the click ID in a cookie in the user's browser

  4. Swaarm redirects the user to the advertiser's landing page

On conversion

  1. The user completes the desired action on the advertiser's page (purchase, registration, etc.)

  2. The advertiser's conversion page loads a 1×1 pixel containing the Swaarm conversion URL

  3. The pixel fires - the user's browser sends the session cookie (containing the click ID) to Swaarm

  4. Swaarm matches the click ID from the cookie to the original click and records the conversion

Did this answer your question?