How to Set Up Conversion Tracking for Reddit Ads on BigCommerce Using Google Tag Manager

If you’re running Reddit Ads and want to track conversions on your BigCommerce store, you’re in the right place! Setting up conversion tracking helps you understand how your customers are interacting with your store and how well your campaigns are performing. In this post, I’ll walk you through how to install the Reddit Pixel using Google Tag Manager (GTM) and set it up to track purchase events.
Step 1: Install the Reddit Pixel with Google Tag Manager
First things first, you need to install the Reddit Pixel on your BigCommerce store. Here’s how to do it:
1. Create the Pixel in Reddit Ads Manager
- Head over to Reddit Ads and log in.
- Go to the Pixels section and create a new Pixel.
- Copy the Pixel ID, you’ll need it in the next steps.
2. Set Up the Pixel in Google Tag Manager
- Log in to Google Tag Manager.
- Go to Tags and click New.
- Choose Custom HTML and paste in the Reddit Pixel code.
- Replace the placeholder with the Pixel ID you got from Reddit.
3. Add a Trigger
- Set the trigger to fire on All Pages. This ensures the pixel will be active on every page of your site.
4. Test and Publish
- Use the Reddit Pixel Helper (a browser extension) to confirm that the pixel is firing correctly on your site.
- Once you’ve verified it works, publish your GTM changes.
Step 2: Set Up the Purchase Event in GTM
Now that the Reddit Pixel is installed, we need to set up a purchase event that captures key details like transaction value and product information. BigCommerce pushes this data into the data layer, which makes it easy to pull the information into Google Tag Manager.
Add Data Layer Variables in GTM
You’ll need to create Data Layer Variables (DLVs) for the following:
GTM Variable Name | BigCommerce Data Layer Variable Name |
---|---|
{{DLV - Value}} | eventModel.value |
{{DLV - Transaction ID}} | eventModel.transaction_id |
{{DLV - Item Name}} | eventModel.items.0.item_name |
{{DLV - Currency}} | eventModel.currency |
{{DLV - Item Count}} | eventModel.items.0.quantity |
{{DLV - Item ID}} | eventModel.items.0.item_id |
Steps to Set Up Variables
- Go to Variables in GTM and click New.
- Choose Data Layer Variable as the variable type.
- For each variable, use the names listed above (e.g.,
DLV - Value
). - Enter the corresponding BigCommerce data layer name in the Data Layer Variable Name field.
Repeat this for each of the six variables. These are the data points you’ll use to track purchases in your Reddit Ads campaigns.
Create the Purchase Event Tag
Now that you’ve set up the necessary variables, it’s time to create the purchase event tag.
- Create a New Tag
- Go to Tags and click New.
- Choose Custom HTML (or use a Reddit Tag template if available).
- Add Your Variables
Update the purchase event tag with this code:redditq.push(['track', 'Purchase', { currency: {{DLV - Currency}}, value: {{DLV - Value}}, transaction_id: {{DLV - Transaction ID}}, num_items: {{DLV - Item Count}}, item_id: {{DLV - Item ID}}, item_name: {{DLV - Item Name}} }]);
- Set the Trigger
- Create a Custom Event trigger.
- Set the event name to match the name of the purchase event pushed to the data layer (e.g.,
purchase
). - Attach this trigger to the purchase event tag.
Step 3: Test and Publish Your Setup
Before going live, it’s important to test everything to make sure it’s working correctly.
- Use GTM Preview Mode
- Enable Preview Mode in GTM to check if the purchase tag is firing properly when a customer completes a purchase.
- Verify with Reddit Pixel Helper
- Complete a test purchase on your store and use the Reddit Pixel Helper to confirm that the correct data points are being sent.
- Publish Changes
- Once everything checks out, hit Publish in GTM to make the changes live.
Final Thoughts
And that’s it! You’ve successfully set up conversion tracking for Reddit Ads on your BigCommerce store. With the Reddit Pixel now tracking purchase events, you’ll have a clearer picture of how your campaigns are performing and how much revenue they’re driving.
By using Google Tag Manager and BigCommerce’s built-in data layer, you can easily track essential data like transaction values, product names, and quantities without having to write complex code. This makes it much easier to optimize your campaigns and drive better results.
Got questions or ran into any issues? Drop a comment below, and I’ll be happy to help!