PixelYourSite Professional / WooCommerce Tracking / WooCommerce Profit Tracking (ProfitConversion Event)

WooCommerce Profit Tracking (ProfitConversion Event)

Last updated: May 20, 2026

PixelYourSite Pro can send a dedicated ProfitConversion event to your ad and analytics platforms every time a WooCommerce Purchase fires. The event value equals the order profit — so you can optimize and report on margin instead of revenue.

The event is sent server-side via API to:

  • Google Analytics 4 (via the Measurement Protocol) — as a GA4 custom event
  • Meta (Facebook) — via the Conversions API
  • TikTok — via the Events API

Because it’s server-side only, the event will not appear in your browser console or in the PYS Pixel Helper. You will see it in Meta Events Manager (Server), GA4 DebugView, and TikTok Events Manager.

Requirements

Before you enable Profit Tracking, make sure:

  • PixelYourSite Professional 12.5.0 or later is installed and active.
  • A profit source is available. Choose one:
  • The destination(s) you want to fire to are already configured in PYS Pro:

How to enable it

  1. Go to the PixelYourSite Pro → WooCommerce tab.
  2. Find the Track Profit card.
  3. Turn on the Track Profit switcher.
  4. Under the Cost of Goods source selector, pick PixelYourSite Cost of Goods or WooCommerce Cost of Goods (native).
  5. Save changes.

How it fires

The ProfitConversion event is triggered alongside the WooCommerce Purchase event:

  • On the thank-you page (browser-initiated, but sent server-side), and
  • On the order status hooks selected in Advanced Purchase Events (typically processing and completed).

It respects the Fire the event only once for each order option through its own dedup flag, so it will not be duplicated if you keep both triggers enabled.

The event is skipped when:

  • No Cost of Goods source is available or enabled.
  • Any product in the order has no cost value defined.
  • The calculated profit is zero or negative.

In each case the reason is written to the PYS Pro event log.

What is sent

For every destination the event carries the same core data:

  • Event name: ProfitConversion
  • Event value: the order profit (rounded to 2 decimals)
  • Currency: the order currency
  • Order ID: the WooCommerce order number (mapped through wooMapOrderId, so it matches your visible order number if you use a sequential-order-number plugin)
  • Event ID: a unique ID per event, used for deduplication across platforms

The event does not carry the items array or a separate order_total parameter — its only money value is the profit.

How to use it

Once the event is firing, here are the typical plays:

  • Meta Ads. Create a Custom Conversion based on the ProfitConversion event and add it to your ad reports as a custom metric. Build a profit minus spend metric to see margin directly in the Ads Manager report.
  • Google Analytics 4. Mark ProfitConversion as a key event in GA4 and build profit-based reports and explorations. Send the GA4 conversion into Google Ads to bid on profit instead of revenue.
  • TikTok. Use ProfitConversion as a custom optimization signal in your TikTok ad reports.

For the full step-by-step playbook, see the dedicated strategy guide: Track WooCommerce Profit.

Verifying the event

  • Meta: open Meta Events Manager → your dataset → Test Events or the Server tab; look for ProfitConversion.
  • GA4: open GA4 → Admin → DebugView; place a test order and watch for the ProfitConversion custom event with the value and currency parameters.
  • TikTok: open TikTok Events Manager and check your pixel’s event log for ProfitConversion.