Skip to Content
Tag ManagerTagsReddit Pixel Tags

Reddit Pixel Tags

Use a Reddit Pixel tag to tell Reddit what visitors do on your site. Reddit uses these events to measure which ads led to conversions, to show ads to the people most likely to convert, and to build retargeting audiences.

Nitoriq loads Reddit’s library and initializes your pixel once per page.

Reddit allows one pixel per page. If tags for two different Reddit pixels fire on the same page, the second pixel’s tags are skipped, and the debug overlay says why.

Preparation

Before you start

  • you have the pixel ID from Reddit Ads Events Manager. It starts with a2_ or t2_
  • the container has triggers for the page views and actions you want to send
  • variables exist for values such as order ID, order value, and products
  • if you also send conversions server-side, the Reddit integration is set up in Nitoriq

Configure a Reddit Pixel tag

Create the tag

Open the container, choose Tags, choose New Tag, then choose Reddit Pixel under Advertising.

Enter the pixel ID

Paste the pixel ID from Reddit Ads, or enter a single variable that holds it, such as {{reddit_pixel_id}}.

Choose the event

New tags start on PageVisit. For conversions, pick a standard event such as Purchase, Lead, or SignUp. To send your own event name, choose Custom event and enter a name of up to 100 characters. It’s sent as Reddit’s Custom event with that name.

Fill in parameters

Map each parameter to a fixed value or a variable:

  • Value: a number such as 49.90, sent as a decimal amount
  • Currency: pick it from the list, or choose + to use a variable if you sell in several currencies
  • Item Count: a whole number
  • Products: a variable holding a list of { id, name, category } objects

Use Additional Parameters for anything else.

Turn on deduplication for conversions

For conversion events, Deduplication defaults to Match server-side. Set Transaction ID to the same variable your Report Conversion tag uses, and Conversion Type to the same conversion type. The tag sends Reddit a conversion ID that matches the one the Reddit integration sends. See Browser pixels alongside the Conversions API.

Reddit’s library hashes the conversion ID before sending it, so the value in your browser’s network requests won’t look like your transaction ID. That’s expected, and Reddit matches it with the server-side copy.

Select triggers, save, and publish

Choose the triggers, save the tag, and publish the container.

Reddit Pixel fields

Pixel ID

The Reddit pixel to send to, or a single variable that holds it.

A value that isn't a valid pixel ID is refused on save; a variable is checked again when the tag fires.

Event

A Reddit standard event, or Custom event with a name.

Standard events are what Reddit optimizes and reports on.

Parameters

The event metadata Reddit documents.

Values are sent with the types Reddit expects; unusable values are left out and noted in the debug overlay.

Deduplication

Sends a conversion ID so Reddit counts a browser event and the same server-side event once.

Without it, a conversion sent by both the pixel and the Reddit integration is counted twice.

Fire once per page

Sends the event at most once per page load.

Useful for events whose trigger can match more than once.

Allow Reddit in a Content Security Policy

If your site sets a Content Security Policy, allow:

  • script-src: https://www.redditstatic.com
  • connect-src and img-src: https://alb.reddit.com and https://pixel-config.reddit.com

Reddit can change the hosts it sends to. If events stop after a Reddit update, check the browser console for blocked requests.

Check that it works

Open your page with ?niq_debug=1 to see the debug overlay. Each Reddit call appears as reddit · track Purchase along with the values sent.

In Reddit Ads, open Events Manager and check the pixel’s recent events, or install the Reddit Pixel Helper browser extension.

Validation

A Reddit Pixel tag is set up when

  • the tag type is Reddit Pixel and the pixel ID is valid
  • only one Reddit pixel is used on each page
  • page-view tags fire on DOM Ready, plus Route Change on single-page apps
  • conversion tags have deduplication set to match your server-side integration
  • the container is published

Was this page helpful?