Adding a Facebook tracking pixel
The Facebook pixel is a useful tool for conversion tracking. You can add Facebook pixel tracking directly to your checkout page to track the success of your ad campaigns.
Not only can you view the direct result of your Facebook ads, but you can also remarket to everyone who visits your site or target customers who visit specific pages or take specific actions. This guide provides instructions to install your Facebook pixel.
If you are using the Shopify Checkout Integration, refer to Shopify's instructions on adding a Facebook tracking pixel, or Shopify's instructions on Facebook data sharing.
If you are using the BigCommerce Checkout Integration, you can track conversions from BigCommerce directly. See Meta Pixel for more details.
Before you start
The default Facebook (FB) tracking code Recharge discussed in this article only tracks currency, total price, and the FB tracking ID. You can track additional subscription properties such as the product variant id, and SKU by adding your own version of the FB code to the thank you page. The Facebook pixel ID tracks customer actions on the browser side, which may be blocked with iOS blocking tracking or ad blockers.
Add Facebook pixel ID
The Facebook pixel ID tracks the InitiateCheckout and the Purchase events when a person enters the checkout page. When a person finishes their purchase, it will track the view.
- Configure your Facebook pixel ID.
- In the merchant portal, click Storefront and select Checkout.
- Fill in the Facebook pixel id field.
- Click Save.
Use Facebook pixel on the Thank You page
If you need to collect additional data beyond price and currency, Recharge recommends using the entire tracking code Facebook provides in the Add additional scripts and trackers section. As the Purchase event only sends the price and currency variables, you will require additional tracking information embedded in the code.
Once you add the code to the Add additional scripts and trackers section, the Recharge system disables the Purchase event that is fired by the pixel ID and instead fires the fully injected code block instead.
<noscript><img src="https://www.facebook.com/tr?id={{insert_your_pixel_id_here}}&ev=PageView&noscript=1" height="1" width="1" style="display:none"></noscript>
The Meta Conversions API
The Meta Conversions API (CAPI) is another tool to track customer actions. Unlike the Facebook tracking pixel, CAPI tracks actions on the server side, which can't be blocked by users. See Conversions API for more information.
Recharge doesn't have an out-of-the box integration with CAPI, but merchants on the Recharge Checkout on Shopify can utilize Elevar.
FAQ
Why does my Pixel helper show a duplicate event firing on the Thank you page?
Stores using Google Tag Manager (GTM) to track may see duplicate events firing in the Pixel helper tool if GTM is also configured to track the event. Review your GTM configuration in Google Tag Manager if you experience this issue.
Support
Recharge can only provide limited support for installing the Facebook pixel. For information on setting up campaigns and troubleshooting attribution, speak with a third-party Marketing Expert.