The business challenge
Retailers often lack a reliable way to distinguish first-time customers from repeat buyers. Contractors and business accounts may order for multiple delivery addresses, while multiple purchasers may share one job site. Matching customers solely by name or address can distort retention and marketing performance.
The analytical objective
Develop a repeatable approach to customer identity resolution, customer retention reporting, and marketing-channel profitability across a simulated multi-location retail operation.
Who it serves
Independent retailers, contractors, distributors, and other businesses with repeat purchasing, delayed fulfillment, multiple job sites, and measurable acquisition-channel spending.
How the solution works
The demonstration combines simulated retail aggregates with a Python-generated order history and SQLite tables for customers, contacts, job sites, orders, and marketing spending. SQL produces customer and channel summaries that feed an interactive static web dashboard.
Customer identity resolution
Email and phone normalization identify potential duplicates. Customer identities remain separate from delivery locations. Matching contact information produces review candidates, not proof that records represent the same person.
Retention and marketing measures
The dashboard illustrates repeat-order rates, gross profit per acquired customer, channel-associated gross profit, acquisition cost, and gross profit relative to marketing spend. Attribution is descriptive and does not establish incremental marketing ROI.
Acquisition-to-fulfillment timing
Customer acquisition, estimates, orders, and completed delivery or installation may occur in different months. A four-to-six-week lag or longer is plausible. New customer counts should not be forced to match completed jobs in the same reporting month.
Data quality and limitations
The existing synthetic generator redistributed first-time customer flags to fit same-month completed jobs. That modeling choice is not justified by the source aggregates. Customer cohorts and channel-level findings are provisional until acquisition, order, and fulfillment timestamps are modeled separately and the outputs regenerated.
Management applications
A real retailer could use this framework to identify returning customers, compare retention across locations, evaluate which channels attract customers with stronger observed gross profit, and decide where better tracking or controlled experiments are needed.
Recommended pilot
With consent and appropriate privacy controls, use real order and marketing records to validate identity matching, reconcile spending, measure cohort retention over comparable windows, and assess marketing incrementality through experiments where feasible.
Conclusion
This is a simulated analytical portfolio project, not a measured client engagement. It demonstrates a practical architecture and decision framework while clearly distinguishing illustrative outputs from verified outcomes.
Fictional retail operation and synthetic records. Cohort and channel-level results are provisional until the acquisition-to-fulfillment timing model is rebuilt.