01Background & challenge
The real problem was not data volume
Cross-border commerce generates a lot of data and very little agreement.
Four symptoms showed up before any dashboard was built.
The same metric, five values. Conversion rate computed in the ad console, the site backend, the finance extract, and the merchandising sheet disagreed by double digits. Nobody was lying; each used a different denominator, a different window, and a different definition of an order.
The same customer, several identities. Guest checkout, app install, newsletter signup, and a second purchase from a different device produced four records for one person. Retention, lifetime value, and attribution were all computed on fragments.
The same behaviour, several names. One team logged add_cart, another addtocart, a third wrote the event without a position. Aggregation produced a number that looked plausible and meant nothing.
The same revenue, several owners. Search claimed the order, recommendation claimed the order, the campaign claimed the order. Finance saw one order.
The platform’s job was to make these four symptoms impossible, not to add a fifth dashboard that disagreed with the other four.
02What we did
One model across eight domains
The warehouse is organised by subject, not by source system. Eight domains: traffic, behaviour, product, transaction, customer, marketing, search-recommendation, and finance reconciliation.
Star schema first, wide tables later. Facts at the centre, dimensions around them, then public-layer aggregates on top. The order matters: build the wide table first and every new question requires a rebuild; build the star first and the wide table becomes a query, not a project.
Behaviour and transaction joined at the event. The join key is not the order ID; it is the path. An order is the end of a sequence of impressions, clicks, carts, and checkout steps. Without that path, attribution is guesswork. With it, “which placement produced this order” becomes a query.
One product dimension, nine languages. Product attributes are stored once, with multilingual text as an attribute set rather than nine parallel tables. A category tree that differs by site is mapped to a common taxonomy above the site level, and site-specific trees stay below it. This is what makes “same category, different country” comparable at all.
The public layer is contractual. Application-layer tables are treated as interfaces: named, versioned, documented, and not casually changed. When search, recommendation, and reporting all read the same public table, a definition change is a reviewed change rather than three silent drifts.
The metric dictionary: three arguments that forced it
A dictionary is easy to declare and hard to make real. Three concrete arguments made it real.
Argument one: what is GMV. Order value including tax or excluding? Before or after discount? Cancelled orders included until when? Returns netted or tracked separately? Four teams, four answers. The resolution was a single definition with explicit dimensions: gross versus net, tax-inclusive versus exclusive, and a fixed cancellation window — and the dimension became part of the metric name, so no one could report “GMV” without saying which one.
Argument two: what is conversion rate. Orders over visits, orders over sessions, or orders over unique visitors? Each answers a different question. Visits measure traffic quality; sessions measure merchandising; unique visitors measure acquisition. All three are legitimate, and reporting one as “the” conversion rate is how a team ends up optimising the wrong thing. The dictionary now holds three metrics with three names and three owners.
Argument three: who is a new customer. First order ever, first order on this site, or first order in this brand? On a twelve-site group, “new” at group level and “new” at site level differ by a large factor, and acquisition cost per new customer is meaningless without saying which.
The mechanism that made this stick: every metric carries an owner, a definition, a version, and a change log. A metric that changes definition gets a new version; historical data is not silently recomputed, and a comparison across versions is flagged. This is unglamorous and it is the entire point — a number that cannot be reproduced is not a metric, it is an opinion.
The tracking dictionary: position is meaning
Event tracking fails in a specific way: the event fires, the count looks plausible, and the meaning is wrong.
Four layers fix this.
Layer one, event type. A closed list. Add-to-cart, add-to-wishlist, impression, click, checkout step, payment. No synonyms, no team-specific spellings.
Layer two, properties. A fixed schema per event type, with required fields validated at the gateway. Missing product ID or missing page type is a rejected event, not a row with a null.
Layer three, position (SPM). Every impression and click carries a structured position: site, page, module, slot, and item. This is the layer most teams skip, and it is the layer that makes attribution possible. Without position, “which placement converted” is unanswerable, no matter how much data you have.
Layer four, semantics. The dictionary states what each event means, not just what it is called. An impression is a rendered item in the viewport for a defined dwell threshold, not “the API returned it”. A session is defined by the front-end session identifier, not by a thirty-minute server-side gap heuristic.
Double-sided alignment. Web and app SDKs emit the same event names with the same property schema, and a daily reconciliation compares counts between the two paths. Divergence beyond threshold raises an alert — because a channel that under-reports by eight percent will quietly bias every comparison between web and app.
Reporting: fewer reports, one number per question
The reporting layer was not expanded; it was reduced and then rebuilt.
Three layers. An executive layer (a dozen metrics, weekly), a domain layer (search, recommendation, traffic, transaction), and a diagnostic layer (funnels, position performance, query-level detail). Each layer answers a different question and none repeats the layer above.
One number per question. If two reports answer the same question with different numbers, one of them is wrong and both are distrusted. The rule was applied ruthlessly: a metric appears once, at the layer where it is owned, and every other report links to it rather than recomputing it.
Position-level reporting. Because the tracking dictionary carries position, reporting can show slot-level performance: which homepage slot converts, which product-page strip is decorative, which search result position earns its space. This is the report merchandisers actually use.
Attribution: on-site to the slot, off-site to the channel
Attribution was the most contested area, and it was solved by separating two questions that were being mixed.
On-site attribution asks which placement produced the order: search result, recommendation slot, category page, campaign banner. Because every impression and click carries position, this is traceable to the slot. The model is last-touch within the site by default, with a defined window and a documented exception list.
Off-site attribution asks which channel brought the customer: paid search, social, affiliate, email, direct. Nine models were compared — first-touch, last-touch, linear, time-decay, position-based, and four data-driven variants — on the same historical window. The conclusion was not “pick the most sophisticated one”. It was that the model must match the decision it informs. Budget allocation needs a channel-level view with a stable, explainable rule; creative evaluation needs a finer-grained view. One model serving both produces arguments, not decisions.
The cross-device, cross-site problem. Guest checkout, multiple devices, and country-site switching fragment identity. Attribution is therefore computed on unified identity, not on cookie or device, and the identity resolution is versioned so that a re-run of last quarter’s report produces last quarter’s answer.
Tags and unified identity
Tags are layered by purpose: lifecycle (new, active, at-risk, churned), value (RFM bands, price sensitivity), category affinity, and channel preference. Each carries a computation date and an expiry, because a tag without a timestamp is a rumour with a database row.
Unified identity is the backbone. Identifiers — account, email, phone, device — are merged by evidence, with strong and weak links weighted differently, conflicts resolved by a documented rule, and the result stored as a versioned baseline. The rule that matters: a merge must be reversible and auditable. A wrong merge does not just affect one report; it moves a customer’s entire history into someone else’s profile, and every downstream metric inherits the error.
The baseline is versioned for a reason: if last month’s report is re-run, it must use last month’s identity graph, not today’s. Otherwise every historical number silently changes and nobody can tell whether performance improved or the definition moved.

The real-time edge, and why it is documented separately
The data platform also carries a real-time path: behaviour flows in seconds, metrics are computed on rolling windows, identity is resolved within the day, and risk reads the same stream before payment. The engineering detail — how the pipeline is built, how state and windows are handled, how failure is rolled back — belongs to the real-time case, not here.
What belongs here is the definitional consequence: real-time and offline must share one definition. The same metric computed twice, once in seconds and once overnight, has to reconcile. When they diverge beyond threshold, the offline value prevails and the real-time job rolls back to baseline. A real-time number that disagrees with the reconciled number is not “faster truth”; it is a second opinion nobody asked for.

Results
- Eight subject domains under one model, one public layer, one set of contracts between teams.
- One metric dictionary with owner, version, and change log, ending the practice of five conversion rates in five documents.
- One tracking dictionary with a closed event list, validated properties, and position on every impression and click — which is what made slot-level attribution possible.
- Attribution split into on-site (to the slot) and off-site (to the channel), with the model chosen per decision rather than per fashion.
- Identity versioned, so historical reports reproduce their own numbers.
The commercial effect is indirect but real: when search, recommendation, and merchandising argue about performance, they now argue about the same number. That changes what gets funded, and it changes how fast a bad decision is reversed.
The series
This is one of five pages. The flagship page ties them together:
Making on-site conversion calculable — the whole loop, in one argument.
- Search — One intent, nine languages, one set of products
- Recommendation — From “you might like” to “I know what you want now”
- Data platform — First the definitions, then the conversion
- Real time — Real-time is not “a bit faster”
- Flagship — Making on-site conversion calculable
Definitions make it measurable, search makes it findable, recommendation makes it personal, and real time makes it current.
03Results
Results · 90 days
05How we measure
Definitions and disclosure
GMV is reported in two named variants (gross tax-inclusive, net tax-exclusive) with a fixed cancellation window. Conversion rate exists in three named variants (per visit, per session, per unique visitor), each with an owner. New customer is defined at both group and site level, and always labelled. Attribution windows and models are documented per use case. Identity merges are versioned; historical reports use the version in force at the time.
Disclosure: the customer name and domain are taken from public information and the figures are the customer’s internal business metrics. No customer logo, internal system name, table name, field name, or formula is disclosed. Descriptions are of capability and outcome, not of implementation.
Disclosure note: client name and domain are taken from public information and figures are internal business metrics of the client. No client logo, internal system name, staff information or raw data is published; anonymous cases use descriptive naming only.