TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Customer Data Infrastructure: The Seven Layers and Where Data Leaks

Customer data infrastructure is the stack that moves customer data from collection to activation. Seven layers, a loss ledger on 100,000 sample events, identity and governance requirements, and a build-or-buy rule set.

Su He Published Nov 22, 2026 12 min read Analytics
Sample data: 100,000 events fired, 2,600 rejected and 1,300 duplicates removed leave 96,100 stored (96.1%); 61,000 of them carry a person ID (63.5%), so identity is the largest gap.Sample data

Customer data infrastructure is the stack that moves data about customers from where it is created to where it is used: collection, transport, storage, identity, governance, modelling and activation. A CDP can supply some layers, but the stack also includes collection quality and consent. Its failures are local while symptoms are global, so this guide gives each layer a check and a loss ledger that finds the biggest leak.

What you will learn

  • Treat the stack as seven layers, each with one job and one check you can run
  • Compare each layer's output with the previous layer's and fix the largest ratio loss first; in the sample, identity lost 36.5% against 3.9% in the first three layers
  • Design for deletion from the start: requests must be answered within one month under the GDPR text, so you must be able to trace a person through every layer

What is customer data infrastructure, and what is it not?

Customer data infrastructure is the plumbing that gets data about customers from the places it is created to the places it is used, in a form someone can trust. It covers collection, transport, storage, identity, governance and the hand-off to the tools that act on the data. It is a set of layers, not one product.

That makes it different from a customer data platform. The CDP Institute defines a CDP as software that creates and maintains a persistent, unified customer record that is accessible to other systems. A CDP is one way to supply the identity and storage layers; infrastructure is the whole stack beneath and around it, including the parts a CDP assumes already work, such as clean collection and consent. How a CDP itself is put together is covered in CDP architecture and defined in the customer data platform glossary entry. This article is about the layers underneath and about how to find the layer that is leaking.

The practical reason to think in layers is that failures are local but symptoms are global. A report that "looks low", an audience that is smaller than expected and a dashboard that disagrees with finance usually come from different layers, and you cannot fix the right one if you only see the final number.

Which layers does it have, and what goes wrong in each?

Seven layers cover most setups. Each has one job and one typical failure you can check for.

LayerJobTypical failureCheck you can run
1. CollectionCapture events and attributes where they happen (browser, app, server)Blocked scripts, wrong domain, missing events after a releaseEvents received per day against events expected after each release
2. TransportMove data to storage reliablyRate limits, bad payloads, delaysRejected requests per day by reason
3. StorageKeep raw and modelled data with a known retentionSilent truncation, duplicate rowsRow counts against transport totals; duplicate rate
4. IdentityTie anonymous and logged-in activity to one person or accountSame person counted twice, shared devices mergedShare of events with a person ID; merge conflicts
5. GovernanceConsent, retention, access, deletionData kept past its purpose, requests that cannot be honouredTime to complete a deletion request
6. ModellingDefine metrics, segments and properties onceTwo teams with two definitions of "active"Metrics defined in one place, with an owner
7. ActivationMake data available to messaging, support and ad toolsAudience smaller than reported, stale audiencesAudience size at source against size at destination

Two points from the table are easy to miss. First, layers 1 and 2 are where data is lost for good: an event that is never collected or is rejected before storage cannot be repaired later, whereas a bad definition in layer 6 can be fixed retroactively. Spend your first checks on the lossy layers. Second, layer 5 is a design constraint, not a late add-on. If the data cannot be traced to a person, it cannot be deleted when that person asks.

LayerJobCheck you can run
CollectionCapture events where they happenEvents received per day against expected after each release
TransportMove data to storage reliablyRejected requests per day by reason
StorageKeep data with known retentionRow counts against transport totals
IdentityTie anonymous and logged-in activityShare of events with a person ID
GovernanceConsent, retention, deletionTime to complete a deletion request
ModellingDefine metrics onceEach metric has one definition and an owner
ActivationHand data to other toolsAudience size at source against destination

Layers 1 and 2 lose data permanently; check them first.

How much data do you lose along the way? A worked ledger

A loss ledger turns "the data looks low" into a number per layer. Sample data: a month in which the browser and server code fired 100,000 events.

StepEventsWhat happenedShare of fired
Fired by your code100,000100.0%
Rejected at collection−2,6001,200 domain mismatch, 900 rate limit, 500 invalid payload
Accepted97,400100,000 − 2,60097.4%
Duplicates removed−1,300Same event delivered twice
Stored, unique96,10097,400 − 1,30096.1%
Carrying a person ID61,000The rest are anonymous63.5% of stored

The recomputation: 1,200 + 900 + 500 = 2,600 rejected, 100,000 − 2,600 = 97,400 accepted (97.4%), 97,400 − 1,300 = 96,100 stored (96.1%), and 61,000 ÷ 96,100 = 63.5% with a person ID. The leaks in layers 1 to 3 total 3.9%, which is small and fixable: the 1,200 domain mismatches are one configuration error, and the 900 rate-limited events point to one noisy script. The identity gap is 36.5%, much larger, and it limits what comes next.

Now follow one audience to the activation layer. Sample data: a segment defined as "viewed pricing at least twice in 7 days" contains 8,400 people, but only 5,300 of them are identified with an email address you can use. That is 5,300 ÷ 8,400 = 63.1% reachable. A campaign built on that segment cannot reach the other 3,100 however good the message is. The lesson of the ledger is to compare each layer's output with the previous layer's, and to fix the biggest ratio loss first. Here that is identity, not collection.

app.tapcub.com

Where 100,000 events end up

Sample month

Fired by your code

100,000

Accepted

97,400

Stored, unique

96,100

Carrying a person ID

61,000

Identity is the largest gap; the first three layers lose 3.9% in total.
Sample data
Sample data: 100,000 events fired, 2,600 rejected and 1,300 duplicates removed leave 96,100 stored (96.1%); 61,000 of them carry a person ID (63.5%), so identity is the largest gap.

How does identity work, and why is it usually the biggest gap?

The identity layer answers one question: is this the same person as before? It has three ingredients.

  • An anonymous ID assigned on first visit, so activity before login is kept together.
  • A person ID supplied by your system when someone logs in or signs up.
  • A merge rule that, at the moment of login, attaches the earlier anonymous activity to the person.

Use deterministic matching only: a person ID your own system issued, or an account key. Probabilistic matching (guessing from device or network similarity) raises coverage but also merges strangers, and it is hard to explain to a customer who asks what you hold about them.

Two rules keep the layer honest. Identify at the earliest honest moment: the moment a user logs in, not at the end of the session, so the anonymous trail attaches. Treat shared devices as a risk: if two people log in on the same browser, the merge rule must not fuse their histories. A low identified share is normal for a site where most visitors browse without logging in; it is not a defect, but it caps the size of any audience built on known people.

What does governance require of the infrastructure?

Governance is the layer that turns policy into behaviour. Three requirements shape the design.

  1. A clock on requests. The GDPR text asks controllers to answer requests from data subjects without undue delay and at the latest within one month (Recital 59). Your infrastructure has to be able to find and remove one person's data across storage, backups and every destination within that time. If you cannot list where a person's data went, the clock cannot be met.
  2. Retention that deletes. Set how long raw event detail is kept and make the delete happen automatically. Daily aggregates that contain no personal data can be kept longer.
  3. Consent that changes collection. If consent is missing, the collection layer should reduce what it records, not just flag it later. Decide in advance what is still counted (for example, anonymous page views) and what stops (persistent IDs).

A simple audit to run once a quarter: pick one test person, trace their data through every layer and destination, delete it, and time the process. The answer is your real response time, whatever the policy document says.

Should you build it, buy it, or combine?

Three patterns appear in practice. The choice depends on what you must be able to do, not on a brand.

PatternWhat it isFits whenCosts you
Analytics-firstOne product collects, stores and analyses events, with identity and segments built inOne team, up to a few sources, questions answered inside the productLess freedom to model data your own way
Warehouse plus pipelineEvents and sources land in a warehouse you own; you model there and push audiences outData team available, many sources, custom modellingEngineering time to run, monitor and secure it
Packaged CDPA product that handles identity, audiences and connectors for youMany activation destinations and a marketing team that must self-serveLicence cost; you still need clean collection and consent

A few judgement rules help decide:

  • If you have no data engineer, start analytics-first. A warehouse nobody monitors turns into a second source of disagreement.
  • If more than three tools need the same audience, plan for a hand-off layer, either packaged or built.
  • If different teams define the same metric differently, fix layer 6 before buying anything; no pipeline can reconcile two definitions.
  • Whatever you pick, keep the raw events exportable. Being able to move out is the best protection against a wrong early choice.

How would TapCub fit into this?

Take the ledger above and see which layers a TapCub project covers, and which it leaves to you.

  1. Collection. One script in the page head collects web events; iOS, Android, Flutter, React Native and HarmonyOS SDKs cover apps; a server HTTP interface sends events from your backend; and server logs can be imported. Web, app and mini-program data sit in one project with one event and user model.
  2. Transport and loss. All-platform analytics › Data › Data quality lists collector rejects by reason and day (domain mismatch, exclusion rule, monthly quota, rate limit, invalid payload, bots), plus ingestion warnings. That is the first half of the ledger, built in rather than computed by hand.
  3. Modelling. All-platform analytics › Data › Tracking plan records the events you intend to collect, with owner and status, and Live verification (24 h) shows hits and required-property completeness per event. The property dictionary governs type and allowed values. Together they keep layer 6 in one place.
  4. Identity. tapcub.login ties a signed-in person to their earlier anonymous activity; the person then appears in All-platform analytics › Users › People with a timeline. Anonymous visitors have no profile and never join a segment, which is exactly the identity gap in the ledger. Segments and tags are in All-platform analytics › Users › Segments & tags.
  5. Governance. Configuration › Privacy center sets the collection tier, retention and data subject requests (export and delete).

What TapCub does not do: it does not send email or push campaigns, does not run advertising audiences and is not a warehouse you can model arbitrary tables in beyond its SQL query tool. Activation to messaging tools is your own step. The raw detail can be exported asynchronously from All-platform analytics › Data › Data export, so you can move it elsewhere.

FAQ

What is customer data infrastructure?

It is the set of layers that move customer data from where it is created to where it is used: collection, transport, storage, identity, governance, modelling and activation. A customer data platform can supply some of those layers, but infrastructure also includes collection quality and consent, which a platform assumes already work.

What is the difference between customer data infrastructure and a CDP?

A CDP is software that builds a persistent, unified customer record other systems can use, according to the CDP Institute. Infrastructure is the wider stack: how data is collected, moved, stored, governed and handed on. You can run infrastructure without a CDP, but not a CDP without infrastructure.

Which layer should I fix first?

The one with the largest loss in a ledger. Count events fired, rejected, duplicated, stored and identified, then compare each step with the one before. In the sample here identity lost 36.5% against 3.9% across the first three layers, so identity came first.

How long can I take to answer a data deletion request?

The GDPR text says without undue delay and at the latest within one month (Recital 59). Test your real time by tracing one person through every layer and destination and measuring how long deletion takes.

Do I need a data warehouse?

Not at the start. If one team asks questions inside one analytics product, a warehouse adds maintenance without adding answers. Consider one when many sources must be joined, or when a data team needs to model data in ways the product cannot.

Sources

  • CDP Institute, What is a CDP?: definition of a customer data platform and its listed capabilities (checked 2026-11-22).
  • EUR-Lex, Regulation (EU) 2016/679 (GDPR), Recital 59: requests answered without undue delay and at the latest within one month (checked 2026-11-22).
Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Su He

Data Analyst

Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.

See where your data is lost

Collector rejects by reason, tracking plan with live verification and one project for web, app and mini-program data.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics