How To Set Up Facebook Pixel Events for Facebook Conversion Tracking

March 21, 2020

This post has been updated.

Using Facebook Ads is by far the best way to scale an online business, and Facebook conversion tracking is vital to learning what campaigns are working.

Here is a quick tutorial on how to set up Facebook Pixel Events to track your sales on Facebook ads! It's not as complicated as it sounds. This is how we track all of our sales at SamCart, and how most of our top creators track their sales as well.

The video above has a full tutorial that will walk you through the process from start to finish. Below is a quick guide on how to set it up. There's also a transcript of the video at the bottom of this post.

Setting up your Facebook Pixel Event

First, in your SamCart account open up your product that's being sold as a One-Click Upsell or Order Bump.

Go to Advanced Settings, then scroll down to "fire pixels and scripts after an order is completed".

Head over to Facebook to set up a Custom Conversion

Select Custom Conversion for this purchase event. Choose Purchase Event from the dropdown list, and change Rule 1 from URL to Event Parameters.

Choose content_name from the second dropdown. Finally, type the name of your product without spaces (this is the identifier Facebook will look for).

Next, give the conversion a name and leave the value blank for now. Next, find the main Facebook pixel code that Facebook provides.

Head back to SamCart for Integration!

Go back into SamCart Product Settings and paste it into "fire pixels and scripts after order is completed".

Final step: make sure your Facebook code includes your new unique purchase event with the right name field. Near the end of the Facebook code, paste the new section of code right before the final script tag.

Now replace the generic content_name phrase with what you named it in your custom conversion. Change Value to the price of your product and change Currency to the currency you're using.

Here's why Facebook Pixel Events are so important:

  • - You don't have to track every URL your customer clicks on.. this will help you avoid tracking all your "thank you" pages after a customer makes a purchase.
  • - You will have more accurate conversion numbers when you track just the specific product sold.
  • - When you change your reporting dashboard, you will be able to track just the data that really matters to your business.


Advertising on Facebook is our preferred method for scaling. It's also the favorite of most six and seven-figure creators. If you want to get even more out of Facebook Ads or need a refresher, check out our Facebook Ads 101 playlist on our YouTube Channel.

Get Your Facebook Conversion Tracking Cracking

Join 23,000 other creators who have used SamCart to sell more than $2 billion of their own products, goods, and services. Check out our plans, and grab a free demo today.

Start Your Free SamCart Trial Today

Real team members are at your service seven days a week. Our Knowledge Base is also a great resource if you have any questions.

We’ve created powerful features to multiply your sales. Our beautiful pre-designed templates help creators launch products faster than ever. SamCart makes running your online business simple.

Check out our YouTube channel, Facebook group, Facebook page, and Instagram.