Shopify net revenue tracked slightly too low
Why your tracked revenue may differ slightly from your actual net revenue
When is this relevant for you?
Only if you use Shopify and sell products with different VAT rates — for example, groceries (7%) together with cooking accessories (19%), or books (7%) together with stationery (19%).
In this case, there may be a deviation of approximately ±0.5–2% from the actual net value, because we have to calculate using an average tax rate.
For everyone else: exactly zero deviation.
The problem: Shopify withholds the tax from us
Shopify provides us with certain data fields in the tracking pixel. According to the official Shopify documentation, the subtotalPrice field should contain the goods value before taxes and before shipping — exactly what we need. In practice, for many shops, it still includes the VAT. This is a known, open gap in Shopify — with no fix date.
What Shopify additionally doesn't give us: the tax broken down by products or separately for shipping costs. We only receive a single number — the total tax on everything combined.
Our solution
We calculate the net value ourselves — as accurately as possible with the available data:
Tax rate = Total tax ÷ (Total revenue − Total tax)
Shipping tax = Shipping costs × Tax rate
Product tax = Total tax − Shipping tax
Net revenue = Total revenue − Shipping costs − Product tax
Calculation example (shop with mixed tax rates):
A customer buys:
- 1x olive oil (7% VAT) — €9.99 gross
- 1x frying pan (19% VAT) — €49.99 gross
- Shipping — €4.90 gross
What Shopify gives us:
| Total revenue (gross incl. shipping) | €64.88 |
| Shipping costs (gross) | €4.90 |
| Total tax (black box — everything combined) | €9.41 |
What we calculate from this:
| Tax rate (average) | 9.41 ÷ (64.88 − 9.41) = 16.97% |
| Shipping tax | 4.90 × 16.97% = €0.83 |
| Product tax | 9.41 − 0.83 = €8.58 |
| Net revenue (tracked) | 64.88 − 4.90 − 8.58 = €51.40 |
For comparison — the actual net value:
| Olive oil net | 9.99 ÷ 1.07 = €9.34 |
| Frying pan net | 49.99 ÷ 1.19 = €42.01 |
| Actual net revenue | €51.35 |
| Deviation | €0.05 = ~0.1% |
In this example, the deviation is minimal. The more extreme the ratio between 7% and 19% products, the greater it becomes — but it always stays below 2%.