A single customer view for a three-brand retailer

Each brand ran its own store, customer list and definition of a sale. Nobody could say how many customers the group had, or which revenue figure was right. We connected the seven systems, gave every customer one ID and set one definition for each metric.

5 min readZiro Data reference buildUpdated October 2026

One shopper, five systemsCustomer 360
Shopify
Apparel
Rim Alketbir.alketbi53@work.ae+971546769158
Shopify
Beauty
Reem Al Ketbireem.alketbi239@gmail.comno phone
Woo
Home
Rim AlketbiREEM.ALKETBI239@GMAIL.COM971-54-676-9158
POS
Stores
RIM A.r.alketbi53@work.ae54 676 9158
CRM
Email
Rimreem.alketbi239@gmail.com54 676 9158
99.7%

match precision across 168,663 records from 5 systems.

Case
Three-brand lifestyle retailer
Who this fits
Retailers with 3+ sales systems
Region
UAE
Data
7 systems, 442K rows
Services
Data pipelines, KPI frameworks
Engagement
Project, 6 weeks
99.7%of the records we joined belong to the same person
62%overcount removed: the systems listed 98,396 customers for 60,781 real buyers
5 → 1revenue figures for one month, now one agreed definition
<1 minto rebuild every table and the monthly report, with 12 data checks passing
In one minute

The short version

Problem

Seven systems, each with its own customer IDs and its own idea of revenue. Five teams reported five different figures for the same month.

What we did

Loaded every source into one database, joined each customer's records with a rule that keeps family members apart, and set six metric definitions in code.

Result

One customer view with 99.7% match precision, one revenue figure, and a monthly report that rebuilds in under a minute.

The challenge

Five problems behind one question: which number is right?

The group grew one brand at a time, and every launch brought its own tools. Ask how many customers the group had, and seven systems gave seven partial answers. Five problems sat underneath, and each one made the others worse.

1Identity resolutionOne person, several unrelated customer records1.62records per buyer

Symptom

A shopper buying apparel online, beauty on another store and homeware in a mall got three welcome offers.

Root cause

Each tool has its own ID: an account, an email typed at checkout, a loyalty card. Names and phone numbers are written several ways.

Fix

Clean every identifier, join exact matches, then score the uncertain pairs with a check for shared family phones.

2Metric definitionsFive teams, five answers to "what did we sell?"5revenue figures, one month

Symptom

September revenue ranged from AED 5.3M to AED 22.4M depending on who reported it.

Root cause

Stores include VAT, finance books refunds when they post, and ad platforms count any sale in their window.

Fix

Write each metric once, in code, with an owner. Every report reads that definition.

3Manual reportingExports stitched together by hand every week~9.5 hper weekly report

Symptom

The Monday report took most of an analyst's Friday: ten exports, lookups and a reconciliation call.

Root cause

The systems don't talk to each other, so an analyst joins them by hand.

Fix

A scheduled pipeline that joins, checks and publishes the numbers with no manual steps.

4Cross-brand viewEach brand sees only its slice of a customer2.5×new customers overstated

Symptom

Brands reported 11,218 new customers in September; 4,444 were new to the group.

Root cause

Separate P&Ls on separate tools, and nobody owning "who is a customer of the group?"

Fix

Customer tables at group level, with brand and channel as columns.

5System integrationCSV exports, no shared store, no checks7disconnected systems

Symptom

Data moved between seven tools by hand, when someone remembered.

Root cause

Each tool was bought for one team's need; connecting them was always next quarter.

Fix

Land every source unchanged in one database and clean it in tested layers.

What it was costing

The wrong customer base98,396 records for 60,781 people, so cost per customer and retention were divided by a number 62% too large.
Ad budget on claimsMeta and Google claimed 35,486 September sales; 20,346 orders came from paid links.
Best customers unseenA shopper buying from two or three brands looked like a new customer to each one.
Starting point

What we had to work with

Seven systems, ten tables and 442,025 rows. Each was complete on its own terms, and no two agreed on who a customer is.

Three online storesShopify for apparel and beauty, WooCommerce for home. Guest checkouts create a new customer each time.
Six stores on one POSA loyalty card when there is one; 34% of tickets have no customer at all.
CRM, ads and finance51,534 email profiles, daily ad spend with claimed sales, and refunds booked when they post.
Messy identifiersPhones in 6 formats, 9,274 misspelled email domains, and about 3% of profiles sharing a family mobile.
What we did

Five steps over six weeks

  1. Mapped every system and metricTraced each KPI back to its source and logged every place the numbers conflict.
    Week 1
  2. Loaded and cleaned the dataCopied all ten tables into one database untouched, then standardised emails, phones, names, time zones and VAT.
    Weeks 2 to 3
  3. Matched customers across systemsJoined records with the same cleaned email, then scored records that share a phone on name, city and email.
    Weeks 3 to 4 Led to finding 1
  4. Wrote one definition per metricSix metrics written in code, each with an owner, ready for finance and marketing to sign off together.
    Week 4 Led to finding 2
  5. Automated, tested, handed overA scheduled pipeline runs 12 checks on every load and feeds the monthly report.
    Weeks 5 to 6 Led to finding 3
The key decision

Two records that share a phone number merge only when the names agree. Families share mobiles, and without this check two sisters became one customer.

How the data flowsRaw data is never edited. Every fix lives in code, so changing a rule means re-running the pipeline instead of asking for a new export.
SourcesRaw (bronze)Cleaned (silver)MatchGoverned (gold) Shopify · ApparelShopify · BeautyWooCommerce · HomeStore POS · 6 storesEmail · CRMMeta + Google · AdsERP · Refunds 10 tableslanded as-iswith load timerebuild fromhistory any time identitiesemail repair, E.164 phonesname keys168,663 records ordersone grain, Dubai timeex-VAT, refunds joined282,327 orders match1 exact email2 scored phone3 household checkgolden ID dim_customerbrands, channels, valuefct_ordersgolden ID on every ordermetric definitions6 signed-off metricsmonthly_kpis12 checks on every loadTo Power BI, CRM, finance

Scroll sideways to see the whole flow.

Results

What changed

Before

  • Five revenue figures for every month
  • 98,396 "customers" across four systems
  • A Monday report built by hand

After

  • One net revenue definition, reconciled to finance
  • 60,781 buyers, each with one customer ID
  • A report that rebuilds in under a minute and is checked on every load
Finding 1 from step 3

Matching on any shared phone merged family members. Checking names fixed it.

Four ways to decide which records belong to the same person, each scored against the known identity behind every record.

Precision: of the records joined, the share that belong to the same person. Recall: of the records that belong together, the share that were joined. 168,663 records.
So what: the name check stopped 4,543 risky merges and raised precision from 97.1% to 99.7%, at a cost of under one point of recall.
Finding 2 from step 4

Five revenue figures became one, reconciled to the dirham

September revenue as each team's tool calculates it, against the agreed definition. Hover a bar to see the rule behind it.

From AED 25.53M reported by store platforms and POS: minus 1.21M VAT, 2.36M refunds and 0.01M of time-zone cut-off gives AED 21.94M net. Finance's booked figure differs by 0.45M only because refunds post later.
So what: finance and marketing can start every discussion from the same total.
Finding 3 from step 5

A quarter of customers bring in 59% of revenue

Net revenue per customer by how many of the group's brands they buy from, lifetime to date.

n is the number of customers in each group.
So what: a customer who adds a second brand is worth 3.4× more, and you can only find them with a group-level view.
Five numbers for one month in your business too?Tell us what's going on. We'll say honestly whether we can help, and how.
What you get

What your team keeps

Golden customer tableEvery record from every system mapped to one ID.
Metric definitions in codeSix metrics with formulas and owners.
Tested pipelineRaw, cleaned and reporting layers, 12 checks per load.
Monthly KPI reportBuilt on the checked data, ready for Power BI.
What it takes

What a project like this takes

EngagementProjectQuoted from a written scope
Timeline6 weeksFirst call to handover
Your time~2 hrs / weekSystem owners answering questions
Price rangefrom $9,000Estimate your project

Services used

Recommendations and impact

What the single view makes possible

RecommendationExpected effectConfidence
Judge ad spend on total online revenue per dirham (MER) and test each channel with a holdout groupBudget follows real orders instead of platform claims that run 74% higherHigh
Introduce a sister brand after a customer's second orderMore customers in the multi-brand groupMedium
Offer an SMS receipt at the tillPart of the anonymous 34% of tickets gets a customer IDMedium
Honest limits

What this work can't tell you

  • This is a Ziro Data reference build of a three-brand retailer's systems, including the duplicates, typos and conflicts we find in audits. On your data we measure match accuracy from a hand-checked sample of pairs.
  • The rules joined 95.5% of the records that belong together. About 9% of people still have two IDs, mostly where a work email is the only identifier.
  • 34% of store tickets have no loyalty card and can't be linked to anyone.
  • How much multi-brand shoppers spend differs by business; the 59% share is specific to this case.
Technical appendix

For the analysts in the room

If you're not technical, you can skip this part. It shows how the matching works and how we checked it.

Definitionsgolden ID, net revenue, new-to-group, MER
Golden ID: one ID for all records judged to be the same person. Net revenue: order value excluding VAT, minus refunds on that order, in Dubai time by order date, online and stores. New-to-group: first order with any brand in the period. MER: online net revenue divided by total paid media spend.
Methodwhy rules, and how they were scored
Matching runs in two passes: exact matches on cleaned email, then a points score for records sharing a phone. Precision and recall are counted over every pair of records. Rules were chosen over a model because every merge can be explained to the business.
Data and toolssources, volumes, stack
7 systems, 10 tables, 442,025 rows and 282,327 orders in raw, cleaned and reporting layers. Python and SQL on DuckDB for the pipeline, RapidFuzz for name similarity, reporting tables ready for Power BI.
Checks on every load12 data tests
  • Order IDs unique across systems
  • Order count matches every source
  • Revenue matches sources to the dirham
  • Every refund matches an order
  • No refund larger than its order
  • Every online order has a customer
  • VAT rate within tolerance
  • No orders dated in the future
  • Every record has a customer ID
  • All six metrics documented
  • No gaps in the monthly report
  • No implausibly large merged customer
Check the workcode sample
The household check: records that share a mobile are scored before they merge.
def match_score(a, b):
    # two records share a cleaned mobile: same person, or same household?
    score = 4
    if a.first_key and b.first_key:          # Reem / Rim -> "rm"
        score += 3 if a.first_key == b.first_key else -4
    if a.last_key and b.last_key:            # "Al Ketbi" / "A."
        score += 1 if surname_compatible(a.last_key, b.last_key) else -3
    if a.city and b.city:
        score += 0.5 if a.city == b.city else -1
    if a.email and b.email and a.email != b.email:
        score += 2 if jaro_winkler(local(a.email), local(b.email)) > 0.92 else -1
    return score >= 7                         # merge threshold
Questions

Questions readers ask about this work

Will this work with our systems, like Salla, Zid, Shopify or Odoo?
Yes, if they can export orders and customer records. We take each export as it is and clean it in code, so you don't have to change any system.
Do we need a customer data platform first?
No. A database with resolved customer IDs gives you the single view. A CDP can sit on top later if you need real-time audiences.
How accurate would matching be on our data?
We measure it. We hand-check a sample of matched pairs, report precision and recall, and tune the rules before anything goes live.
What would a similar project cost us?
Projects start at $3,500 and are fixed from a written scope. If you're not sure where to start, the Data Health Check is $1,800 fixed.

Five teams, five numbers, and nobody sure which is right?

If your customer and sales data sits in tools that disagree, you may already have what a single customer view needs. In 30 minutes we can show you how far apart your numbers are and what fixing it would take.

  • Revenue differs between store, finance and ads
  • One customer counted once per brand or system
  • A weekly report someone builds by hand

On the call we will

  • List the systems that hold customer and revenue data
  • Spot where your definitions disagree
  • Outline a first step and its cost
Book a free 30-minute call Or start with a $1,800 Health CheckOr read about data pipelines & warehouse setup
Similar problem? 30-minute call, freeBook a call