Tracking Facebook Conversions

If you are using Facebook ads to promote your store on social media, you'll want to gauge how effective your advertising is by keeping track of how many purchases come from those ads. This guide covers how to set up the Facebook pixel to measure these conversions.

 

Looking to set up Facebook Dynamic Ads? We recommend using the Facebook Ads Extension app to first generate Facebook ads using your BigCommerce catalog. See, Installing the Facebook Ads Extension App for more information.

Creating a Facebook Pixel

These steps show you how to create a Facebook Pixel in the Facebook Ads Manager. If you've already created a pixel, skip ahead to Installing the Facebook Pixel.

1. Go to your Facebook Pixel tab in the Facebook Ads Manager.

2. Click Create a Pixel.

Facebook Pixel

3. In the pop-up that appears, enter a name for your pixel. You can have only one pixel per ad account, so choose a name that represents your business. Then, check the box indicating that you have read and agree to the Facebook Pixel Terms.

Create a Facebook Pixel popup

4. Click Next to continue and begin installation.

Installing the Facebook Pixel

Once you've successfully created your Facebook Pixel, it will need to be installed into your BigCommerce store. The steps will vary depending on your theme.

 

Did you know? It may take up to 20 minutes for your pixel status to change after installing it.

Adding the Pixel to BigCommerce (Blueprint)

These steps will guide you through installing the Facebook Pixel into a store using a legacy Blueprint theme. This method will let you track both visits and conversions.

1. Go to the Facebook Pixel tool in the Ad Manager area if you are not there already.

2. Click Use an Integration or Tag Manager.

Install your Pixel code pop up

3. Click BigCommerce.

BigCommerce button

4. Scroll down to Step 2 and copy your pixel ID.

Step 2 showing the pixel ID

5. In your BigCommerce control panel, go to Advanced SettingsWeb Analytics.

6. Enable Facebook Pixel by selecting it and saving. Then select the Facebook Pixel tab.

Enable Facebook pixel

7. Paste the pixel ID into the Pixel ID field, then Save your changes.

Facebook Pixel ID

Adding the Pixel to BigCommerce (Stencil)

These steps will guide you through installing the Facebook Pixel into a store using a Stencil theme. This method will track any activity on your Facebook ads, but will not specifically track sales unless you follow the steps in Conversion Tracking as well.

1. Go to the Facebook Pixel tool in the Ad Manager area if you are not there already.

2. Click Copy and Paste the Code.

Install your Pixel code pop up

3. Scroll down to Step 1.2. Mouse over the code and click to copy it.

Pixel code

4. In your BigCommerce control panel, go to Advanced SettingsWeb Analytics.

5. If you haven't previously enabled Google Analytics, do so now by selecting it and saving. Then select the Google Analytics tab.

6. Paste the pixel code into the Tracking Code field. This will insert the pixel code onto every page of your store.

Tracking Code text box

7. Follow the steps under the Conversion Tracking section to measure how many sales are made directly from your Facebook ads.

Conversion Tracking (Stencil)

1. Go to Advanced SettingsAffiliate Conversion Tracking.

2. Copy the following code and paste it into the Conversion Tracking Code field.

<script>
fbq('track', 'Purchase', {value: '%%ORDER_AMOUNT%%', currency: 'USD'});
</script>

Code in Affiliate Conversions area

 

Can I change the currency? By default, the currency parameter is set to your Facebook ad account’s currency, so if you don’t specify any, this is what Facebook will use.

3. Save your changes.

Going forward, you will be able to track how many sales are made as a direct result of your Facebook ads through your Facebook Ads Manager.

Additional Resources

Was this article helpful?