Writing/Field notes
Field notes on data science, analytics and commerce.
Practical write-ups from client work and our own products. Each article opens with a short answer, then shows the working.
Experimentation10 minHow much traffic does a Shopify A/B test need?A worked sample-size calculation for Shopify A/B tests, why peeking and novelty mislead, conversion vs revenue per visitor, and low-traffic options.Data science10 minHow to predict which Shopify customers will churnDefine churn for a store without contracts, score customers with RFM, BG/NBD probability alive or gradient boosting, and act on it in email flows.Analytics engineering10 minAttribution for Shopify brands after iOS privacy changesWhat App Tracking Transparency and browser cookie limits changed, how Meta CAPI and Google enhanced conversions help, and how to use MER, nCAC and geo holdouts.Data science10 minHow to run a cohort retention analysis for a Shopify storeBuild a Shopify cohort table from an orders export with SQL or pandas, read retention and cumulative revenue per customer, and avoid the usual data traps.Analytics engineering10 minWhy GA4 and Shopify never show the same revenue — and how to close the gapWhy GA4 and Shopify revenue differ — consent, ad blockers, duplicate purchases, refunds, definitions, time zones — and how to reconcile them with SQL.Data science11 minDemand forecasting for Shopify inventoryWhich forecasting methods suit Shopify inventory, from seasonal naive to ETS, Prophet, LightGBM and Croston, and how to measure accuracy and set safety stock.Analytics engineering11 minHow to get Shopify data into BigQuery (and what to model first)Shopify to BigQuery compared: managed connectors, GraphQL bulk operations and webhooks, plus GA4 export, a starter data model and SQL for revenue and cohorts.Data science10 minLTV forecasting with under a year of dataWhich customer lifetime value models hold up on short purchase histories, how to sanity-check them, and when a cohort table beats all of them.Commerce8 minWhat we check before touching a Shopify themeA redesign fixes how a store looks, rarely why it underperforms. The audit order we run first — speed, tracking, funnel and unit economics — and why each comes before the next.