Data roles in practice: how engineers, analysts and scientists grow SaaS and ecommerce

TL;DR

Difficulty: Intermediate

Data work for a SaaS business or an online shop happens in three layers, and the order matters. Engineers first join every system into one view of each customer, an event plan and a clean warehouse. Analysts then compute lifetime value by segment, cohorts, attribution, funnels and product usage. Data scientists last build churn scores, segments, price tests, recommendations, forecasts and lead scores. A pattern in the data is only a question: every change is tested against a random holdout before anyone claims it worked. The effects overlap, so never add up the gains from separate projects.

Knowing what a data engineer, an analyst and a data scientist are is one thing. Knowing what each of them should do first in your business is another. This article walks through fifteen concrete jobs for an invented Leeds SaaS company and an invented Bristol homeware shop, rates each from 1 to 10 for importance, and works every example through with numbers you can check, including the ones where the obvious conclusion turns out to be wrong.

What the three data roles actually do, job by job

The companion piece on who does what defines the three roles: the data engineer makes data trustworthy and available, the analyst turns it into decisions, the data scientist predicts and tests. This article is the other half. It walks through fifteen concrete jobs those roles do in a SaaS business and in an online shop, in the order they should be done, with a rating from 1 to 10 for how much each one matters and a worked example with numbers you can check.

Two invented businesses carry the examples all the way through, so the figures connect. Tallyfold (tallyfold.example) is a project management SaaS in Leeds with 2,400 paying accounts, an average of £95 a month per account, a gross margin of 80% and a monthly churn of 3.5%. That is £2,736,000 of annual recurring revenue. Fernhill Home (fernhillhome.example) is a homeware shop in Bristol with a small showroom, 38,000 online orders a year, an average order value of £62 and a gross margin of 45%. Every number about them is made up to show the arithmetic. None of it is a promise about what your business will see.

One rule runs underneath everything that follows. A pattern in the data is a question, not an answer. Customers who do X often behave better than customers who do not, but that can be because better customers choose to do X. The only way to know whether pushing more people towards X helps is to test it on a random half and compare. You will see that rule in nearly every example.

Tap or click to open full screen and move around

Data engineering: the foundation everything else stands on

Before any clever analysis can happen, someone has to make the data join up and tell the truth. The three jobs below are unglamorous and they decide whether everything after them is right or confidently wrong.

1. One view of each customer (importance 10 out of 10)

Why it matters. Your customer lives in a dozen systems. Their mails are in Klaviyo or Mailchimp, their payments in Stripe or Shopify, their support tickets in Zendesk, their product usage in your application database, their ad clicks in Google and Meta. As far as the data is concerned they are a dozen different people, and you cannot answer a question as basic as "are the people who came from last month's campaign still paying?".

How it is done. The engineer pulls each source into one warehouse (BigQuery, Snowflake, Postgres) on a schedule and matches records to one person or one account. The matching keys should be deterministic and lawful: a login, a customer number, a billing account, a hashed email address. Device fingerprinting is the tempting shortcut and the wrong one. Since 5 February 2026 the UK rules on storing and reading information on a device explicitly cover collecting information a device automatically emits,1 and the European data protection authorities treat fingerprinting as inside the ePrivacy consent rule as well.2 Match on what customers have knowingly given you.

Worked example. Tallyfold's churn report counts an account as lost when its billing email stops paying. After the engineer matches on the workspace ID instead, 41 "churned" accounts turn out to be the same customers paying under a new company domain after a takeover. That is 41 × £95 × 12 = £46,740 of annual revenue the board thought it had lost, and 41 customers who were about to receive win back discounts they did not need.

For Fernhill, joining showroom receipts (customers who ask for an emailed receipt) with online orders shows that people who buy in both places spend £240 a year against £110 for online only customers. That is a pattern, not a reason to move budget. People who already love the shop are more likely to visit the showroom. The right next step is a test: invite a random half of online customers near Bristol to a showroom evening and compare the two halves after six months.

2. An event tracking plan (importance 9 out of 10)

Why it matters. To know what people do on your site or in your product you record events: a signup, a project created, a product image zoomed, a checkout step reached. Most businesses either track nothing useful or track everything with names nobody can decode six months later.

How it is done. The engineer writes an event plan: every event worth recording, one naming convention, the properties each event must carry. It is implemented in the product code or through a collector such as Segment or RudderStack, validated automatically so a broken release cannot quietly poison the data, and loaded into the warehouse. Consent sits inside the plan, not on top of it. In the UK, first party analytics used only to improve your own site can run without prior consent under the new statistical purposes exception, provided people get clear information and a free, simple way to object, and the data is not shared for anyone else's purposes.3 Whether to rely on that exception is a risk decision for you and your adviser, not a default. Advertising pixels still need consent, and someone who declined is never retargeted. The detail is in event tracking with consent mode.

Worked example. With a proper event plan, Tallyfold sees that accounts which create their first project within 24 hours of signing up are still active at day 30 in 72% of cases, against 38% for the rest. The tempting conclusion is "make everyone create a project on day one". The honest one is that keen customers do both. Tallyfold builds a guided first project screen, shows it to a random half of new signups, and only keeps it because day 30 activity in that half rises from 51% to 57%. Six points, not the thirty four the raw comparison suggested.

3. A warehouse with a clean transformation layer (importance 9 out of 10)

Why it matters. Raw data is messy. Test accounts, bots, duplicate records from an old migration, returns booked as negative orders, three different spellings of the same product category. Every analysis built on raw tables inherits the mess.

How it is done. The engineer builds transformation models, usually in dbt or plain SQL run on a schedule, that turn raw tables into business tables: one row per customer, one row per order with net revenue after returns, one row per session with its source. Every field is documented, and tests fail the build when a count suddenly doubles. The data warehouse article shows how this feeds marketing automation.

Worked example. Tallyfold's dashboard says 47,000 monthly active users. After removing bots, internal staff and test workspaces, the real figure is 31,000. Every "cost per active user" calculation was flattering acquisition by 47,000 ÷ 31,000 ≈ 1.52, so the true cost per active user is about 52% higher than reported. For Fernhill, the clean orders table shows that the customer with the highest gross spend returns 78% of what they buy and is unprofitable after postage both ways. They stop receiving the VIP discount, and nobody needed a model to see it.

Data analysis: turning clean data into decisions

With joined up, trustworthy data in place, the analyst answers the questions that change where money goes.

4. Customer lifetime value, by segment (importance 10 out of 10)

Why it matters. Lifetime value tells you how much you can afford to pay to win a customer. Most businesses compute one blended average, which mixes the best customers with the worst and the oldest with the newest, and then spend as if every customer were average.

How it is done. For a subscription business the simplest useful version is

L=a⋅mcL = \frac{a \cdot m}{c}

where LL is the lifetime value in pounds of gross margin, aa is the average monthly revenue per account, mm is the gross margin as a share and cc is the monthly churn rate as a share. The derivation and its limits are in the Foundations section on lifetime value. The analyst computes it per acquisition channel, per first product and per signup cohort, never only overall, and reports the spread as well as the average. For a shop, where nobody formally cancels, the survival analysis article shows how to estimate it.

Worked example. Across all of Tallyfold, L=95×0.8÷0.035≈L = 95 \times 0.8 \div 0.035 \approx £2,170. Split by channel the picture changes. Google Ads accounts pay £90 a month and churn at 4%, so their value is £1,800. Accounts that found Tallyfold through its guides pay £100 and churn at 2.5%, worth £3,200. Affiliate accounts pay £80 and churn at 7%, worth about £914. Against acquisition costs of £600, £700 and £400 that is a ratio of value to cost of 3.0, 4.6 and 2.3. Tallyfold had been rewarding affiliates for signup volume. Weighting budget by value instead is the subject of bidding on lifetime value.

Invented figures. Lifetime value in pounds of gross margin: Google Ads 1,800, guides and content 3,200, affiliates 914. Tap or click to open full screen and move around

5. Cohort analysis and retention curves (importance 9 out of 10)

Why it matters. Overall figures like "monthly churn" blend customers who joined at different times under different conditions. A healthy old base can hide a sick new one for a year.

How it is done. The analyst groups customers by the month they joined and follows each group: the share still active after one, two, three months and so on, and revenue per customer at each point. Then they lay product launches, price changes and campaigns over the curves to see what moved them.

Worked example. Tallyfold's blended churn sits at 3.5% a month and looks stable. Split by cohort, accounts that joined before a packaging change in spring churn at 3% a month, and accounts that joined after it churn at 5.5%. After six months the older cohorts keep 83% of accounts and the newer ones 71%. The blend only looked steady because the old base was large. Twelve fewer accounts in every hundred, at £2,170 of value each, is the kind of loss that would only have shown in the blended figure a year later.

Invented figures. Accounts that joined before the packaging change keep 83% after six months at 3% monthly churn. Accounts that joined after it keep 71% at 5.5% monthly churn. Tap or click to open full screen and move around

6. Marketing attribution (importance 9 out of 10)

Why it matters. Every ad platform claims the sale. Meta counts the view, Google counts the search, the newsletter counts the open, the affiliate counts the voucher, and the same £62 order is claimed four times. Without your own view you cannot tell which channel earns its budget.

How it is done. The analyst reconciles what each platform reports with what actually arrived in the warehouse, compares last click with position and data driven models, and is honest about what matching can and cannot show. Matching shows how much a platform over claims. Only an experiment shows how much it causes, which is job 13.

Worked example. Tallyfold spends £8,000 a month on LinkedIn Ads, and LinkedIn reports 60 trials. In the warehouse 41 of those trials can be found, 9 became paying accounts, and 5 of those 9 were already talking to sales through another route. So the cost per paying account is £8,000 ÷ 9 ≈ £889 at best, not the £133 per trial the dashboard invites you to think about, and possibly £2,000 if only the four new conversations count. That is not yet proof LinkedIn is worthless. It is the reason to run a holdout before the next budget round.

7. Funnel analysis (importance 8 out of 10)

Why it matters. You know your overall conversion rate. You do not know where the leak is: the landing page, the signup form, the payment step, the first session in the product.

How it is done. The analyst defines the funnels (visit to signup, signup to activation, basket to checkout to order), measures each step and splits by device, source and country. The biggest drop at a step with a fixable cause goes to the top of the list.

Worked example. Fernhill's checkout loses 68% of baskets at the step that first shows the delivery charge. The average basket is £62 and free delivery starts at £75, so most customers meet the charge as a surprise. Showing the delivery cost on the product page, and a progress note in the basket ("£13 to free delivery"), is quicker to test than a new threshold, and the analyst can measure the abandonment at that step before and after on a random split. At Tallyfold the same method finds that the signup form converts mobile visitors at 0.4% against 3.8% on desktop, because a date field breaks on one mobile browser. No model required, just a split by device.

8. Product usage analysis (importance 8 for SaaS, 6 for a shop)

Why it matters. In SaaS, customers who do not use the product leave. Knowing which features go with staying, which nobody touches and which usage predicts an upgrade focuses product and customer success work where it pays.

How it is done. The analyst measures adoption and frequency per feature, relates them to retention and upgrades, and combines the strongest signals into a health score per account.

Worked example. At Tallyfold, accounts that use the timeline view renew in 89% of cases against 61% for the rest, and only 23% of accounts ever open it. Again, the strong teams that need timelines may simply be the teams that stay. Tallyfold adds a timeline step to onboarding for a random half of new accounts, and the twelve month renewal in that half is what decides whether the step stays. For Fernhill, the equivalent is which product page features (room photos, dimensions drawn on the image, reviews with photos) go with fewer returns, which matters more to a homeware margin than clicks.

Data science: predicting and testing

With clean data and clear analysis in place, the data scientist builds models that predict what will happen and designs the experiments that show whether an intervention changes it. Most of these jobs need more data than people expect. The question of when you actually need this role is answered in you do not need a data scientist yet.

9. Churn prediction (importance 9 out of 10)

Why it matters. Once a customer has cancelled, the revenue is gone and the conversation starts from a broken relationship. Predicting who is drifting lets customer success call while there is still something to save.

How it is done. The scientist trains a model on past accounts that stayed and left, using usage trends, support tickets, failed payments and seat changes, and scores every live account weekly. The value of acting on the scores follows the logic of expected value:

V=n⋅p⋅s⋅L−CV = n \cdot p \cdot s \cdot L - C

where VV is the net value of one month's outreach, nn is the number of accounts contacted, pp is the precision (the share of contacted accounts that would really have left), ss is the save rate (the share of those that stay because of the call), LL is the lifetime value of a saved account and CC is the cost of the outreach.

Worked example. Tallyfold's model flags the 100 highest risk accounts each month. In a back test, 40% of flagged accounts really did leave, so p=0.4p = 0.4. Customer success calls 100 accounts at about an hour each, roughly £3,500 of time. The save rate is measured, not assumed: a random fifth of flagged accounts gets no call, and comparing the two groups gives s=0.25s = 0.25. Then V=100×0.4×0.25×2,170−3,500=18,200V = 100 \times 0.4 \times 0.25 \times 2{,}170 - 3{,}500 = 18{,}200, or about £18,200 of lifetime value a month from ten saved accounts. Without the uncalled group, every account that stayed after a call would be credited to the call, and the programme would look three times better than it is.

10. Segmentation for personalisation (importance 8 out of 10)

Why it matters. Customers differ in what they buy, how often and why. Treating them alike wastes money on the ones who would buy anyway and annoys the ones who never will.

How it is done. The scientist starts from the decision the segments must serve, then groups customers on behaviour and value, with RFM (recency, frequency, monetary value), k means clustering or latent class models. Each segment gets a profile and a plan. The tools and their traps are in the tools of segmentation.

Worked example. Fernhill finds a group of about 2,000 customers who buy heavily in the four weeks before spring and before Christmas and very little otherwise. Sending them the seasonal range three weeks before their usual window, to a random 80% of the group with 20% held back, shows whether the timing adds sales or just moves them forward by a fortnight.

11. Price testing and elasticity (importance 8 out of 10)

Why it matters. Most prices are set once and defended forever. Price elasticity, how strongly demand responds to a change in price, tells you whether a rise loses more volume than it gains in margin.

How it is done. The scientist estimates

ε=ΔQ/QΔP/P\varepsilon = \frac{\Delta Q / Q}{\Delta P / P}

where ε\varepsilon is the price elasticity of demand, ΔQ/Q\Delta Q / Q is the percentage change in quantity sold and ΔP/P\Delta P / P is the percentage change in price. The Foundations section on elasticity explains why it is nearly always negative and why its size matters more than its sign. The estimate comes from a price test on new customers or from past promotions, modelled properly as in modelling demand and price elasticity with regression. The plain language version is price elasticity in plain English.

Worked example. Tallyfold shows its mid plan at £79 to a random half of trial users and at £99 to the other half. Out of every 1,000 trials, 50 convert at £79 and 44 at £99. Quantity falls 12% while price rises about 25%, so ε≈−0.47\varepsilon \approx -0.47, and monthly revenue per 1,000 trials goes from £3,950 to £4,356, about 10% more. Before rolling it out, Tallyfold follows both groups as cohorts (job 5), because a higher price can also mean faster churn, and that shows up months later, not in the first invoice.

12. Recommendations (importance 7 for a shop, 6 for SaaS)

Why it matters. Showing each customer the products or features they are most likely to want raises basket value and engagement in a way hand picked "you might also like" rows cannot do across thousands of products.

How it is done. The scientist starts with "bought together" pairs, moves to collaborative filtering on purchase and browse history when there is enough data, and serves the results on product pages, in the basket and in mails. How this looks inside a Solidus shop is in building AI recommendations in Solidus.

Worked example. Fernhill replaces its hand picked rows on product pages with model driven ones for a random half of sessions. The measure is revenue per session in each half over four weeks, not clicks on the recommendation row, because a row that is clicked a lot can still steal sales from the product the customer came for.

13. Incrementality testing and experiments (importance 9 out of 10)

Why it matters. Customers who received a mail bought more. Did the mail cause it, or do you mail your best customers? Only a randomised experiment with a control group answers that. And most ideas do not work: when Microsoft evaluated its own well designed experiments aimed at improving a key metric, only about one third improved it.4

How it is done. The scientist assigns people at random to treatment and control, decides the sample size in advance (see sample size and hypothesis tests) and measures the lift

ℓ=rt−rcrc\ell = \frac{r_t - r_c}{r_c}

where ℓ\ell is the relative lift, rtr_t is the conversion rate in the treatment group and rcr_c is the conversion rate in the control group. The deeper treatment is in statistical testing, sample size and lift.

Worked example. Fernhill sends lapsed customers 20% off and holds back a random group that gets nothing. Of every 100 mailed, 14 order again. Of every 100 held back, 11 order anyway. The lift looks pleasant at (14−11)÷11≈27%(14 - 11) \div 11 \approx 27\%. The margin tells the real story. Each £62 order earns £27.90 at 45% margin, and the discount costs £12.40. The mailed group earns 14 × £15.50 = £217 per 100 customers, the held back group 11 × £27.90 ≈ £307. The campaign loses about £90 for every 100 people it reaches, because it pays a discount to eleven people who would have come back at full price. Without the holdout, it would have been reported as a success.

14. Demand forecasting (importance 7 out of 10)

Why it matters. Stock ties up cash and stockouts lose sales. A good forecast balances the two, product by product.

How it is done. The scientist models sales per product with trend, seasonality, promotions and holidays, and produces a range rather than one number, because the reorder decision depends on how wrong the forecast might be. The method is in forecasting demand with autocorrelation and seasonality. In SaaS the same tools forecast support ticket volume for staffing rather than stock.

Worked example. Fernhill forecasts its 400 core products weekly with a range from the 10th to the 90th percentile, orders to the upper end only for products with long supplier lead times, and checks each month how often the actual sales fell inside the range. If they fall inside about 80% of the time, the ranges are honest.

15. Lead scoring (importance 8 for B2B SaaS, 5 for a shop)

Why it matters. Sales time is the most expensive time in a B2B business. Working leads in the order they arrive spends it evenly on good and bad prospects.

How it is done. The scientist predicts the probability of becoming a customer from fit (company size, sector), behaviour (pricing page visits, invited colleagues) and source, and sales works the list from the top. Scores are explained, not just ranked, so a salesperson can see why a lead is hot.

Worked example. Tallyfold sells an agency plan through two salespeople. A back test shows the top fifth of leads by score contained 55% of the deals closed last year. The honest test is to give one salesperson the scored list and the other the old queue, swap after a month, and compare closed revenue per hour.

Where to start: the ranking

If you are deciding what to do first, the ratings sort themselves into four steps. Ten out of ten, do first: one view of each customer, and lifetime value by segment. Nine, do next: the event plan, the clean warehouse, cohorts, attribution, churn prediction and experiments. Eight, once the foundations hold: funnels, product usage, segmentation, price tests and, for B2B, lead scoring. Seven, for refinement: recommendations and demand forecasting.

The pattern is the point. Engineering first, analysis second, prediction and testing third. A churn model trained on a customer table that counts the same company three times is not a shortcut, it is a delay with a dashboard.

Why I do not add these numbers up

The old version of this article ended with a total: ten examples summed to more than £5 million a year, described as realistic numbers from real implementations. I have removed it. The examples were illustrations, not measured results, and summing them is wrong even for a real business, because the effects overlap. The churn calls, the cohort fix and the price test all claim some of the same retained accounts, just as four ad platforms claim the same order.

What you can do honestly is measure each change against its own holdout, record the result, and let the next change be tested on top of the last. After a year you have a list of effects you know are real, which is worth more than a large number you cannot defend. The first month of that work, before any model exists, is described in the first data science month.

How I work on this

On the data projects I take on I start with jobs 1 to 3, because every later answer depends on them, and I agree the holdout for each change before it goes live. Your raw data stays yours, and the terms for code and models are in the analytics and data science terms. If you want to know which of these fifteen jobs would pay first in your business, I run a free workshop, and the first two weeks of work are on me.

If you want to know which of these fifteen jobs would pay first in your business, and what your data can already answer, I run a free workshop and the first two weeks of work are on me. Your raw data stays yours throughout.

Sources

  1. 1.

    The Privacy and Electronic Communications (EC Directive) Regulations 2003, regulation 6(2) as substituted by the Data (Use and Access) Act 2025, s. 112, in force 5 February 2026, legislation.gov.uk, https://www.legislation.gov.uk/uksi/2003/2426/regulation/6

  2. 2.

    European Data Protection Board, Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0, 16 October 2024, paragraphs 2 and 43, https://www.edpb.europa.eu/our-work-tools/our-documents/guidelines/guidelines-22023-technical-scope-art-53-eprivacy-directive_en

  3. 3.

    The Privacy and Electronic Communications (EC Directive) Regulations 2003, Schedule A1, paragraph 5 (collecting information for statistical purposes), in force 5 February 2026, legislation.gov.uk, https://www.legislation.gov.uk/uksi/2003/2426/schedule/A1

  4. 4.

    Ron Kohavi, Thomas Crook and Roger Longbotham, Online Experimentation at Microsoft, Third Workshop on Data Mining Case Studies and Practice Prize, 2009, https://exp-platform.com/Documents/ExP_DMCaseStudies.pdf