Engine revenue vs total revenue

What it is

Total revenue is the sum of the store's completed and processing orders in a period (cancelled and refunded orders left out). Engine revenue (attributed revenue) is the sum of the orders where a recommendation touch was found with sufficient evidence (the attribution levels from direct purchase down to view-assisted purchase).

How it is computed

Every order lands in exactly one level, so a euro is never counted twice — engine revenue and control revenue are two slices of the same whole. An attributed order contributes its full amount to engine revenue (not a weighted fraction).

An order can be credited to more than one recommendation. It still counts once: in "where credited revenue comes from" and in a campaign's engine revenue it counts under its strongest credit (the highest attribution level; on a tie, the one found first), and in the top converted products each bought product's line counts once.

Only completed and processing orders count, in engine revenue, control revenue and the order counts beside them: a cancelled or refunded order adds nothing, and an order with a zero total (a test order, for example) is not in the order counts. The daily figures are stored once a day, so the days up to 4 October 2026, stored under the earlier rule, still include the cancelled orders they counted then.

Email revenue (click-based)

The Insights campaign table shows an "Email revenue (7d)" column next to engine revenue. It answers "how much money did this email bring in at all", not just "how much did the recommendations bring":

  • An order counts under an email when the customer clicked any link in that email (not just a recommendation) within 7 days before the order.
  • Every order counts under exactly one email — last click wins.
  • Engine-attributed orders are always included, so engine revenue is always a subset of the email's revenue. Such an order counts under the same email as in engine revenue (its strongest credit), even when it is credited through several emails (PRO-3786).
  • Only completed and processing orders count; a cancelled or refunded order adds nothing.
  • The click-based part leaves out the customers of a running control group (engine-attributed orders never come from them).
  • An automated email's row follows the same rules. A purchase after a click on the store's own Smaily automation, with no recommendation involved, is counted here only — not in the credited purchases by channel.

This is the same methodology used by GA/UTM-based "Campaign Revenue" tools (such as Smaily's), but computed from our data. The numbers will NOT match Google Analytics one-to-one, and that is expected:

  • We match by contact, GA matches by session/device. If a customer clicks the email on their phone and buys later on a laptop, GA loses the connection and we do not — our number therefore tends to be higher.
  • GA loses part of the traffic to consent banners and ad blockers. Our click data comes from the Smaily action log, which is unaffected.
  • A guest checkout under a different email address stays unmatched on our side (in GA the UTM may live on in the session) — here we lose some.
  • History starts when data collection started: campaigns older than our click history show "—" in the column.

Extra revenue, channels and influenced revenue (Home)

The console Home leads with extra revenue thanks to Intelligence: the extra revenue of the customers who get recommendations over the control group that does not (lift and incrementality). It is the only figure on Home that measures cause, and it covers every channel: a control-group customer gets no recommendations from Intelligence — in no email and not on the store's pages — so the difference holds the effect of all three. The store's own campaigns and automations reach both groups. Once a purchase has been credited to the storefront, a line under it gives that date: the figure includes the storefront from then at the latest. The engine logs no storefront request, so the first storefront purchase is the only date it has.

Credited purchases by channel come next, for the last 30 days (Insights shows the same three groups for its chosen period). Each completed or processing order counts once, at its full amount, in one channel, taken in this order:

  1. Storefront — the order has a click-based attribution that is a storefront one: it matched by the store plugin's cookie and the order carries the storefront context.
  2. Automated emails — otherwise, the order is credited to a live automated email of the engine by the rule of the automated-emails block, always after a click on that email: its attribution's last email touch is a click on that email, or it has no attribution and the customer's last click in the 7 days before the order was on that email. An open alone never counts. Any other Smaily automation of the store (a plugin or sign-up flow, the store's own) counts only when its email carried the recommendation: the attribution's last email touch is that automation and the customer clicked it in the 30 days before the order. An order with no attribution is never credited to such an automation — it is in the email revenue of the automation's row in the Insights table.
  3. Regular emails — otherwise, the order has a click-based attribution (direct purchase, later exact purchase, indirect same-session and indirect later; the store plugin's cookie counts as a click).

The line under the blocks is their sum — no order is in two blocks. An order made in the shop (channel: in_store, sent by a second order source) is credited by the same rules and sits in one of the three blocks; Of which in store shows their part of the sum. These are credited purchases, not the extra revenue: they still include orders that would have happened anyway, so they are never added to the extra revenue. The three blocks count the same orders as engine revenue except view-assisted purchases (orders credited without a click on a recommended product), which only engine revenue counts — and the automated-emails block when the customer's last email click was on the automated email. Engine revenue is on Insights.

Revenue influenced by Smaily emails sits below them, the broadest figure:

  • An order counts when the customer opened or clicked any Smaily email of your store — a campaign or an automated email — within 7 days before the order.
  • Each order counts once, at its full amount. Only completed and processing orders count.
  • Every customer counts, the holdout group included: the figure is about all of your Smaily emails, not only the recommendations.
  • Shown for the last 30 days and for each of the last three full calendar months (UTC), when it is above €0. Your control group, who get no recommendations, earns this revenue at the same level per customer as the customers who get them, so it cannot say what the service added.

This is the open-based figure most email tools report, so it is the largest of the figures, and it says that an email was part of the path to the order, not that the email caused it. An open is a weak signal: some mail apps open every email automatically. Read the three together: the extra revenue says what the service added, the channels where the credited purchases came from, and the influenced revenue how much of your revenue your Smaily emails touch.

How to interpret it

  • Engine revenue is a lower bound, not the exact impact. Because of the evidence bar, some real influence (e.g. a customer saw a recommendation and later searched the store for it) ends up on the control side.
  • Email revenue and engine revenue side by side show what share of the money an email brought in came from the personalised recommendations.
  • Do not compare engine revenue directly with other tools' "email revenue" — many count every purchase preceded by any open. Engine revenue does not. Same logic as excluding the open-based "influenced purchase" from revenue. The Home figure "revenue influenced by Smaily emails" does count opens, on purpose: compare that one with other tools.
  • To prove impact, use incrementality measurement — attribution shows association, the holdout proves causation.

Common misreadings

  • "Engine revenue is small — is the engine not working?" — check three things first: (1) is the store plugin installed and passing recommendation links through, (2) how long the system has been running at all (signal accumulates over weeks), (3) what share of your emails actually contain recommendation blocks.
  • "Can I add total revenue and engine revenue together?" — no, engine revenue is a part of total revenue, not an addition to it.

Technical background

Computation: lib/metrics/compute-daily.ts (ATTRIBUTED_TYPES, total_revenue_attributed, control_revenue; purchase orders only, purchasedOrderSql in lib/orders/purchase-status.ts); the same list is used by campaign rows (lib/smaily/campaign-rows.ts) and console Insights (lib/story/insights-data.ts), also for purchase orders only. Daily rows live in lift_metrics_daily (nightly cron + live computation of today/yesterday from the same code).

Revenue influenced by Smaily emails: lib/metrics/email-influenced-revenue.ts — purchase orders with an open or click in email_events by the same customer in the 7 days before the order. Credited purchases by channel: lib/metrics/channel-revenue.ts (rec_attribution with the types REC_CLICK_ATTRIBUTION_TYPES in lib/engine/attribution/types.ts; the storefront rule storefrontChannelSql in lib/engine/attribution/channel.ts; the automated-email credit automationCreditCtes in lib/automations/console-summary.ts).

Email revenue: lib/smaily/campaign-rows.ts (totalRevenue) — the customer's last click from email_events ≤7 days before the order, unioned with engine attribution at the order level. Engine attribution wins per order because Smaily does not track recommendation-field links the way it tracks regular campaign links — the store plugin's cookie path covers clicks that never reach the action log (see attribution).

Last updated: 2026-11-13