PageSourceSearch

https://sweetcode.com/assets/js/2201e5f0.cd62af06.js

js sweetcode.com collected 2026-10-01 10:38:39 UTC 9,967 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdocusaurus_test=globalThis.webpackChunkdocusaurus_test||[]).push([[26810],{10684(e,n,i){i.d(n,{A:()=>t});let t=i.p+"assets/images/reddit-1-843971b031ee3bf856901e09ce9b31d3.png"},15113(e,n,i){i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>p,frontMatter:()=>o,metadata:()=>t,toc:()=>c});let t=JSON.parse('{"id":"pmw/plugin-configuration/reddit","title":"Reddit","description":"The Reddit browser pixel is part of the free version. The Conversions API and Advanced Matching are pro features. Get the pro version here","source":"@site/docs/pmw/plugin-configuration/reddit.mdx","sourceDirName":"pmw/plugin-configuration","slug":"/pmw/plugin-configuration/reddit","permalink":"/docs/pmw/plugin-configuration/reddit","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1789877970000,"frontMatter":{},"sidebar":"pmwSidebar","previous":{"title":"Pinterest","permalink":"/docs/pmw/plugin-configuration/pinterest"},"next":{"title":"Snapchat","permalink":"/docs/pmw/plugin-configuration/snapchat"}}');var s=i(74848),r=i(28453),d=i(41429);let o={},a="Reddit",l={},c=[{value:"Basic Setup",id:"basic-setup",level:2},{value:"Conversions API (CAPI)",id:"conversions-api-capi",level:2},{value:"Testing",id:"testing",level:3},{value:"Advanced Matching",id:"advanced-matching",level:2},{value:"Pixel Helper",id:"pixel-helper",level:2},{value:"Supported Events",id:"supported-events",level:2}];function h(e){let n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"reddit",children:"Reddit"})}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The Reddit browser pixel is part of the free version. The Conversions API and Advanced Matching are pro features. Get the pro version ",(0,s.jsx)(n.a,{href:"/plugins/pmw#pricing-section",children:"here"})]})}),"\n",(0,s.jsx)(n.h2,{id:"basic-setup",children:"Basic Setup"}),"\n",(0,s.jsx)(d.Ay,{videoId:"3cr5pwksrf"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Open the Reddit Ads Manager: ",(0,s.jsx)(n.a,{href:"https://ads.reddit.com/",children:"https://ads.reddit.com/"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Browse to the top left menu dropdown > ",(0,s.jsx)(n.strong,{children:"Ads"})," > ",(0,s.jsx)(n.strong,{children:"Event Manager"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{alt:"Reddit 1",src:i(10684).A+"",width:"1494",height:"1068"})}),"\n",(0,s.jsxs)(n.ol,{start:"3",children:["\n",(0,s.jsxs)(n.li,{children:["Copy the ",(0,s.jsx)(n.strong,{children:"Pixel ID"})]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{alt:"Reddit 2",src:i(99415).A+"",width:"1494",height:"1068"})}),"\n",(0,s.jsxs)(n.ol,{start:"4",children:["\n",(0,s.jsxs)(n.li,{children:["In the Pixel Manager, open ",(0,s.jsx)(n.strong,{children:"Tracking Pixels \u2192 Reddit"}),", paste the pixel ID into the ",(0,s.jsx)(n.strong,{children:"Advertiser ID"})," field, and save"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{alt:"Reddit 5",src:i(19800).A+"",width:"1880",height:"1242"})}),"\n",(0,s.jsx)(n.h2,{id:"conversions-api-capi",children:"Conversions API (CAPI)"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["This is a pro feature. Get the pro version ",(0,s.jsx)(n.a,{href:"/plugins/pmw#pricing-section",children:"here"})]})}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["Available from version ",(0,s.jsx)(n.code,{children:"1.52.0"})," of the Pixel Manager."]})}),"\n",(0,s.jsx)(n.p,{children:"The Conversions API is an optional addition to your Reddit Pixel that sends conversion data to Reddit in real time through Reddit's server-to-server protocol. This provides more accurate conversion tracking, especially for events that might be missed by browser-based tracking due to ad blockers or privacy settings."}),"\n",(0,s.jsxs)(n.p,{children:["Find more information on the Conversions API in the ",(0,s.jsx)(n.a,{href:"https://business.reddithelp.com/s/article/Conversions-API",children:"Reddit documentation"}),"."]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Open the Reddit Ads Manager: ",(0,s.jsx)(n.a,{href:"https://ads.reddit.com/",children:"https://ads.reddit.com/"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Browse to the top left menu dropdown > ",(0,s.jsx)(n.strong,{children:"Ads"})," > ",(0,s.jsx)(n.strong,{children:"Event Manager"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Click on the ",(0,s.jsx)(n.strong,{children:"Conversion API"})," tab for your pixel"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["In the ",(0,s.jsx)(n.strong,{children:"Conversions API"})," section, click ",(0,s.jsx)(n.strong,{children:"Generate token"})," to create a new access token"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Copy the generated token"}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["In the Pixel Manager, open ",(0,s.jsx)(n.strong,{children:"Tracking Pixels \u2192 Reddit"}),", paste the token into the ",(0,s.jsx)(n.strong,{children:"Conversions API Token"})," field, and save."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"testing",children:"Testing"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The ",(0,s.jsx)(n.code,{children:"test_event_code"})," can change between testing sessions. Make sure to double-check if the correct one is set for each testing session."]})}),"\n",(0,s.jsx)(n.p,{children:"In order to test the Conversions API events, Reddit provides a Test Events tool in the Event Manager. The Pixel Manager offers a settings field where you can enter the test event code to validate that your server-to-server events are being received correctly."}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["In the Reddit Ads Manager, go to ",(0,s.jsx)(n.strong,{children:"Event Manager"})," > ",(0,s.jsx)(n.strong,{children:"Event testing"})]}),"\n",(0,s.jsxs)(n.li,{children:["Look for the ",(0,s.jsx)(n.strong,{children:"Test Conversion API"})," section and copy the test event code"]}),"\n",(0,s.jsxs)(n.li,{children:["In the Pixel Manager, open ",(0,s.jsx)(n.strong,{children:"Tracking Pixels \u2192 Reddit"}),", paste the test event code into the ",(0,s.jsx)(n.strong,{children:"CAPI Test Event Code"})," field, and save"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Once configured, your CAPI events will appear in Reddit's Test Events view, allowing you to verify the integration is working correctly before going live."}),"\n",(0,s.jsx)(n.admonition,{title:"Server-Side Proxy",type:"tip",children:(0,s.jsxs)(n.p,{children:["You can offload Reddit Conversions API calls from your WooCommerce server to the edge using the ",(0,s.jsx)(n.a,{href:"/docs/pmw/server-side-proxy/overview",children:"Server-Side Proxy"}),". This reduces server load and improves tracking accuracy by routing events through a first-party subdomain."]})}),"\n",(0,s.jsx)(n.h2,{id:"advanced-matching",children:"Advanced Matching"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["This is a pro feature. Get the pro version ",(0,s.jsx)(n.a,{href:"/plugins/pmw#pricing-section",children:"here"})]})}),"\n",(0,s.jsx)(n.p,{children:"Advanced Matching is an optional addition to your Reddit tag that matches conversion data with the person responsible for the conversion. Advanced Matching sends hashed emails to Reddit to match site events. Advanced Matching also lets you track cross-device checkouts, which cannot be done otherwise. As a result, you can see conversions reported in Ads Manager more accurately."}),"\n",(0,s.jsx)(n.h2,{id:"pixel-helper",children:"Pixel Helper"}),"\n",(0,s.jsxs)(n.p,{children:["You can get the Reddit Pixel Helper from the Chrome web store: ",(0,s.jsx)(n.a,{href:"https://chrome.google.com/webstore/detail/reddit-pixel-helper/ebgpcjlgganlidigifggjjiglghjnjcj",children:"Reddit Pixel Helper"})]}),"\n",(0,s.jsx)(n.p,{children:"It will help you to verify that the pixel fires correctly."}),"\n",(0,s.jsx)(n.h2,{id:"supported-events",children:"Supported Events"}),"\n",(0,s.jsxs)(n.p,{children:["Here's a list of ",(0,s.jsx)(n.a,{href:"/docs/pmw/features/events#general-and-e-commerce-events",children:"supported events"}),"."]})]})}function p(e={}){let{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},19800(e,n,i){i.d(n,{A:()=>t});let t=i.p+"assets/images/reddit-5-458d38edc5e8a9883f728c742f1c71d2.png"},41429(e,n,i){i.d(n,{Ay:()=>o,I8:()=>d});var t=i(74848),s=i(96540);let r="https://fast.wistia.com/assets/external/E-v1.js",d=({videoId:e,videoUrl:n,className:i,style:d})=>{let o=e||(e=>{if(!e)return null;let n=String(e).match(/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?#/]+)/);
1return n?n[1]:e})(n);return((0,s.useEffect)(()=>{(()=>{if("u"<typeof document||document.querySelector(`script[src="${r}"]`))return;let e=document.createElement("script");e.src=r,e.async=!0,document.head.appendChild(e)})()},[o]),o)?(0,t.jsx)("div",{className:`wistia_embed wistia_async_${o} popover=true popoverAnimateThumbnail=true videoFoam=true ${i||""}`,style:{width:"100%",height:"100%",...d},children:"\xa0"}):null},o=({videoId:e})=>(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"40vh",borderRadius:"6px",overflow:"hidden",marginBottom:"20px"},children:(0,t.jsx)(d,{videoId:e,style:{boxShadow:"4px 4px 30px rgba(0, 0, 0, 0.2)"}})})},99415(e,n,i){i.d(n,{A:()=>t});let t=i.p+"assets/images/reddit-2-b7e7d4f8dc3e4294144a258c0564e582.png"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.