Pixelflow
Wordpress

WooCommerce

This article guides you through the process of how to set up the Facebook Conversions API on WooCommerce.

Overview

This guide will walk you through installing the PixelFlow plugin for WooCommerce and setting up Meta CAPI tracking via the PixelFlow dashboard. After completing these steps, you'll be automatically tracking the following in your WooCommerce store:

  • Page View events

  • Add to Cart, Initiate Checkout, Purchase events

If you currently have the Facebook Pixel script installed on your WordPress site, you'll need to remove it after setting up PixelFlow. Running both scripts simultaneously will cause duplicate event tracking. PixelFlow loads both the Facebook Pixel and Conversions API automatically.

1. Install the PixelFlow WordPress Plugin

  1. Download the PixelFlow plugin from here

  2. After installation completes, click Activate

2. Open PixelFlow Plugin Settings

  1. Navigate to Settings → PixelFlow Settings in your WordPress admin menu

  2. Or click the Settings link directly under the plugin name in your Plugins list

PixelFlow plugin with settings link highlighted

3. Login to the Plugin

When you first open PixelFlow Settings, you'll see a Welcome screen with authentication options.

  1. Click Login if you have an account or Start Free Trial if you're just starting

  2. Return to your WordPress admin panel—the plugin will now show as authenticated

4. Wizard Auto-Opens: Autosync or Manual Site Sync

After authentication, you'll be directed to the PixelFlow dashboard where the setup wizard will automatically open and guide you through the remaining steps.

5. Add Site Domain and Currency

In the first step of the wizard, configure your site details:

  1. Enter your website URL

  2. Select your currency from the dropdown

  3. Click Continue

6. Add Your Meta CAPI Acess Token

PixelFlow loads BOTH your Facebook Pixel and Facebook Conversions API simultaneously with automatic event deduplication. This ensures the most accurate tracking while bypassing ad blockers and iOS restrictions.

  1. Enter a Pixel Name (can be any name for your reference, e.g., "Main Website Pixel")

  2. Add your Meta Pixel ID (also called Dataset ID; find this in Facebook Events Manager)

  3. Add your Meta Pixel Access Token (go to Meta Events Manager > Datasets > select your dataset (Pixel) > Click Settings > Scroll down to Setup Direct Integration section > Click Generate Access Token > Copy it and paste into PixelFlow)

  4. Click Next

Need help finding your credentials? Check out our guide: How to Find Your Meta Pixel ID and Access Token

7. Activate PixelFlow in WordPress Plugin

Now that your pixel is configured in the dashboard, return to your WordPress admin panel to activate tracking. You'll see that the information between your dashboard and the plugin is synchronized.

  1. Go back to Settings → PixelFlow Settings in WordPress

  2. Toggle ON the Activate PixelFlow switcher

  1. Click the Save Changes & Insert Script button

Your PixelFlow tracking script is now active! PixelFlow will automatically begin tracking Page View events on your WordPress site within 2-3 minutes.

Clear your cache: If you use any caching plugin (such as WP Rocket, W3 Total Cache, or WP Super Cache), you must clear your cache to ensure the PixelFlow script loads on your live website.

8. Interact with Your Site and See Confetti

The final wizard step helps you verify your setup is working correctly.

  1. Visit your live website in a new browser window or incognito/private mode

  2. Navigate to a few pages on your site (e.g., homepage, then click some links)

  3. Return to the PixelFlow wizard—it will automatically poll for events every 10 seconds

  4. When the first Page View event is detected, you'll see:

    • A confetti animation (purple, pink, and blue particles from center screen)

    • A green congratulations modal: "Congratulations! Your site is now connected to PixelFlow"

    • The wizard will close automatically

  5. Your site status will change to "Connected" in the Pixels table on your Overview page

Setup complete! PixelFlow is now tracking Page View, Add to Cart, Initiate Checkout and Purchase automatically events on your WooCommerce website. Events should appear in your PixelFlow dashboard within 2-3 minutes.

No events appearing? If you don't see events after a few minutes, verify that:

  • "Activate PixelFlow" is toggled ON in the plugin

  • You clicked "Save Settings & Insert Script"

  • You cleared your cache (if using a caching plugin)

  • You're visiting the live site (not a local development environment)

Additional verification:

For detailed verification steps, see How to Test and Verify Your PixelFlow CAPI Setup.

How to Setup More Tracking

There's a number of ways to track more events on your website:

All tracking is unlimited on every plan, with no limits on events or pixels.

Access these settings from your PixelFlow dashboard Overview page or the Events page. Each site can have custom tracking configurations.

Advanced Configuration

There are a number of additional settings you can enable in the plugin:

Exclude Script for User Roles

You may not want to track events for yourself, editors, or other WordPress user roles. By default, all site visitor actions are tracked.

To exclude specific user roles from tracking:

  1. In Settings → PixelFlow Settings, scroll to the Advanced section

  2. Select the user roles you want to exclude (Administrator, Editor, Shop Manager, etc.)

  3. Click Save Settings

User role exclusion settings in PixelFlow plugin

Excluding admin and editor roles prevents test actions from inflating your event counts and ensures your Meta Ads data stays accurate.

Choose Which WooCommerce Events to Track

In your PixelFlow plugin you'll see "Additional Options". This lets you:

  • Toggle ON Track WooCommerce eCommerce Events

  • Select which events to track (all are enabled by default):

    • Add to Cart – Triggered when a customer adds a product to their cart

    • Initiate Checkout – Triggered when a customer begins checkout

    • Purchase – Triggered when a customer completes an order

PixelFlow WooCommerce Settings showing toggles for tracking eCommerce events

What data is tracked? PixelFlow captures all available product data from WooCommerce including product name, ID, price, SKU, categories, quantity, currency, and customer information. This data is automatically enriched and sent to Meta for improved targeting and attribution.

Disable Free Product Tracking

By default, PixelFlow tracks all WooCommerce events including those for free products ($0 value).

To disable tracking for free products:

  1. In WooCommerce Settings, toggle OFF Purchase for free products

  2. Click Save Changes & Insert Script

When disabled, Add to Cart, Initiate Checkout, and Purchase events will not fire for products with a price of $0.

Why track free products? If you offer free trials, lead magnets, or free tiers that convert to paid products, tracking these events helps Meta understand your full conversion funnel and optimize for higher-quality leads.

Manual Tracking with Classes (Optional)

WooCommerce eCommerce events are fully automatic. However, you can still use event classes to track other interactions on your WooCommerce store, such as:

  • Custom buttons (e.g., "Request Quote," "Add to Wishlist")

  • Contact forms

  • Newsletter signups

  • Custom CTAs

See Event Classes on WordPress for instructions on adding tracking classes to custom elements.

Was this helpful?