AAmit’s LibraryLEARN · PRACTISE · REFLECT

Customer journeys × Data engineering

Business lens: Customer journeys · Technology lens: Data engineering

Reading scope: Original fictional teaching; same-author arithmetic checks are not independent editorial validation.

The journey view is assembled from events

A fictional retailer combines website, support and delivery events into one customer-journey dashboard. The pipeline runs successfully, but the view counts repeated messages as additional episodes and omits events with missing references. Customer journeys and data engineering meet at the transformation from raw activity to a coherent experience. Define the episode, event identity and time boundary before aggregation. A technical ingestion count does not establish that every customer path is represented correctly. Begin with the service question and preserve source evidence. The dataset should reveal exceptions that affect continuity rather than manufacture a complete-looking journey from incomplete records.

Retain provenance and event meaning

The channel owners explain their records, the engineer maintains transformations and the service analyst defines the journey unit. One episode may span several channels, while one person may have separate needs. Matching rules need declared evidence and an uncertainty state. Late events should retain their original time as well as ingestion time. Reprocessing should reproduce canonical identities instead of append the same path again. Do not impute missing customer relationships from a desired dashboard result. A valid technical schema can preserve a wrong substantive link. Check selected transformations against appropriate source evidence and record which dataset version informed the service decision. A correction should identify the original event and the reviewed evidence supporting its new relationship.

Worked event and candidate reconciliation

The invented input has ninety event rows: sixty usable distinct events, twenty distinct candidates missing an episode reference and ten repeats of already represented events. There are eighty distinct candidates after separating repeats. Initial usable coverage is 60/80 = 75%, while usable share of raw rows is 60/90 ≈ 66.67%. Evidence-backed review recovers twelve missing episode references. Usable candidates become seventy-two of eighty, or 90%, with eight unresolved. A replay under unchanged rules should preserve seventy-two canonical usable events, not append another seventy-two. This example counts events, not unique customers or resolved episodes; those additional measures need their own grouping and state rules.

Assess who disappears from the view

Missing references may cluster in a guest channel or particular service stage. If so, the usable view can overrepresent customers whose interactions are easy to link. Do not assume the eight unresolved events resemble the others. Investigate the capture mechanism and state how it limits a claim. A higher coverage percentage supports evidence completeness under selected rules, but does not prove correct episode identity or customer satisfaction. A useful improvement might be a consistent reference at a channel handoff. Its effectiveness needs actual observations and a reviewed data-use purpose, not merely a pipeline that exits without errors.

Practice a canonical journey-event ledger

Extend the existing data-quality-checks lesson with ninety fictional rows, eighty candidates and twelve legitimate recoveries. Reproduce 66.67%, 75% and 90%, retaining ten repeat events and eight unresolved candidates in their proper histories. Specify an episode-grouping rule without claiming that the example already counts customers. Your portfolio should include a late-event policy and a subgroup missingness question. This reuses bounded pipeline teaching; it executes no new ingestion fixture and verifies no live multi-channel journey. Actual later outputs should preserve transformation versions and correction evidence separately from the stipulated partitions.

Questions and progressive depth

Who defines an episode, and Whom should the engineer consult about channel meaning? Whose event is unlinked? What is canonical, Where is raw provenance retained, and When can late evidence revise a view? Why are events not customers? Which match is uncertain? How is replay checked? Foundation learners distinguish activity and journey. Undergraduate learners reconcile events and calculate coverage. Postgraduate learners critique linkage bias, timing and identity. DBA/research learners investigate a bounded capture-to-continuity mechanism with authorised evidence and independently checked outcomes. For revision, explain why seventy-two usable events do not necessarily represent seventy-two customers or seventy-two resolved episodes, and why replay should preserve the canonical count while retaining the original repeated-message history.

Study questions and answers

What is initial distinct-candidate coverage?

60/(90−10) = 60/80 = 75%; raw-row share is approximately 66.67%.

Marking guide: Credit 60/80=75% distinct candidates versus 66.67% raw events.

What follows twelve recoveries?

72/80 = 90% usable candidates, leaving eight unresolved.

Marking guide: Credit 72/80=90%, eight unresolved after twelve recoveries.

Does this establish a count of unique customers?

No. These are events; customer and episode grouping require additional declared identity rules.

Marking guide: Events are not unique customers; require declared customer/episode grouping and identity rules.

Practice task

Specify a provenance-preserving journey-event pipeline with linkage exceptions and replay checks.

Practice bridge

  1. Specify a provenance-preserving journey-event pipeline with linkage exceptions and replay checks.
  2. Reproduce the worked arithmetic, change one assumption and label invented evidence separately from actual practice observations.

Open connected lab

Boundary: Original fictional exercise connected to an existing bounded or guided lesson. No new executable fixture, external platform execution or catalogue lab claimed.

Related chapters

Interactive practice

Open workshop · Open runnable practice · Open lab lab-19

Open interactive matrix reading