Skip to main content

Set Up the Reddit Pixel with Google Tag Manager

Link your container with the Ads Manager to set up the Reddit Pixel in just a few clicks. Linking automatically sets up your container to use the Pixel, simplifying the setup process while enhancing the reliability and consistency of conversion metrics. We recommend giving your setup a good test run to ensure it's working as best as it can.

If you're unsure during setup, reach out to your developers. 

Potential limitations like browser-based privacy measures or ad-blocking extensions can impact data collection accuracy. Implementing the Conversions API (CAPI) can help mitigate these client-side limitations.

Do you learn better by watching? Watch the next video or check out other tutorials on the Ads Formula.

Before you start

  • Set up a GTM account with a published web container. Remember to copy its container ID, formatted as GTM-XXXXXX.
  • Find your Reddit Pixel ID. Specify which business account should receive your conversions. You can find your Pixel ID in the Events Manager, and it should match the business account's Pixel ID found in Accounts.

1. Connect your account

  1. Go to the Events Manager and select Configure Source > Google Tag Manager. Configure Pixel
  2. Select Next then Sign in with Google. Connect account
  3. Choose the account to link and Select all to permit Reddit to manage your containers and continue. Connect GTM account
  4. Choose the web container to link and select Publish. When prompted, select Yes, Publish. Publish container
  5. (Optional) Enable auto-advanced matching to hash and send emails when provided. We recommend this to match users to conversion activity, boosting your campaign performance.

2. Set up events

You can set up more events at any time.

We recommend setting up events with one of these methods:

Setup methodDescriptionUse case
Event setup tool (recommended)A point-and-click tool for quickly setting up events. Events created here won't appear in GTM.
  • Using GTM only for Reddit Ads
  • Testing with the Pixel Helper or Event Testing
Google Tag ManagerSet up your data layer to automatically install tags and variables to your container.
  • Managing multiple pixels
  • Using the container debugging tool

When ready, select Finish to install the Pixel on your container.

Events in Google Tag Manager

Go to your website and open its code editor. Set up the data layer for each event you'd like to share. At the minimum, we recommend setting up Page Visit, View Content, Add to Cart, and Purchase.

Example: Page Visit
window.dataLayer.push({
event: "PageVisit",
// Match keys
conversionId: "abc123",
advancedMatchingParams: [
{ name: "email", value: "alice@site.com" }
]
});
Example: View Content
window.dataLayer.push({
event: "ViewContent",

// Match keys
conversionId: "def456",
advancedMatchingParams: [
{ name: "email", value: "alice@site.com" }
],

// Event metadata
currency: "USD",
productsRows: [
{
id: "abc123",
category: "Vegetable",
name: "Potato"
}
]
});
Example: Add To Cart
window.dataLayer.push({
event: "AddToCart",

// Match keys
conversionId: "ghi789",
advancedMatchingParams: [
{ name: "email", value: "alice@site.com" }
],

// Event metadata
currency: "USD",
itemCount: 2,
transactionValue: 100.00,
productsRows: [
{
id: "abc123",
category: "Vegetable",
name: "Potato"
}
]
});
Example: Purchase
window.dataLayer.push({
event: "Purchase",

// Match keys
conversionId: "jkl012",
advancedMatchingParams: [
{ name: "email", value: "alice@site.com" }
],

// Event metadata
currency: "USD",
itemCount: 2,
transactionValue: 200.00,
productsRows: [
{
id: "abc123",
category: "Vegetable",
name: "Potato"
},
{
id: "123abc",
category: "Vegetable",
name: "Tomato"
}
]
});

Testing and next steps

After linking your container and setting up events, test your integration with the Pixel Helper or Events Manager to ensure data is being passed correctly. If you set up events in GTM, you can also verify your web container to ensure your tags are triggering.

We recommend setting up a server container to increase data collection accuracy.

Things to know

  • Events created with the event setup tool won't be debuggable in the container debugger or visible in GTM. We recommend manually setting up events to make them manageable.
  • Conversion coverage may be limited due to signal loss measures that impact browser-based solutions like pixels. Integrate your setup with the Conversions API (CAPI) for remediation.
  • Customer match keys, such as email and phone numbers, are automatically normalized and hashed using SHA-256. Learn more about hashing.

Troubleshooting

ErrorResolution
ReauthenticateYour account was unlinked from the Ads Manager. Reconnect it and try again.
Permission neededYour account doesn't have permission to manage this container. Contact your GTM account admin for edit permission.
Publish failedWe couldn't add the Pixel to this container at this time. Try again later.
Not foundYour web container couldn't be found. Check that it's published and still exists. 
Something went wrongAn unknown error has occurred. Try again later.

If issues persist, contact support for more help.

We're here to help

Our Reddit Ads team is ready to support you from setup to success.

Snoo Punch Up