PerfSell
All articles

Profitability · 5 min read

E-commerce advertising: how to measure campaign profitability

Bring spend from Mirakl Ads, Meta Ads and Google Ads together with store sales to calculate margin after ads. Includes a worked example and the PerfSell integration roadmap.

Written by Arthur BrackaCo-founder of PerfSell
A notebook with a bar chart, a blue calculator and a parcel on a pale desk.
In this article

A ROAS of 4 can look reassuring. If a campaign cost €1,200, the ad platform attributes €4,800 in sales to it. To decide whether to renew that budget, you also need to know what the store actually sold, what those orders cost and how much margin is left after advertising. Here is how to bring those figures together for the same period.

Which accounts can you track in PerfSell?

Ad platformScopePerfSell access
Mirakl AdsSponsored products on supported marketplacesSpend, clicks and impressions for supported stores
Meta AdsFacebook and Instagram campaigns linked to a Shopify storeReporting on request for eligible stores
Google AdsGoogle campaigns linked to a Shopify store, including Search and ShoppingReporting on request for eligible stores

A Mirakl store and a Shopify site each have their own sales and costs. Link each ad account to the store it funds. If one account covers several sites or brand-wide awareness campaigns, check its scope before assigning the budget to a store. Bids, budgets and creatives are still managed in the ad platforms.

Align dates and amounts before comparing

Choose a completed period, such as Monday through Sunday. Check each account’s time zone, currency and VAT treatment. A dollar-denominated ad report and euro-denominated orders require a consistent currency conversion. Different cutoffs can shift daily totals between accounts even when the spend itself imported correctly.

Start with the store’s net sales excluding VAT, after discounts and refunds. Match product costs, commissions, payment fees and fulfilment costs to the same scope. Check for missing days and costs already included elsewhere. Investigate days with missing data before concluding that there was no spend.

Calculate margin after advertising

Deduct ad spend once. The result is the period’s contribution margin for the costs you included. The fictional example below leaves out fixed costs such as payroll and rent.

ItemAmount
Net sales excluding VAT€12,000
Product costs−€6,000
Commissions and payment fees−€1,100
Fulfilment and shipping−€900
Other variable costs−€500
Margin before advertising€3,500
Ad spend−€1,200
Margin after advertising€2,300

Out of €12,000 in net sales excluding VAT, €2,300 remains. That is 19.2% after advertising, compared with 29.2% before. The €4,800 the ad platform attributes to the campaign helps you read its report. It is not added to the €12,000 recorded from orders. If two platforms both take credit for a sale, the store still took one order.

What do CPC, CTR and ROAS tell you?

  • CPC divides spend by clicks. It shows how much a click costs. Compare the same type of click, such as a link click, when reports use different definitions.
  • CTR divides clicks by impressions. It helps you spot ads that attract attention. Read it alongside CPC and results on your site.
  • ROAS divides attributed sales by spend. Use the same attribution settings when comparing. Counting a purchase after a view can produce a different ROAS from counting purchases after clicks alone.
  • Margin after advertising answers the financial question at store level. Track it as both an amount and a percentage for the same set of orders.

If ROAS rises while margin falls, review discounts, product costs and refunds. If clicks get cheaper but orders stall, check the landing page and product availability before raising the budget.

Review your results every week

  1. Select the store and compare two weeks of the same length. Note promotions, stockouts and price changes that could explain part of the difference.
  2. Check spend for the linked accounts. If it differs from the platform, start with the time zone, currency, campaign filters and most recently imported days.
  3. Look at margin before and after advertising. If you spent more, check whether the resulting margin in euros rose enough to justify the extra spend.
  4. Write down one decision and set a review date. Record the budget, products promoted and the margin you expect to keep.

For an eligible Shopify store, a day’s ad spend can be allocated to that day’s orders in proportion to sales excluding VAT. That allocation helps you account for costs per order. To see which campaign a platform credits for a sale, use its attribution report and check the measurement window.

Amazon Ads and TikTok Ads are our priorities for the end of 2026

We are targeting the end of 2026 for progress on two reporting integrations. Timing depends on platform access and testing with authorised accounts.

  • Amazon Ads. The first planned scope is Sponsored Products reporting. The aim is to show spend and campaign metrics for an authorised Amazon Ads account. Access remains subject to Amazon’s approval.
  • TikTok Ads. We plan to start with spend and delivery metrics for campaigns associated with an online store. Availability depends on access permissions and validation of the first reports.
  • Pinterest Ads. This is an option we are evaluating for merchants whose products suit visual discovery. Pinterest offers a reporting API, and a PerfSell integration remains under consideration.

For the first two integrations, we will start by reading reports and reconciling dates, currencies and totals with each ad platform. We will share the scope and access conditions when they open.

To see the workflow, open the advertising demo, choose an ad platform and date range, then select Profitability. If you already use Mirakl Ads, read our Mirakl Ads guide. To check Google or Meta access for your Shopify store, contact the PerfSell team.

Further reading

Sources used in this article. Illustrative examples are not client results.