
Customer Segmentation Analysis: RFM Example With Data
Follow a customer segmentation analysis example using RFM. Download the dataset, check refunds and duplicates, and build a customer review list.
Marketing Analytics — Guide · 2026
Follow a drop in demo requests from an incomplete analytics pull to a CRM check, a tracking fix, and a scheduled alert.
There can be multiple reasons for numbers to go down. Before drilling down our primary job is to make sure if numbers are even correct or not. Maybe it can be that campaign didn't go as planned, or competitors are doing better. But it can also be that:
We'll walk through one real-looking case together: from the moment the number made your stomach drop, to the short explanation you'd give your manager, to a simple check that would warn you if it ever happened again. The data is made up, but it behaves like the real thing. Download the sample workbook (Excel) if you want to follow along.
Marketing anomaly detection is checking your marketing numbers (spend, clicks, conversions, traffic and revenue) for changes outside their normal range, then confirming whether each change is real before you act upon it.
Figuring out that the number has moved can be automated, but confirming that the change is real is the part that will protect you from explaining a tracking error to your boss or client as a bad week
Most of the marketing anomalies fall into 5 kinds:
| Kind | What it looks like | First thing to check |
|---|---|---|
| Spend | The budget runs out by Thursday, or spend doubles overnight | Budget, bid or pacing changes |
| Tracking | Conversions drop to zero while clicks look normal | The tag or event, and a count from your CRM or backend |
| Conversion | The conversion rate falls on one channel | The landing page, the form and the traffic mix |
| Traffic | Sessions fall or spike on a single day | Whether the day is complete, bots, URL changes |
| Revenue | Orders hold steady but revenue falls | Average order value, refunds and currency |
All anomaly detection setup have the same goal, from ML services to spreadsheet formula, they do these three things:
The most simplest check is having fixed thresholds: like "Alert me if conversions fall below 50 a day." it is easy to setup but it can be wrong most of the time, because normal varies based on the days, weeks, months, quarters, etc. During holiday season your inbox will be filled with alerts.
So having a baseline compares each number with what is normal for that moment instead. The most practical baselines in marketing are the same weekdays last week and a rolling seven-day average, because they absorb the weekly rhythm most account have. If you are comparing Monday with the weekly average, then by contrast, then every Monday alarms will be raised.
In case you are looking for something that is more precise than "compare with last Tuesday", there you can go with two options:
Whichever method you will be use, it will only answer one question: is this number unusual for this day? None of them tells you whether the number is right. That is why two settings below matter more than the choice of method.
Catching the problem is short span isn't always criteria to make the judgement. If the check is running on an incomplete data then it will flag every second. But a check that runs once a day on complete data, waiting for two days to numbers to settle, will usually tell you about a broken tag within 2 or 3 days. Comparing that with finding during your monthly report, this is much better. Before starting your investigation it's always better to check with your team members if they are seeing the same dip or not.
Prioritise the metrics that will help you make decisions, and for each one decide what "normal" looks like: the same day last week, as seven day avg. or the same period last year.
The table below does that for the usual suspects. Pay most attention to the last column. It's the step most setup skip: A quick way to tell whether a change is real before you react to it.
| Metric | What an anomaly looks like | Compare with | Check that it’s real |
|---|---|---|---|
| Spend and pacing | The month’s budget is on track to run out early, or one day’s spend doubles | Planned daily spend, same weekday last week | Budget, bid and auto-applied changes in the change history |
| Cost per acquisition (CPA) | CPA jumps while spend is steady | Rolling seven-day average | Whether conversions fell (tracking) or costs rose (auction) |
| Return on ad spend (ROAS) | ROAS falls on one channel | Same weekday last week; same period last year in peak seasons | Revenue in your backend for the same orders, and whether purchase events still carry a value |
| Click-through rate (CTR) | CTR falls across a campaign | Rolling seven-day average | A change in ad formats, placements or how the platform reports impressions |
| Conversion rate | The rate falls, or rises unexpectedly | Same weekday last week, by channel | Whether traffic quality changed: a rate can rise simply because low-quality traffic disappeared |
| Conversions or leads | A drop, or a drop to zero | Same weekday last week, with a minimum volume | The same count in your CRM or backend |
| Tracked vs recorded conversions | The share of CRM leads or backend orders that your analytics captures falls | Its usual level for your account | This is the check: if the share falls, the tracking broke, not the business |
The last row is the one to add if you plan to add nothing else. It needs a count that lives outside your website tracking, and it catches the failure which every other row can mistake for bad week.
Let's take example of B2B company that is tracking number of demo requests booked in Google Analytics 4 (GA4) as a form submit event. These requests gets logged into company's CRM as well.
On Monday morning, they see that the number of demo request is down by significant margin compared to the previous week.
The sample workbook contains the daily data behind every step: a GA4-style export by date, channel, landing page and device, the daily CRM demo requests, and a change log. All of it is synthetic.
The first comparison ran at 9 am on Monday, but at that point the data from Sunday was still settling in, so "Last week" wasn't accounted for.
| View | Prior week | Last week | Change |
|---|---|---|---|
| Monday 9am (Sunday incomplete) | 200 | 126 | −37% |
| Complete week | 200 | 140 | −30% |
So the drop wasn't really 37%, data from Sunday is still hasn't been settled. Before you dig any further, make sure both weeks are finished and cover the same day. But before taking a breather and waiting for tomorrow, do make sure that other key metric that updates on regular basis are "normal".
Wait for the comparison period to finish

Next, make sure to compare GA4 with the CRM, which records every request whether or not the website's tracking fired.
| Source | Prior week | Last week | Change |
|---|---|---|---|
| GA4 tracked demo requests | 200 | 140 | −30% |
| CRM demo requests | 210 | 192 | −8.6% |
| GA4 as a share of CRM | 95% | 73% | −22 points |
In the previous week, GA4 Captured 95% of the requests the CRM recorded, but Last week it captured 73%
Which now tells us that business lost 18 demo requests instead of 60. The rest hasn't been tracked to begin with.
Check the recorded requests alongside tracked events

Now we will split the count based on the devices
| Device | GA4 prior week | GA4 last week | CRM prior week | CRM last week |
|---|---|---|---|---|
| Mobile | 80 | 31 | 84 | 78 |
| Desktop | 120 | 109 | 126 | 114 |
| Total | 200 | 140 | 210 | 192 |
Now we can clearly see the problem here. On mobile, GA4 collapsed from 80 to 31, while the numbers registered in the CRM has barely moved. On desktop, tracking has been steady, but real requests fell by 12.
Separate the mobile tracking gap from the desktop decline

Find the mobile page that stopped recording events

In the company's change log there are two entries for last week.
| Day | Change | What it explains |
|---|---|---|
| Tuesday | A new /demo page was released | From Tuesday, the form-success event stopped firing on mobile |
| Thursday | The daily budget for desktop paid search was reduced | Fewer paid-search visits and fewer desktop requests from Thursday |
The daily data confirms the timing: mobile tracking drops on the release day, and the desktop decline starts when there were changes in the budget.
Compare the daily pattern with the change log

We see real changes in the CRM. We have to break it down to see what the reason behind it is.
| Contribution to the change in CRM demo requests | Change |
|---|---|
| Desktop paid search | −12 |
| Mobile (all channels) | −6 |
| Other desktop channels | 0 |
| Total | −18 |
As you can see in the above table, desktop paid search accounts for two thirds of the real decline. the mobile change of -6 is within the normal week-to-week range of the previous six weeks, so on its own it not an anomaly.
Check the real decline against the six-week baseline

Now you know three things. The calendar accounts for the step from −37% to −30%: Sunday's data had not settled when the first comparison was run. Of the remaining −30% fall in GA4, most is a tracking break. The real decline is 18 CRM requests, and most of that has a dated, reversible cause. In the next two sections we will turn that into an explanation and a check that runs on its own.
Turn the investigation into a short management summary

Keep the source counts together on one dashboard

Watch the tracking ratio alongside paid search

| Mistake | What to do instead |
|---|---|
| Comparing a week that isn’t finished | Compare complete days and the same days of the week |
| Mixing users, sessions and events | Use one definition per metric, and say which one |
| Reading a tracking break as a bad week | Check a CRM or backend count before you explain anything |
| Comparing months without counting days | Compare daily averages, or the same period last year |
| Reacting to a tiny sample | Agree on a minimum volume before a change counts |
| Alerting on “Monday versus the weekly average” | Compare with the same weekday |
| Letting the date range and definition fall off the chart | Keep both on the chart when it moves into a deck or an email |
If you don't have data to back up you explanation then it will only sound like an excuse, especially when number is bad. You can do four things to make believable:
For the worked example, the summary reads:
Demo requests recorded in the CRM fell from 210 to 192 last week (−8.6%). The larger fall in GA4 (−30%) is mostly a tracking break: since the new demo page launched on Tuesday, the mobile form-success event has not fired. Real requests fell by 18, mainly in desktop paid search (−12) after Thursday’s budget cut. Next steps: restore the mobile event today, and decide on the paid-search budget by Friday. We’ll check both on Monday.
The investigation above took a morning. You can schedule the most useful checks to run every day, so you don’t have to repeat that work yourself.
Describe what you want to watch in plain language: which metric and segment, what to compare it with, how long to wait for the data to finish processing, and how big a change should trigger a report. Include a minimum volume so a handful of requests doesn’t set it off, and say what the report should tell you.
For this example:
Every day at 8:00, check the date two days before the newest date in the data and send a report only if CRM demo requests on any device are down at least 50% from the same weekday last week, with at least 20 requests for that device on the comparison day, or if tracked demo requests are below 80% of CRM demo requests; include the day checked, the comparison counts, and the percentage change or tracking ratio that triggered the report.
That tracking check matters just as much as the drop check. Looking only at tracked requests would have made last week look like a bad week for demos. Comparing them with the requests recorded in the CRM is what points to the broken tag.
For most marketing decisions, checking once a day is enough. If you’re considering live alerts, see why you may not need real-time anomaly monitoring.
Whether you build checks in a spreadsheet, use your ad platform’s alerts or use a dedicated tool, the same six questions decide whether the alerts will be useful.
If you’re comparing specific products, see our guide to AI tools for marketing data analysis.
Anomaly AI is an AI data analysis workspace. You can upload the sample workbook, or connect GA4, Google Ads and Search Console, and ask the questions from the worked example in plain language: compare the two complete weeks, compare tracked requests with the CRM, split them by device, and line the change up with the change log. Each answer shows the rows and calculation behind it, so you can check a number before it goes into a report, then turn the result into a dashboard or a written summary.
To turn the investigation into a check, schedule the report and choose Only when something happens. Write the condition in plain words, like the one above. On each scheduled run, Anomaly AI checks the condition and emails the report only when it is met. These are scheduled checks, not real-time monitoring. A schedule built on an uploaded file reuses that file until you upload a new one, so connect your sources for checks that use fresh data. How to automate a weekly marketing report walks through the schedule step by step.
Write the condition for sending the report

Use CRM requests for the device-level decline check

Read the tracking warning in the alert email

Set the report timing

Check the run history

Inspect the report produced by the check

It is checking marketing numbers such as spend, clicks, conversions, traffic and revenue for changes outside their normal range, then confirming whether each change is real before acting on it. The second step matters most, because many sudden drops turn out to be tracking or calendar problems rather than real changes in demand.
A threshold alert fires when a number crosses a fixed value, such as fewer than 50 conversions a day. Anomaly detection compares each number with what is normal for that moment, such as the same weekday last week or a rolling seven-day average. That makes it far less likely to fire on every quiet Monday or miss a real drop that stays above the threshold.
Compare the tracked conversions with a count tracking can’t break, such as leads in your CRM or orders in your backend. If the backend count held steady, the drop is in the measurement. Then split by device, page and country to find where the tracking stopped, and check what changed on the day it started.
A sudden drop to zero is most often a measurement problem: a tag removed during a site release, a form or event that stopped firing, a changed conversion action or a consent update. Check what changed on that date, confirm with a backend count, and look for the device or page where the drop is concentrated.
Leave a processing buffer of a day or two before judging a day’s data, because analytics and ad platforms keep updating recent days. Also allow for conversion lag: clicks from the last few days may still convert, so recent conversion rates look lower than they will end up.
The day that was checked, what it was compared with, the size of the change, and the segment where it happened. It’s even more useful when it also says what was ruled out, such as an incomplete day, so the person reading it can decide quickly whether to act.
For most marketing decisions, no. Budgets, landing pages and campaigns are usually reviewed daily or weekly, so a check that runs once a day on complete data catches problems in time with far fewer false alarms. Real-time alerts make sense mainly for time-critical systems. See why you may not need real-time anomaly monitoring.
Yes. AI can compare periods, split the change by channel and device, and summarise what moved and why. In Anomaly AI you describe the condition in plain words, and a scheduled report checks it on every run and sends an email only when it is met. Whichever tool you use, check the rows behind the result before you act on it.
Continue exploring AI data analysis with these related insights and guides.

Follow a customer segmentation analysis example using RFM. Download the dataset, check refunds and duplicates, and build a customer review list.

Export the report you need, refresh it when necessary, and check the numbers before turning it into a weekly traffic update.

One weekly marketing question, asked from Claude Code through Anomaly’s MCP server and traced to its SQL and rows, with the daily-users trap worked out in the open.
