Skip to main content

Profit Optimization for Meta

Send profit data to Meta as a custom event so you can optimize your campaigns on profitability instead of revenue.

Written by Pico

With Profit Optimization, TrackBee sends an extra event to Meta with the profit of each order, not just the revenue. This lets you judge and optimize your Meta campaigns on what you actually earn, next to your normal ROAS.


How it works

When Profit Optimization is on, every order sends one extra event to your Meta dataset (pixel), next to the normal Purchase event:

  • PurchaseProfit: the same order, but with the profit of the order as its value instead of the revenue.

TrackBee calculates that profit as the order total minus your product costs:

  • From Shopify: if a product has a "Cost per item" in Shopify, TrackBee uses that.

  • Fallback cost of goods: if a product has no cost per item, TrackBee uses the fallback percentage you set in TrackBee. With a fallback of 30%, TrackBee treats 30% of the product's revenue as cost and sends the remaining 70% as profit.

So you don't need a cost for every single product. The fallback makes sure every order carries a profit value.


Step 1: Enable Profit Optimization in TrackBee

  1. Log in to TrackBee and go to Stores, then open your store.

  2. Open your Meta setup. The Profit Optimization step is part of it.

  3. Switch the toggle on.

  4. Set your Fallback cost of goods percentage. It is used for every product without a cost per item in Shopify.

  5. Save.

From now on, TrackBee sends PurchaseProfit with every order!

Tip: for the most accurate profit data, fill in the cost per item in Shopify for as many products as you can. The fallback is a safety net, not a replacement.


Step 2: Show profit in Meta Ads Manager

Meta receives PurchaseProfit right away, but it does not show up as a column in Ads Manager by itself. You first create a custom conversion for it in Events Manager. TrackBee can't do this for you, because it lives inside your Meta Business Manager.

Create the custom conversion

  1. Open Meta Events Manager and click Custom conversions in the menu on the left, then Create custom conversion.

  2. Fill in the form with these settings:
    ​Name -> Purchase Profit - TrackBee
    ​Description -> optional
    ​Data source -> the dataset (pixel) your ad account runs its ads with. This is the same dataset you connected in TrackBee.
    ​Action source -> Website
    ​Event -> PurchaseProfit. Open the dropdown and pick the event itself. Do not leave it on "All URL traffic".
    ​Choose a standard event for optimization -> click Select your own category and choose Purchase. Don't leave it on the category Meta picks for you.
    ​Rules -> Meta requires at least one rule, so add one that every order passes: URL -> doesn't contain -> a word that never appears in your URLs, for example url-should-never-contain-this-value. Never use "URL contains yourshop.com": that drops every order that doesn't match.
    ​Enter a conversion value -> leave unticked. Meta uses the profit value that comes with the event.

  3. Click Create.

Right after you create it, the custom conversion can say it is waiting for activity. That's normal. It fills up as new orders come in.

Add the column in Ads Manager

  1. In Ads Manager, open Columns and choose Customize columns.

  2. Search for Purchase Profit - TrackBee and tick the Total, Value and Cost per columns.

  3. Click Apply.

The Value column is your profit per campaign, ad set or ad. Divide it by the amount spent and you have your Profit on Ad Spend (POAS).


Good to know

  • Give Meta time. It can take up to 72 hours before conversions show in the custom conversion column, even when Events Manager already receives the event.

  • Several ad accounts or Business Managers? Custom conversions belong to a dataset. Create one on every dataset your ad accounts advertise with. An ad account that runs on a dataset without the custom conversion keeps showing an empty column, even when the event arrives fine.

  • Check the Event field first when a column stays empty. Nine out of ten times the custom conversion was created on "All URL traffic" with a "URL contains" rule, so it only counts orders whose URL matches, or nothing at all. Open the custom conversion and make sure Event says PurchaseProfit and Category says Purchase.

  • The profit event is sent next to your regular Purchase event. It does not replace it, so your normal ROAS stays as it is.

  • If a product has a cost per item in Shopify, that value always wins over the fallback percentage.

  • Changing your fallback percentage only affects new orders. Earlier events are not recalculated.

  • Profit Optimization is also available for Google Ads, TikTok and Snapchat. Each has its own guide.


Need help?

Questions or stuck on a step? Send us a message in the chat. We're always happy to help!

Did this answer your question?