Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeCustomer 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.
| Layer | Job | Typical failure | Check you can run |
|---|---|---|---|
| 1. Collection | Capture events and attributes where they happen (browser, app, server) | Blocked scripts, wrong domain, missing events after a release | Events received per day against events expected after each release |
| 2. Transport | Move data to storage reliably | Rate limits, bad payloads, delays | Rejected requests per day by reason |
| 3. Storage | Keep raw and modelled data with a known retention | Silent truncation, duplicate rows | Row counts against transport totals; duplicate rate |
| 4. Identity | Tie anonymous and logged-in activity to one person or account | Same person counted twice, shared devices merged | Share of events with a person ID; merge conflicts |
| 5. Governance | Consent, retention, access, deletion | Data kept past its purpose, requests that cannot be honoured | Time to complete a deletion request |
| 6. Modelling | Define metrics, segments and properties once | Two teams with two definitions of "active" | Metrics defined in one place, with an owner |
| 7. Activation | Make data available to messaging, support and ad tools | Audience smaller than reported, stale audiences | Audience 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.
| Layer | Job | Check you can run |
|---|---|---|
| Collection | Capture events where they happen | Events received per day against expected after each release |
| Transport | Move data to storage reliably | Rejected requests per day by reason |
| Storage | Keep data with known retention | Row counts against transport totals |
| Identity | Tie anonymous and logged-in activity | Share of events with a person ID |
| Governance | Consent, retention, deletion | Time to complete a deletion request |
| Modelling | Define metrics once | Each metric has one definition and an owner |
| Activation | Hand data to other tools | Audience 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.
| Step | Events | What happened | Share of fired |
|---|---|---|---|
| Fired by your code | 100,000 | 100.0% | |
| Rejected at collection | −2,600 | 1,200 domain mismatch, 900 rate limit, 500 invalid payload | |
| Accepted | 97,400 | 100,000 − 2,600 | 97.4% |
| Duplicates removed | −1,300 | Same event delivered twice | |
| Stored, unique | 96,100 | 97,400 − 1,300 | 96.1% |
| Carrying a person ID | 61,000 | The rest are anonymous | 63.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.
Where 100,000 events end up
Sample monthFired by your code
100,000
Accepted
97,400
Stored, unique
96,100
Carrying a person ID
61,000
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.
- 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.
- 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.
- 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.
| Pattern | What it is | Fits when | Costs you |
|---|---|---|---|
| Analytics-first | One product collects, stores and analyses events, with identity and segments built in | One team, up to a few sources, questions answered inside the product | Less freedom to model data your own way |
| Warehouse plus pipeline | Events and sources land in a warehouse you own; you model there and push audiences out | Data team available, many sources, custom modelling | Engineering time to run, monitor and secure it |
| Packaged CDP | A product that handles identity, audiences and connectors for you | Many activation destinations and a marketing team that must self-serve | Licence 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.
- 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.
- 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.
- 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.
- Identity.
tapcub.loginties 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. - 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).
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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