The Reddit Conversion Pixel is a 📝JavaScript tracking snippet provided by 📝Reddit's ads platform that measures and optimizes for conversions on advertiser websites. When installed on a landing page, the pixel fires on page load and reports the visit back to Reddit, enabling attribution of ad clicks to downstream actions. Additional event tracking can be layered on top of the base PageVisit event to measure specific conversion types (signups, purchases, form submissions).
How It Works
The pixel loads Reddit's tracking library (redditstatic.com/ads/pixel.js), initializes with an advertiser-specific ID, and fires a PageVisit event:
!function(w,d){
if(!w.rdt){
var p=w.rdt=function(){
p.sendEvent
? p.sendEvent.apply(p,arguments)
: p.callQueue.push(arguments)
};
p.callQueue=[];
var t=d.createElement("script");
t.src="https://www.redditstatic.com/ads/pixel.js";
t.async=!0;
var s=d.getElementsByTagName("script")[0];
s.parentNode.insertBefore(t,s)
}
}(window,document);
rdt('init', 'ADVERTISER_ID');
rdt('track', 'PageVisit');Each Reddit ad account has a unique advertiser ID (the t2_ prefixed string). The pixel is placed inside a <script> tag in the page's <head> or <body>.
Custom Conversion Events
Beyond PageVisit, the pixel supports custom events for deeper funnel tracking:
rdt('track', 'ViewContent')— user viewed a key pagerdt('track', 'Search')— user performed a searchrdt('track', 'AddToCart')— e-commerce cart additionrdt('track', 'Purchase')— completed transactionrdt('track', 'Lead')— form submission or signuprdt('track', 'SignUp')— account creation
Custom events enable Reddit's campaign optimization to target users most likely to take specific actions, not just visit the page.
