How to integrate Facebook Pixel with WooCommerce?

Go back to Documentation

Using Facebook Pixel is crucial for optimising ad campaigns on this Social platform. It allows to track and measure campaign performance and ensure conversion goals are met.

This guide will show you how easily integrate your WooCommerce shop with Facebook Pixel using Google Tag Manager as integration layer and Google Tag Manager for WooCommerce plugin.

1. Download and import GTM preset

Follow this guide and select Facebook Pixel Basic or Advanced (use Advanced if you are using PRO version of the plugin) preset and then import fbp-basic.json or fbp-advanced.json.

2. Optionally create Facebook Pixel

3. Get the Facebook Pixel ID

Once you have imported the preset please find your Facebook Pixel ID, by navigating to: and then selecting Data Sources > Pixels. Then find the correct Pixel that you already have or have created in the previous step and copy its ID.

4. Set Facebook Pixel ID in GTM

Get back into GTM workspace, navigate to Variables and find FBP Pixel ID variable. Then edit the variable and paste the ID found in the previous step, then save the change.

4. Review and publish changes

Review and submit your GTM workspace changes by hitting the “Submit” button. You can now navigate to Event Manager in Facebook Business Manager to see Pixel test events and debugger to confirm if the setup works fine.

Leave a Comment