---
title: "Writing — Asabisoft"
url: "https://asabisoft.com/blog/"
---

# Writing

Field notes on data science, analytics engineering and commerce by Arif Sait Birincioglu.

## [How much traffic does a Shopify A/B test need?](https://asabisoft.com/blog/ab-testing-shopify-sample-size.md)

Experimentation · 2026-10-07

Far more than most stores expect. At a 2% conversion rate, detecting a 10% relative lift (2.0% to 2.2%) with 80% power at a 5% two-sided significance level needs about 80,700 visitors per variant, roughly 161,000 in total. Halving the lift you want to detect roughly quadruples the traffic. Fix the sample size before launch, run whole weeks, do not stop early on a significant result, and if you test revenue per visitor instead of conversion, expect to need about twice as much traffic or more.

## [How to predict which Shopify customers will churn](https://asabisoft.com/blog/predict-customer-churn-shopify.md)

Data science · 2026-10-07

In a non-subscription Shopify store nobody cancels, so churn has to be inferred from silence. Define it as no order within a window based on your own repeat-purchase gaps, then score customers in increasing order of effort: RFM segments, a BG/NBD model that estimates each customer's probability of still being active, and, once you have enough history and features, a gradient-boosted classifier trained on past snapshots. Act on the scores through segmented email and SMS flows with a holdout group, so you measure what the campaign changed rather than who was going to buy anyway.

## [Attribution for Shopify brands after iOS privacy changes](https://asabisoft.com/blog/shopify-attribution-after-ios.md)

Analytics engineering · 2026-10-07

Since Apple's App Tracking Transparency and browser limits on cookies and tracking parameters, ad platforms see fewer of the conversions they drive, so platform-reported ROAS is less complete and less comparable across channels. Shopify brands should do three things: send conversions server-side (Meta Conversions API, Google enhanced conversions) with proper deduplication, run the business on blended metrics from Shopify — MER and new-customer CAC — rather than platform ROAS, and settle big budget questions with simple incrementality tests such as geo holdouts.

## [How to run a cohort retention analysis for a Shopify store](https://asabisoft.com/blog/shopify-cohort-retention-analysis.md)

Data science · 2026-10-07

Group customers by the month of their first order (the acquisition cohort), then count how many of each cohort buy again in each later month and how much net revenue they generate. Divide by the original cohort size to get a retention table and a cumulative revenue-per-customer table. Clean the data first: one row per order, cancellations and refunds removed, and subscription, wholesale and staff orders separated, or the table will mislead you.

## [Why GA4 and Shopify never show the same revenue — and how to close the gap](https://asabisoft.com/blog/shopify-ga4-tracking-gaps.md)

Analytics engineering · 2026-10-07

GA4 and Shopify will never match exactly, because they measure different things: Shopify records every order on its servers, while GA4 records purchase events sent from browsers that can be blocked, declined at the consent banner, fired twice or never fired at all. The two also define revenue differently (GA4's purchase value is meant to exclude tax and shipping), handle refunds differently and may use different time zones. Close the gap by reconciling order by order on transaction ID, labeling each mismatch by cause, and fixing the causes you control.

## [Demand forecasting for Shopify inventory](https://asabisoft.com/blog/shopify-inventory-demand-forecasting.md)

Data science · 2026-10-07

Start every Shopify inventory forecast with a seasonal naive baseline, then try exponential smoothing (ETS) or ARIMA per product and a single LightGBM-style model trained across all SKUs once you have many of them. Use Croston-type methods for slow, intermittent SKUs, treat stockout days as missing demand rather than zero sales, measure accuracy with WAPE and MASE instead of MAPE, and turn the forecast error into safety stock rather than ordering to the point forecast.

## [How to get Shopify data into BigQuery (and what to model first)](https://asabisoft.com/blog/shopify-to-bigquery-guide.md)

Analytics engineering · 2026-10-07

Most Shopify brands should load Shopify into BigQuery with a managed connector — Google's own BigQuery Data Transfer Service connector for Shopify (in Preview), or a third-party connector such as Fivetran or Airbyte — and switch on the free GA4 BigQuery export on day one, because it is not retroactive. Write your own pipeline with Admin GraphQL bulk operations only when you need control over fields, cost or freshness, and use webhooks or Shopify Flow for real-time triggers, not as the source of truth. Model orders, line items, customers, refunds and ad spend first, then build a daily revenue table and a first-order cohort table on top.

## [LTV forecasting with under a year of data](https://asabisoft.com/blog/ltv-forecasting-short-history.md)

Data science · 2026-10-06

With under a year of history, forecast LTV with a probabilistic repeat-purchase model (BG/NBD or Pareto/NBD for purchase counts, Gamma-Gamma for order value) fitted on calibration data and checked against a holdout period. Report it per acquisition cohort, cap the horizon at roughly twice the history you have, and compare it with a simple cohort revenue curve before anyone uses it to set acquisition budgets.

## [What we check before touching a Shopify theme](https://asabisoft.com/blog/shopify-audit-before-redesign.md)

Commerce · 2026-10-06

Before changing a Shopify theme, audit four things in order: speed (Core Web Vitals and the weight of apps and scripts), tracking (whether purchase and funnel events are complete and match Shopify orders), the checkout funnel (where sessions drop, by device and source) and unit economics (customer value against acquisition cost). Fixing these first tells you whether a redesign is needed at all — and which templates it should touch.

---

Canonical: https://asabisoft.com/blog/
Publisher: Asabisoft (https://asabisoft.com) — Asabisoft is a data science and analytics consultancy for Shopify brands and product teams.
Contact: https://www.linkedin.com/in/asbirincioglu
