sales trackingyoutube trackingrevenue attribution

How to Track Which YouTube Videos Drive Sales

RevData Team
•February 5, 2025•
9 min read

To track which YouTube videos drive sales, you need two things: a unique tracked link in each video's description (so you can identify the source video when someone clicks) and a conversion pixel on your thank-you page (so you can identify when a click becomes a sale). Together, these two signals let you attribute every purchase back to the video that drove it.

Why Standard Analytics Can't Track YouTube Video Sales

The fundamental challenge is a data handoff problem. YouTube knows who clicked your description link. Your payment platform knows who made a purchase. But by default, these two systems have no way to communicate with each other. A buyer looks identical to any other website visitor once they arrive on your sales page — there's no flag that says "this person came from your RSI strategy video."

This gap exists because YouTube and your payment platform (Kajabi, Teachable, Stripe, Shopify, etc.) are separate systems with no native integration. Bridging them requires a small piece of infrastructure on your side.

Step 1 — Create Tracked Links for Each Video

A tracked link is a URL that, when clicked, records which video it belongs to and creates a session identifier for that visitor. This session ID travels with the visitor through your website so you can reconnect the original click to a later purchase.

The structure looks like this:

https://getrevdata.com/t/VIDEO_CODE?dest=https://your-site.com/course

When a viewer clicks this link, the system logs: video code, timestamp, device, country, and creates a session ID that gets stored as a cookie or URL parameter. The viewer is then redirected to your destination URL with the session ID appended.

The key principle: every video needs its own unique link. If you use the same link for all videos (as most creators do), you know YouTube is sending traffic — but you don't know which video. RevData generates and manages these tracked links automatically for every video in your YouTube catalog.

Step 2 — Add the Revenue Pixel to Your Thank-You Page

The revenue pixel is a snippet of JavaScript that fires when a buyer lands on your post-purchase confirmation page. It reads the session ID (set during the original click) and sends a conversion event to your tracking system, which then matches the sale to the originating video.

The RevData pixel looks like this:

<script>
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>

This runs silently when the page loads, fires a 1x1 pixel image request to RevData's server, and registers the conversion. No developer required — it's pasted into the HTML of your thank-you page.

Which Platforms Support the Revenue Pixel?

The pixel works on any platform that lets you add custom HTML or JavaScript to your thank-you page. This includes:

  • Kajabi — paste in the page's custom code section
  • Teachable — add to the course thank-you page via custom HTML
  • Shopify — paste in the Order Status page additional scripts section
  • ClickFunnels — add to the confirmation page head or body
  • Custom websites — paste directly in the page HTML
  • ThriveCart — add via success page custom code
  • Stripe Checkout — add to the success URL page on your website

If your platform doesn't allow custom code on the thank-you page, you can also trigger the pixel from a webhook when a purchase is confirmed — though this requires more technical setup.

Step 3 — Update Your Video Descriptions

Once your tracked links are created, update your video descriptions to use the new tracked URLs instead of your standard website link. For new videos, add the tracked link before publishing. For your existing catalog, update each description — YouTube lets you edit descriptions on published videos without affecting their performance.

Best practice: create a tracked link for every video, including older videos. Historical content often continues to drive significant traffic and revenue. RevData data shows that videos more than 12 months old still account for 35-45% of a typical channel's total attributable revenue because they continue to rank in YouTube search and appear in recommendations.

How to Read Your Attribution Data

Once the setup is complete and you've had 2-4 weeks of data, your attribution dashboard will show you:

  • Total clicks per video
  • Total sales attributed to each video
  • Revenue attributed to each video
  • Conversion rate (clicks ÷ sales) per video
  • Revenue Per View (RPV) per video

These numbers tell you which videos are your business's most valuable assets, which topics convert well, and where to invest your production time going forward.

Common Setup Mistakes to Avoid

Using the same tracked link for multiple videos: Each video must have its own unique link. A single "YouTube" link tells you the channel is working but not which video.

Placing the pixel on the wrong page: The pixel must be on the page the buyer lands on immediately after purchase — typically labeled "Thank You," "Order Confirmation," or "You're In." If you put it on a pre-purchase page, it will fire for visitors who haven't bought yet.

Not updating existing video descriptions: If you only add tracked links to new videos, you'll have attribution data for 10% of your catalog while the remaining 90% shows zero revenue — making the data look worse than it is.

Frequently Asked Questions

Ready to see which videos make you money?

RevData tracks Revenue Per View for every video in your YouTube catalog.

Compare RevData vs YouTube Analytics, Hyros, and Retention Rabbit →

Related Articles