Skip to main content

Thread Transfer

CAPI Setup for WordPress/WooCommerce: Complete Walkthrough

WooCommerce CAPI setup trips up even experienced developers. Here's the complete walkthrough from plugin selection to verified event delivery.

Jorgo Bardho

Founder, Meta Ads Audit

June 5, 202513 min read
CAPIwordpresswoocommerceserver-side tracking
WordPress WooCommerce to Meta CAPI setup diagram

WordPress and WooCommerce CAPI setup is more complex than Shopify—there's no single "official" integration. You're choosing between plugins, each with different capabilities, configuration requirements, and potential conflicts. Pick the wrong plugin or misconfigure settings, and you'll have tracking gaps, duplicate events, or worse—broken checkout flows.

This guide walks through the complete CAPI implementation for WordPress and WooCommerce, from plugin selection to verification. By the end, you'll have server-side tracking that achieves high Event Match Quality and captures the conversions your pixel misses.

Plugin Options for WordPress CAPI

Unlike Shopify's native integration, WordPress requires a third-party plugin for CAPI. The main options are:

Facebook for WooCommerce (Official)

Meta's official plugin. Handles pixel, CAPI, and catalog sync. Free but limited customization.

  • Pros: Official support, automatic event mapping, catalog sync
  • Cons: Limited advanced configuration, occasional compatibility issues
  • Best for: Standard WooCommerce stores with basic tracking needs

PixelYourSite

Popular third-party plugin with extensive customization. Free version available; Pro unlocks CAPI.

  • Pros: Highly configurable, supports multiple pixels, good documentation
  • Cons: CAPI requires Pro version ($150/year), learning curve
  • Best for: Stores needing advanced configuration or multiple pixels

Pixel Manager for WooCommerce

Feature-rich plugin supporting multiple ad platforms. Free version with paid Pro features.

  • Pros: Multi-platform support (Meta, Google, TikTok), active development
  • Cons: Some features require Pro, can conflict with other tracking plugins
  • Best for: Stores advertising on multiple platforms

Server-Side GTM

Not a WordPress plugin—a separate server container that handles all tracking. Most flexible but most complex.

  • Pros: Maximum flexibility, platform-agnostic, enterprise-grade
  • Cons: Requires technical implementation, hosting costs ($50-100/month)
  • Best for: Large stores or agencies with technical resources

Recommended Setup: Facebook for WooCommerce

For most WooCommerce stores, the official Facebook for WooCommerce plugin provides the best balance of ease and functionality. This guide focuses on that implementation.

Prerequisites

  • WordPress 5.6+ and WooCommerce 5.3+
  • PHP 7.4+ (PHP 8.0+ recommended)
  • Meta Business Manager admin access
  • Domain verified in Business Manager
  • Existing Meta Pixel
  • SSL certificate (HTTPS required for CAPI)

Step 1: Install Facebook for WooCommerce

  1. In WordPress admin, go to Plugins → Add New
  2. Search for "Facebook for WooCommerce"
  3. Click Install Now, then Activate
  4. You'll see a new "Marketing" menu item with Facebook submenu

Note: If you have any existing Facebook/Meta pixel plugins, deactivate them first to avoid conflicts.

Step 2: Connect to Meta Business Manager

  1. Go to Marketing → Facebook in WordPress admin
  2. Click Get Started
  3. Click Connect Account
  4. Log into your Meta account in the popup
  5. Select your Business Manager
  6. Grant all requested permissions
  7. Complete the authorization flow

The plugin will now show connected status. Next, configure specific assets.

Step 3: Configure Pixel and CAPI

Select Your Pixel

  1. In the Facebook for WooCommerce settings, find Pixel section
  2. Select your pixel from the dropdown
  3. If not visible, ensure your Meta account has access to the pixel

Enable Conversions API

  1. Find Conversions API or Server Events section
  2. Toggle Enable Conversions API to ON
  3. You may need to generate an access token—the plugin will guide you

Generate Access Token (If Required)

Some plugin versions require a manual access token:

  1. Go to Events Manager in Meta Business Suite
  2. Select your pixel → Settings
  3. Find Conversions API section
  4. Click Generate Access Token
  5. Copy the token and paste into the WordPress plugin

Step 4: Configure Event Tracking

The plugin automatically tracks standard WooCommerce events. Verify these are enabled:

Standard Events (Should Be Auto-Enabled)

WooCommerce ActionMeta EventTrigger
Product page viewViewContentSingle product page load
Add to cartAddToCartCart button click
Begin checkoutInitiateCheckoutCheckout page load
Add paymentAddPaymentInfoPayment method selected
Purchase completePurchaseThank-you page load

Verify Event Configuration

  1. In plugin settings, check that each event type is enabled
  2. Verify "Send to Conversions API" is checked for each event
  3. Ensure value and currency parameters are configured

Step 5: Configure Data Sharing

For optimal Event Match Quality, enable all available customer data parameters:

Customer Data Parameters

  • Email: Enable—strongest matching signal
  • Phone: Enable if collected at checkout
  • First name / Last name: Enable
  • City / State / Zip / Country: Enable
  • External ID: Enable (uses WooCommerce customer ID)

Browser Data Parameters

  • Client IP address: Enable—helps with matching
  • User agent: Enable—additional matching signal
  • fbp cookie: Enable—critical for attribution
  • fbc cookie: Enable—links clicks to conversions

Step 6: Domain Verification and AEM

Verify Domain (If Not Already Done)

  1. Go to Business Settings in Business Manager
  2. Navigate to Brand Safety → Domains
  3. Add your domain and choose verification method
  4. For WordPress, DNS TXT record is usually easiest
  5. Complete verification—may take up to 72 hours

Configure Aggregated Event Measurement

  1. In Events Manager, go to your pixel
  2. Click Aggregated Event Measurement
  3. Select your verified domain
  4. Prioritize events: Purchase (1) → InitiateCheckout (2) → AddToCart (3) → ViewContent (4)
  5. Click Apply—changes take up to 72 hours

Step 7: Connect Product Catalog (Optional)

For Dynamic Product Ads, sync your WooCommerce catalog:

  1. In Facebook for WooCommerce settings, find Catalog section
  2. Click Create Catalog or connect existing
  3. Select products to sync (all or specific categories)
  4. Enable automatic sync

Catalog sync enables content_ids matching between events and your product feed.

Testing Your Implementation

Test 1: Pixel Helper Verification

  1. Install Meta Pixel Helper Chrome extension
  2. Browse your WooCommerce store
  3. Verify PageView fires on all pages
  4. View product → verify ViewContent with content_ids
  5. Add to cart → verify AddToCart with value
  6. Go to checkout → verify InitiateCheckout

Test 2: Server Events Verification

  1. Go to Events Manager → Your Pixel → Test Events
  2. Enter your site URL and open it
  3. Complete a test purchase (use test mode or manual order)
  4. Return to Test Events—verify Server events appear alongside Browser events
  5. Check event_ids match between Browser and Server

Test 3: Event Match Quality

  1. In Events Manager, check EMQ score for Purchase events
  2. Target: 7+ (good), 8+ (great)
  3. If below 6, review data sharing configuration

Troubleshooting Common Issues

Issue: Plugin Connection Fails

Symptoms: Can't connect to Meta, authorization error, "something went wrong"

Causes:

  • Pop-up blocker preventing authorization window
  • Incorrect Business Manager permissions
  • Plugin conflict with security plugins

Fix:

  1. Disable pop-up blocker for your site
  2. Verify you have admin access in Business Manager
  3. Temporarily disable security plugins (Wordfence, etc.)
  4. Try in incognito browser window

Issue: CAPI Events Not Sending

Symptoms: Browser events appear but no Server events in Test Events

Causes:

  • CAPI not enabled in plugin settings
  • Invalid or expired access token
  • Server unable to make outbound HTTP requests

Fix:

  1. Verify CAPI is enabled in plugin settings
  2. Regenerate access token in Events Manager
  3. Check server can reach graph.facebook.com (hosting firewall)
  4. Review plugin error logs (if available)

Issue: Low Event Match Quality

Symptoms: EMQ below 6 despite CAPI enabled

Causes:

  • Customer data parameters not enabled
  • Guest checkout without email requirement
  • fbp/fbc cookies not being captured

Fix:

  • Enable all customer data parameters in plugin
  • Require email at checkout (WooCommerce default)
  • Verify Meta cookies aren't blocked by consent tool
  • Check plugin is capturing browser cookies

Issue: Duplicate Conversions

Symptoms: Conversion count is ~2x actual orders

Causes:

  • Multiple pixel plugins active
  • Manual pixel code in theme + plugin
  • Deduplication failing (mismatched event_ids)

Fix:

  1. Deactivate all other pixel/tracking plugins
  2. Search theme files for manual pixel code—remove
  3. Verify event_ids match in Test Events
  4. Use only one tracking solution

Issue: Events Fire on Wrong Pages

Symptoms: Purchase event fires on cart page, or ViewContent on non-product pages

Causes:

  • Plugin misconfiguration
  • Theme using non-standard WooCommerce templates
  • Caching showing stale pages

Fix:

  • Review plugin event trigger settings
  • Verify theme is WooCommerce-compatible
  • Clear all caches and test in incognito
  • Check for theme-specific pixel integrations

Advanced Configuration

Custom Events

For events beyond standard WooCommerce actions (newsletter signup, form submission):

  • Use plugin's custom event features if available
  • Add custom JavaScript using fbq('track', 'EventName')
  • For CAPI custom events, may need code-level implementation

WooCommerce Subscriptions

For subscription products, ensure recurring purchases are tracked:

  • Initial subscription → Purchase event
  • Renewal payments → may need custom implementation
  • Check plugin documentation for subscription support

Multisite WordPress

For WordPress multisite with separate stores:

  • Install plugin network-wide or per-site as needed
  • Each site needs separate pixel (or shared with domain distinction)
  • Configure AEM separately for each domain

Maintenance and Monitoring

Weekly Checks

  • Review EMQ scores in Events Manager
  • Compare browser vs server event counts
  • Check for any plugin update notifications
  • Monitor for error messages in plugin dashboard

After Updates

After WordPress, WooCommerce, or plugin updates:

  1. Test all events with Pixel Helper
  2. Verify Server events still appearing
  3. Check EMQ hasn't dropped
  4. Review any changelog for breaking changes

Alternative: PixelYourSite Pro Setup

If Facebook for WooCommerce doesn't meet your needs, PixelYourSite Pro offers more control:

  1. Purchase and install PixelYourSite Pro
  2. Add your Pixel ID in plugin settings
  3. Enable Conversions API and add access token
  4. Configure each event individually with granular control
  5. Set up advanced matching parameters
  6. Enable deduplication

PixelYourSite offers more customization but requires more configuration time. Good for stores with specific tracking requirements.

Key Takeaways

  • Facebook for WooCommerce is the recommended starting point for most stores
  • Enable all customer data parameters for highest Event Match Quality
  • Remove any manual pixel code or conflicting plugins before setup
  • Test both browser and server events before relying on data
  • Configure AEM with Purchase as highest priority
  • Target EMQ of 7+ for optimal optimization
  • Monitor after updates—plugins can break with WordPress/WooCommerce changes

FAQ

Is the official Facebook for WooCommerce plugin good enough?

For most stores, yes. It handles standard ecommerce events well and includes CAPI support. Consider alternatives like PixelYourSite only if you need advanced customization (multiple pixels, custom events, granular parameter control).

Do I need to pay for CAPI on WordPress?

Facebook for WooCommerce is free and includes CAPI. PixelYourSite requires the Pro version ($150/year) for CAPI. Server-side GTM has hosting costs (~$50-100/month). Choose based on your budget and technical needs.

Why is WordPress CAPI setup harder than Shopify?

Shopify controls the entire stack—they built native CAPI into their platform. WordPress is open-source with countless theme/plugin combinations. Plugins must work across this diversity, leading to more configuration and potential conflicts.

Can I use multiple Meta pixels on WooCommerce?

Yes, with the right plugin. PixelYourSite Pro supports multiple pixels. Facebook for WooCommerce typically supports one. Multiple pixels are useful for agency/client separation or tracking different business units.