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 on installing your Facebook pixel.
- Recharge Checkout on Shopify
- Recharge Checkout on BigCommerce
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
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>
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.