Pixels are browser side tracking. They are the correct and only option for opt ins, and a reasonable option for carts that have no server to server callback. They are the wrong choice for WarriorPlus and JVZoo sales.
The Lead Pixel:
Place this on your opt in confirmation or thank you page. It reads wct_click_id from the URL, stores it in localStorage so it survives a multi page funnel, then fires a lead conversion. It works across domains. <script> (function(){ var p = new URLSearchParams(window.location.search); var cid = p.get('wct_click_id') || window.localStorage.getItem('wct_click_id') || ''; if (cid) window.localStorage.setItem('wct_click_id', cid); var img = new Image(); img.src = "https://yoursite.com/?wct_postback=1&type=lead" + (cid ? "&click_id=" + cid : ""); img.style.display = "none"; (document.body || document.documentElement).appendChild(img); })(); </script>
The Same Site One Line Pixel:
Use this only when the tracking link and the thank you page are on the same domain. The browser cookie carries the click ID for you, so no JavaScript is needed. <img src="https://yoursite.com/?wct_postback=1&type=lead" width="1" height="1" style="display:none" alt="" /> It is simpler to maintain, but it will not work across domains.
The Sale Pixel:
Use this only for non marketplace setups: custom carts, free downloads you want to log as a zero value sale event, or platforms with no IPN support at all. Replace the amount with your real sale value or the platform's dynamic amount token. <script> (function(){ var p = new URLSearchParams(window.location.search); var cid = p.get('wct_click_id') || window.localStorage.getItem('wct_click_id') || ''; if (cid) window.localStorage.setItem('wct_click_id', cid); var amount = 47; var img = new Image(); img.src = "https://yoursite.com/?wct_postback=1&type=sale&amount=" + amount + (cid ? "&click_id=" + cid : ""); img.style.display = "none"; (document.body || document.documentElement).appendChild(img); })(); </script>
Dynamic Amount Tokens:
When the price varies, substitute the platform's own token instead of a fixed number.
- Fixed price: just the number, for example 47.
- JVZoo: %ctransamount%
- WarriorPlus: {w+amount}
- ClickBank: {{amount}}
- Stripe, ThriveCart and SamCart: use that platform's own dynamic amount variable.
The Optional JavaScript Helper:
If you prefer function calls to building the image request yourself, load the bundled library and call the helpers. <script src="https://yoursite.com/wp-content/plugins/wp-conversion-tracker/public/wct-tracking.js"></script> <script> wctLead(); wctSale(47.00); </script> The library is entirely optional. The snippets above work on their own, and the FAQ confirms you do not need wct-tracking.js for lead or sale tracking.
Copy Them From The Plugin:
Every snippet on this page is generated with your real site URL already filled in on the 🎯 Tracking tab, under Method 2 HTML Pixel and Method 3 JavaScript Library. Copying from there avoids typos in the domain.