JS conversion pixel

The JS pixel reports a conversion from the visitor's browser. Use it when you own the thank-you page.

2 min readUpdated 11 November 2026

What it is

The JS pixel is a small piece of code you put on a page that a visitor sees after converting, such as a thank-you page. When the page loads, the code tells TrafficTaps that a conversion happened.

Why it matters

Postbacks are more reliable, but a network may not offer them, or you may sell your own product on your own page. The pixel covers those cases. Ad blockers and cookie blocking can stop a pixel from firing.

Step by step

  1. Open the tracking code

  2. Paste it on the thank-you page

    Add the code to the page shown after a conversion, not to every page. Set the event and, if you know it, the payout and transaction ID.

  3. Make sure the click ID is available

    The pixel needs to know which visit the visitor came from. It uses the cookie set on the first visit. If the thank-you page is on another domain, pass cid={clickid} through the funnel.

  4. Test

    Open your tracking link, go through the funnel and reach the thank-you page. The conversion should show in Reports.

Example

The pixel code itself is shown in the app. This example only shows the idea:

Idea only (copy the real code from the app)
<script src="..."></script>  <!-- your pixel code from the TrafficTaps app -->

Common mistakes

  • Putting the pixel on every page. Each page view would count as a conversion.
  • Reloading the thank-you page while testing. Use a unique transaction ID so it is not counted twice.
  • Using a pixel when a postback exists. The postback is more reliable.

Stuck? Write to support@traffictaps.com with your campaign name and a sample click ID.