Track WooCommerce Profit for Your Meta and Google Ads and Analytics

Tracking only revenue when running ads can be misleading. Profit gives you a better understanding of how your ads actually perform.

Get expert tracking tips in your inbox

Join 65,000+ marketers and site owners who already get our best guides on Meta Pixels, CAPI, GA4, Google Ads, TikTok & Pinterest tracking, GDPR, and more.

* We don’t spam, and all our emails have an “Unsubscribe” link that works. 

Most advertisers track revenue from their ads. That makes sense. Revenue is easy to measure, and it tells you what sales your ads generated.

The problem is that revenue can be misleading. An ad can drive sales and still leave you with very little profit, or even a loss.

With PixelYourSite, you can track revenue and profit at the same time, so you get a much clearer view of what your ads are really producing.

What You Need to Make Profit Tracking Work

Before you start, make sure these pieces are in place.

Stack

WooCommerce + PixelYourSite

Optional, but recommended:

PixelYourSite WooCommerce Cost of Goods

Data

Profit tracking needs Cost of Goods data inside WooCommerce.

You can use either:

  • WooCommerce native Cost of Goods
  • PixelYourSite WooCommerce Cost of Goods

Setup

Inside PixelYourSite → WooCommerce, enable Profit Tracking.

This keeps:

  • Purchase for revenue
  • ProfitConversion for profit
  • API or Measurement Protocol for delivery

Make sure the API is configured for Meta and Measurement Protocol is configured for Google Analytics. ProfitConversion is an API-only event for privacy reasons.

Wait for data

Let a few real orders come in first.

Once a few orders trigger ProfitConversion, the setup is ready.

What You Can Do With the Data

Meta

Create a custom conversion based on ProfitConversion and include it in your reports.

Google Analytics

Create a custom metric from the profit parameter and use it in your reports or Explorations.

Google Ads

Import ProfitConversion from GA4 as a conversion and use it as a separate profit signal.

The Better Way to Track Ad Performance

Revenue shows sales. Profit shows what those sales actually produced. That is why the best setup is to track both, separately.

Keep tracking revenue the normal way and add profit as a separate event.

With PixelYourSite, that means:

Purchase Event tracks revenue.
ProfitConversion Event tracks profit.

You keep the standard Purchase event for the total order value, and add ProfitConversion as a separate event for profit.

This gives you a cleaner way to report performance across ads and analytics.

Why Revenue and Profit Need Two Different Events

Purchase is a standard event, and its value is your revenue. That is the default and correct way to use it.

You do not want to replace Purchase revenue with profit.

If you swap revenue for profit on the Purchase event, reporting becomes confusing, and sales optimization can break down. Purchase is supposed to represent the total value of the order. That is standard, clear, and expected.

That is why PixelYourSite keeps Purchase for revenue and uses a separate event for profit: ProfitConversion.

There is a second reason too: privacy.

Purchase is usually sent both through the browser and the API. That is exactly how it should be. This event is too important to rely on only one delivery method. All your ads conversion measurement and optimization rely on it.

But browser events can be inspected with tools like Meta Pixel Helper or Google Tag Assistant.

That is not a problem for revenue. Revenue is not secret. It is simply the order total, usually the sum of the products purchased, plus shipping if that is included. Anyone placing an order can already see that.

Profit is different.

Profit reveals your margins. It shows what is left after cost of goods, and that is sensitive business information. You do not want it visible in browser-based testing tools.

That is why PixelYourSite sends ProfitConversion as an API-only event.

You keep Purchase as the standard revenue event delivered using both browser tags and APIs.
You use ProfitConversion as the private profit event.

That gives you both:

  • standard revenue tracking for reporting and optimization
  • private profit tracking for deeper ads and analytics insights

How ProfitConversion Calculates Profit

ProfitConversion uses a simple formula:

Profit = order revenue – total cost of goods

Revenue comes from the WooCommerce order total. Cost of goods comes from the products included in that order.

So if an order has $200 in revenue and $120 in total cost of goods, ProfitConversion sends $80 profit.

This gives you a much better signal for ads and analytics reporting. Revenue shows the sale. Profit shows what that sale actually produced.

ProfitConversion is based on cost of goods, not full accounting profit. It is not trying to include every business expense. Its role is to give you a more useful performance signal than revenue alone.

Where the Cost Data Comes From

ProfitConversion needs cost of goods data to calculate profit.

It can use native WooCommerce Cost of Goods or PixelYourSite WooCommerce Cost of Goods.

So if you already use WooCommerce Cost of Goods, you can use that data right away.

If you want an easier and more flexible setup, use PixelYourSite WooCommerce Cost of Goods. It makes cost configuration simpler, easier to manage, and faster to put in place. It also supports practical rules, like a flat cost percentage, when you need a faster starting point.

That means you can either work with the cost data you already have or use PixelYourSite Cost of Goods to make the whole setup easier.

Use ProfitConversion in Meta

Meta is one of the best places to use ProfitConversion because it lets you keep revenue and profit separate inside the same reporting workflow.

Keep Purchase as your revenue event. Then create a custom conversion based on ProfitConversion so you can report on profit separately.

Step 1: Create a custom conversion for ProfitConversion

Go to Meta Events Manager.

Open Custom Conversions and click Create custom conversion. Then create a rule based on the ProfitConversion event and give it a clear name, such as Profit or Order Profit.

The goal is not to replace Purchase. The goal is to add a second conversion that represents profit.

Now you have one signal for revenue and another for profit.

Step 2: Add ProfitConversion to your Meta report

Open Ads Manager.

Click Columns, then Customize columns.

Search for your profit custom conversion and add the profit-related columns to your report.

A practical report should include:

  • Amount spent
  • Purchases
  • Purchase revenue or purchase conversion value
  • Purchase ROAS
  • Profit custom conversion results
  • Profit custom conversion value

Now you can see sales, revenue, spend, and profit in the same report.

Step 3: Create a custom metric for profit after ad spend

In Ads Manager, go to Columns → Customize columns → Create custom metric.

Create a metric called something like:

Profit after ad spend

Then build a formula that subtracts Amount spent from your Profit custom conversion value.

That gives you a more useful signal than revenue alone.

Revenue tells you what came in.
Profit tells you what the order produced.
Profit after ad spend gets you closer to what the campaign actually contributed.

Recommended Meta view

For most advertisers, the best Meta setup includes:

  • Purchase for revenue
  • ProfitConversion custom conversion for profit
  • Amount spent
  • Purchase ROAS
  • Profit custom conversion value
  • Profit after ad spend custom metric

That gives you a report you can actually use to judge ad performance.

Use ProfitConversion in Google Analytics

Google Analytics gives you a different but equally useful way to work with ProfitConversion.

The event includes a numeric parameter called profit. GA4 lets you create custom metrics from numeric event parameters.

So instead of looking only at purchase revenue, you can add profit as its own reporting metric.

Step 1: Make sure GA4 receives the profit parameter

Before creating the metric, make sure the ProfitConversion event and the profit parameter are being collected.

A simple way to check is in the Realtime report: Place an order and check if there is a ProfitConversion event reported in real time.

Step 2: Create the custom metric

In GA4, go to:

Admin → Data display → Custom definitions → Custom metrics → Create custom metric

Create the metric like this:

  • Metric name: Profit
  • Event parameter: profit
  • Unit of measurement: Currency

Custom metrics created from event parameters may take 24–48 hours to appear in reports.

Step 3: Add profit to your GA4 reports

Once the metric is available, open a detail report in GA4, click Customize report, then go to Metrics and add your new profit metric.

A good place to start is with reports where you already look at:

  • traffic sources
  • campaigns
  • landing pages
  • channels

That puts revenue and profit side by side inside GA4.

Step 4: Use profit in Explorations

GA4 Explorations make this even more useful.

Open or create a Free-form exploration, add your custom profit metric, and use dimensions such as:

  • Session source / medium
  • Session campaign
  • Default channel group
  • Landing page
  • Device category

This is where profit starts to change how you read performance.

Instead of looking only at traffic or revenue, you can see which campaigns and traffic sources actually produce stronger profit.

Recommended GA4 use

The simplest GA4 setup is:

  • keep your normal purchase revenue reporting
  • create a custom metric from the profit parameter
  • add that metric to your detail reports
  • use it in Explorations for campaign and source analysis

That gives you a much better analytics layer without changing your normal revenue tracking.

Use ProfitConversion in Google Ads

Google Ads can use GA4 events as conversions. If your GA4 property is linked to Google Ads, you can import GA4 key events into Google Ads and use them for reporting, and in some cases for bidding too.

That makes ProfitConversion useful in Google Ads as well.

PixelYourSite sends ProfitConversion with 2 events tracking the profit value:

  • the profit parameter
  • the value parameter.

The two parameters track the same thing, total minus cost of goods sold, but they are used differently.

The profit parameter is useful inside GA4, where you can create a custom metric and use it in reports and Explorations. The event value is what makes ProfitConversion useful for Google Ads, because when Google Ads imports a GA4 key event, it can import that event’s value too.

So the setup is simple:

  • use the profit parameter for GA4 reporting
  • use the event value to import ProfitConversion into Google Ads

That gives you a profit-based conversion inside Google Ads without replacing your normal Purchase conversion.

Step 1: Make ProfitConversion a key event in GA4

Before importing it into Google Ads, ProfitConversion needs to exist in GA4 as a key event, or be selected in GA4 Conversion management so it becomes one during the import flow.

This is where sending profit as the event value matters. When the event is imported into Google Ads, that value comes with it.

Step 2: Import it into Google Ads

In Google Ads, go to:

Goals → Conversions → Summary → New conversion action → Import → Google Analytics 4 properties → Web

Then select ProfitConversion and import it.

Now Google Ads can treat ProfitConversion as its own conversion action.

Step 3: Start with it as a secondary conversion

This is the smartest way to begin.

Google Ads supports primary and secondary conversion actions. Primary actions are used for bidding optimization. Secondary actions are mainly for observation and reporting.

So the safest starting setup is:

  • keep your normal Purchase conversion for revenue
  • import ProfitConversion from GA4
  • use ProfitConversion as a secondary conversion first

That lets you compare revenue-based and profit-based results without changing bidding right away.

Step 4: Compare revenue and profit inside Google Ads

Once imported, ProfitConversion gives you a second conversion signal inside Google Ads.

That means you can compare:

  • purchase conversions
  • purchase conversion value
  • amount spent
  • ProfitConversion conversions
  • ProfitConversion value

This is a much better way to read account performance.

Revenue still shows sales.
ProfitConversion shows what those sales actually produced.

Step 5: Decide later if you want to optimize toward profit

Once you have enough data, you can decide whether ProfitConversion should stay a reporting signal or become part of your bidding setup.

That is one of the advantages of importing it through GA4. You do not need to make that decision on day one. You can start by observing it, learn from the data, and only test optimization later if it makes sense.

Why this matters

This gives you a much stronger Google setup.

In GA4, you can analyze profit using the profit parameter.

In Google Ads, you can import ProfitConversion because profit is also sent as the event value.

So you are not stuck with revenue-only reporting.

You can keep your normal purchase conversion, add a separate profit conversion, and compare both side by side.

That is a much better way to understand ad performance.

Don’t stop here!

Subscribe to get more tips on tracking, analytics, and GDPR.

We’ll send you practical guides on Meta Pixel, CAPI, GA4, Google Ads, TikTok, Pinterest, GDPR compliance, and more, right to your inbox.

* We don’t spam, and all our emails have an “Unsubscribe” link that works. 

How to Track Influencer Sales on WooCommerce with PixelYourSite

Every time an influencer sends a visitor to your store who ends up buying, PixelYourSite Pro fires a dedicated event for that influencer. You get one event per influencer per sale — ready to count in your GA4 reports, pay commissions on, and use as audience seeds in Google Ads or Meta.

EDD License Tracking with PixelYourSite

Track Easy Digital Downloads license creation, renewals, upgrades, and expirations. Use these events for smarter renewal reminders, upgrade campaigns, GA4 reports, and customer audiences.

Find out when we have the next BIG OFFER!

Over 70 000 business-owners have access to our BIG DISCOUNTS. Don't miss the next one: