About this plugin
WooCommerce shows you revenue. Profit Lens shows you what’s left after the
real costs: product cost, payment gateway fees, shipping, and refunds.
What Profit Lens does (free, self-hosted, no external account)
- Net profit and net margin for any date range, calculated from the Cost of
3+).
- Per-order and per-product profit breakdown.
- Cost breakdown: product cost, gateway fees, shipping, refunds.
- Cost coverage: how much of your revenue is backed by a known product
cost, so you know how much to trust the profit number.
- Everything is calculated on your server. Nothing about your store or
your orders is sent anywhere.
What’s in Profit Lens Pro
Profit after ad spend and ROAS by campaign, once you connect a Meta Ads or
dev. The free
plugin in this repository is fully functional on its own; Pro adds
analytics that depend on an external ad account, not features held back
from the free version.
Source Code
The complete source code, including all JavaScript source files, is
publicly available on GitHub:
com/arc7dev/profit-lens
To build from source:
- Clone the repository.
- Run npm install.
- Run npm run build.
The src/ directory contains all unminified JavaScript and React source
files. The build/ directory contains the compiled assets included in
the plugin.