Pixel
The Thanks Pixel is used to report key events back to Thanks. It helps analyse lead quality and improve targeting to ensure we send the most valuable traffic to your site.
⚙️ Setup
To set up the Thanks Pixel, contact your Thanks Account Manager to receive a unique Partner ID. Once you have your ID, add the following snippet to your site:
(function(t,h,a,n,k,s){var _a;t.thanks||(k=t.thanks=function(){k.queue.push(arguments)},k.push=k,k.queue=[],s=h.createElement(a),s.async=!0,s.src=n,(_a=h.getElementsByTagName(a)[0].parentNode)==null||_a.insertBefore(s,h.getElementsByTagName(a)[0]))})(window,document,"script","https://thanks.is/v1/pixel.js");
thanks('init', '{YOUR PARTNER ID HERE}')📍 Required Placements
At a minimum, the pixel must be added to:
Offer landing page — where users first arrive after clicking an ad
Conversion page — where the final action (purchase, signup, etc.) occurs
Both placements are essential for accurate tracking and attribution.
🎯 Tracking Conversions
On your conversion page, trigger the following function when a customer converts:
thanks('track', 'conversion');
🔍 How It Works
The Thanks Pixel uses the __thanksCid URL parameter to store the unique click ID for each user who clicks a Thanks ad.
When the user lands on your site, the pixel automatically captures this ID to link conversions back to the original ad click.
🌐 Cross-Domain Conversions
If your landing page and conversion page are on different domains, make sure to preserve the __thanksCid parameter in the URL when redirecting users between pages.
⚠️ Without this parameter, the pixel cannot attribute conversions correctly to the original traffic source.
Updated about 1 month ago