A sales pixel is a small snippet of JavaScript you add to your post-purchase thank-you page that fires when a buyer lands there, sending a conversion signal back to your tracking system so you can attribute the sale to the YouTube video that drove it. Adding the pixel takes less than five minutes and requires no coding knowledge — it's a paste operation into your course platform's custom code section.
What Is a Sales Pixel and How Does It Work?
A sales pixel (also called a conversion pixel or tracking pixel) is a small piece of code that executes when a specific page loads. In the context of YouTube revenue tracking, the pixel is placed on your thank-you page — the page buyers see immediately after completing a purchase.
When the pixel fires, it does two things: it reads a session ID that was set when the buyer originally clicked your YouTube description link, and it sends that session ID to your tracking system along with a conversion event. The tracking system then matches the session ID to the original video click, completing the attribution chain from video view to sale.
The RevData pixel is a single line of JavaScript that makes an invisible image request — it's the same technical mechanism used by Facebook Pixel, Google Ads conversion tracking, and every other marketing attribution system on the web.
Where to Add the Pixel: Platform-by-Platform Instructions
Kajabi
- Go to Settings → Site Details → Tracking Codes
- Paste the RevData pixel code in the "Body tracking code" or "After body tag" field
- The pixel will fire on all pages — use a conditional to limit it to your thank-you page, or navigate to the specific product's post-purchase page settings
- For product-specific placement: go to Products → [Your Product] → Settings → Checkout → After Purchase Redirect and paste the pixel in the confirmation page's custom code field
Teachable
- Go to Site → Code Snippets → Head Snippet
- Add a conditional script that only fires on pages with "/thank_you" or "/confirmation" in the URL
- Alternatively, use Teachable's Checkout Success Page settings to add custom code that only fires post-purchase
Shopify
- Go to Settings → Checkout → Order Status Page
- Find the "Additional Scripts" section at the bottom of the page
- Paste the pixel code directly — this section only fires on confirmed order pages
- The order status page is the thank-you page for Shopify purchases, so this is the correct and precise placement
ClickFunnels
- Navigate to your funnel's confirmation/thank-you step
- Click Edit Page
- Go to Settings → Tracking Code → Footer Tracking Code
- Paste the pixel code and save
ThriveCart
- Open your product settings
- Navigate to Behavior → Success Page
- Find the custom code or tracking pixel section
- Paste the RevData pixel and save
Custom Website (HTML)
If your thank-you page is a custom HTML page, paste the pixel in the <body> section or just before the closing </body> tag:
<script>
(function() {
var s = new URLSearchParams(location.search).get('rd_sid')
|| localStorage.getItem('rd_sid');
if (s) new Image().src = 'https://getrevdata.com/px/YOUR_CODE?rd_sid=' + s;
})();
</script>
Testing That the Pixel Is Working
After installing the pixel, verify it's firing correctly before relying on the data:
- Click one of your RevData tracked links (from a YouTube description or by copying the tracked URL directly)
- Navigate to your thank-you page (you may need to simulate a purchase, or navigate there directly if it's accessible without purchasing)
- In your browser's developer tools (F12 → Network tab), filter for "revdata" or "getrevdata" — you should see a request to the pixel URL
- Check your RevData dashboard for a test conversion event
Common Pixel Installation Mistakes
| Mistake | Result | Fix |
|---|---|---|
| Pixel on sales page, not thank-you page | Fires for visitors who haven't purchased | Move to post-purchase confirmation page only |
| Wrong pixel code (typo in YOUR_CODE) | Pixel fires but data goes nowhere | Copy pixel code directly from RevData dashboard |
| Session ID not being passed | Conversions logged but not attributed to videos | Ensure tracked links pass rd_sid param through your funnel |
| Ad blocker interfering during test | Pixel appears not to fire in testing | Disable ad blocker during initial setup verification |
Privacy and Compliance Considerations
The RevData pixel collects anonymous session data for attribution purposes. It does not track personal information, browsing history on other websites, or any data unrelated to your own sales funnel. Because the pixel is limited to your own domain and owned customer journey, it does not trigger GDPR or CCPA requirements in the same way that third-party advertising pixels do. However, if your audience includes EU-based customers, disclosing the use of conversion tracking in your privacy policy is good practice.