TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Ecommerce Fraud Prevention: Spotting Bot Traffic Before Chargebacks

Use traffic and checkout data as an early warning for ecommerce fraud: carding patterns, five signals with sample thresholds, a worked spike and false-alarm example, and a monitor you can set up in TapCub.

Lin Zhou Published Nov 22, 2026 11 min read Analytics
Sample data: the 02:00 to 04:00 bucket holds 93 attempts against a baseline of 36, driven by 74 attempts in the 03:00 hour (baseline 18, SD 4: 14 standard deviations), of which 78.4% failed.Sample data

Ecommerce fraud prevention starts before the chargeback: automated card testing and card cracking leave a pattern in traffic data, a burst of checkout attempts, a high share of failed payments and a source that is mostly bots. In the sample below, 74 attempts in an hour against a baseline of 18 is 14 standard deviations, and 78.4% failed. Analytics warns you; your payment provider or fraud tool decides on each order.

What you will learn

  • Combine signals: a burst of checkout attempts plus a high failed-payment share plus one bot-heavy source is the pattern; any one alone is weak
  • Alert against the same hour's baseline, not a fixed count, and test the threshold on 30 days of history before relying on it
  • Analytics only warns; blocking, verification and approval belong to your payment and fraud tools

How can traffic data help prevent ecommerce fraud?

Traffic and behavior data cannot tell you whether a single order is fraudulent, but it can tell you, before any chargebacks arrive, that something unusual is happening at checkout. Many attacks on online shops leave a pattern in analytics first: a burst of checkout attempts, a jump in failed payments, a source that sends almost nothing but automated visits. Treat those patterns as early warnings that tell you when to look closer, and leave the decision on each order to your payment provider or fraud tool.

The stakes are real and growing. The US Federal Trade Commission reported that consumers lost about $12.5 billion to fraud in 2024, a 25% increase on 2023, from roughly 2.6 million reports. And more of retail is online every year: the Census Bureau's latest release put e-commerce at 17.9% of total retail sales in the third quarter of 2026, seasonally adjusted (released 19 November 2026). This guide covers the analytics side only; for the full set of defenses (address checks, 3-D Secure, rules engines) see ecommerce fraud prevention techniques. For the traffic types themselves, see types of bots.

What do bot-driven fraud attempts look like in the data?

Two attack types are named in the OWASP project on automated threats, and both leave a footprint at checkout:

What these have in common is volume and failure. A script tries many cards quickly, and most fail. In analytics that shows up as a sudden rise in checkout attempts, a high share of failed payments, little or no browsing before checkout and, often, one narrow source of traffic.

Which signals are worth watching?

SignalNormal patternAlert rule (sample, tune on your history)Why it matters
Checkout attempts per hourFollows the daily curveMore than 4 standard deviations above the same hour's baselineCard testing arrives as bursts
Failed-payment shareLow and steady (6% in the sample)Above 25% in an hour with at least 30 attemptsMost guessed cards fail
Bot share by sourceSingle digits for most sourcesOne source above 20%Automated traffic often comes through one referrer or channel
Checkouts with no product viewRareMore than 5% of checkout sessionsScripts go straight to the payment page
New country in the checkout mixStable listA country appearing with more than 5% of attemptsAttack traffic is rarely spread like your customers

Thresholds depend on your shop. A store with 18 attempts an hour and one with 1,800 need different rules; start by writing down last month's range for each signal and set the alert outside it.

SignalAlert rule (sample)
Checkout attempts per hourMore than 4 standard deviations above the same hour's baseline
Failed-payment shareAbove 25% in an hour with at least 30 attempts
Bot share by sourceOne source above 20%

Thresholds are illustrative; write down last month's range and alert outside it.

How do you build a baseline you can trust?

An alert is only as good as the baseline it compares with. Build it in four steps:

  1. Pull 14 days of hourly checkout attempts. That gives 10 weekdays and 4 weekend days, so each hour of a weekday has 10 observations and each hour of a weekend has 4. Use 28 days if you can: 20 and 8.
  2. Keep weekdays and weekends apart. Shoppers behave differently on Saturday, and mixing them inflates the standard deviation and hides real spikes.
  3. Remove known events. Cut hours with a sale, an email send or an earlier attack, or the baseline will treat them as normal.
  4. Compute a mean and a standard deviation per hour. If a shop has fewer than about 5 attempts an hour, hourly counts are too thin to be useful; use 4-hour windows or daily counts instead.
Data keptWeekday observations per hourWeekend observations per hour
14 days104
28 days208

Refresh the baseline monthly, and again after any big change to traffic or pricing.

How do you detect a spike? A worked example

Sample data: for the 03:00 to 04:00 hour your baseline from the last 14 days is a mean of 18 checkout attempts with a standard deviation of 4. Today that hour has 74 attempts.

  • Size of the spike: (74 − 18) ÷ 4 = 14 standard deviations, and 74 ÷ 18 = 4.1 times the baseline.
  • Failure share: 58 of the 74 attempts failed, which is 78.4%, against a normal 6%.
  • Choice of threshold: if hourly counts behave roughly like a bell curve, a rule at 3 standard deviations fires by chance about once every 31 days (24 checks a day × 0.00135), which is too noisy; a rule at 4 fires by chance about once in 1,300 days, or once in 3.6 years. Counts are skewed, so confirm the rate on your own history before trusting that figure.

Either test fires here during the burst itself, before any disputes arrive. Combine the two: a high count with a normal failure share is probably a campaign or a sale; a high count with a 78% failure share is an attack.

Now add the source view. In the same sample, the share of recognised bot sessions by traffic source is 3% for direct, 2% for organic search, 1% for email and 64% for one referring site. A source with 64% automated sessions explains the burst and tells you where to look.

app.tapcub.com

03:00 hour

74

▲ 4.1 times baseline of 18

Failed share

78.4%

▲ normal 6%

Bot share, one referrer

64%

▲ others 1–3%

Checkout attempts per 2 hours

Baseline (14-day mean)Today
000204060810121416182022
Sample data
Sample data: the 02:00 to 04:00 bucket holds 93 attempts against a baseline of 36, driven by 74 attempts in the 03:00 hour (baseline 18, SD 4: 14 standard deviations), of which 78.4% failed.

What should you do when a signal fires?

Keep the response proportionate and reversible:

  1. Confirm it is not you. Check for a sale, an email send or a tracking change in the last hour. A marketing campaign can double attempts without any fraud.
  2. Look at the failure share and the source together. Many attempts plus many failures plus one odd source is the pattern; any one alone is weak.
  3. Tell the owners of payment and fraud. Your payment provider or fraud tool can block, step up verification or add rate limits; analytics cannot.
  4. Protect the checkout without punishing customers. Common measures are rate limits per session, a challenge on the payment step and a block on the offending source. Over-blocking costs real orders, so prefer measures you can switch off.
  5. Write down what happened. Note the hour, the size of the spike, the failure share and the source, so next time the threshold has evidence behind it.

What mistakes make fraud signals useless?

  • Alerting on raw counts. A sale will trip a fixed number; compare to the same hour's baseline.
  • Looking at only one signal. High volume alone is usually good news.
  • Counting bots as customers. If automated visits sit in the denominator, your conversion rate drops and your funnel looks broken when it is not.
  • Setting thresholds once. Seasonality changes the baseline; refresh it monthly.
  • Treating analytics as a fraud engine. Traffic signals warn; they do not approve or decline orders.
  • Ignoring human fraud. Real people using stolen cards at normal pace will not show up as a traffic anomaly.

How would you watch for this in TapCub?

TapCub does not block traffic, score orders or decide whether a payment is fraudulent; it measures, so you see the warning early. Take the 74-attempt spike as the example.

  1. Record the steps as events. Send events such as checkout_started and payment_failed from your shop (a custom event or the server-side HTTP API), so the funnel in All-platform analytics › Behavior › Behavior analysis shows attempts and failures by hour.
  2. Save a metric for the signal. In All-platform analytics › Behavior › Metrics & SQL, define a custom metric such as the count of payment_failed events. A custom metric can also count unique visitors or a ratio.
  3. Put a monitor on it. In All-platform analytics › Operations › Monitors, check the saved metric hourly. A dry run computes without sending and tells you how many times the rule would have fired over the past 30 days, which is the quickest way to tune a threshold. Alerts go by email, WeCom, DingTalk, Feishu or webhook; the same rule is not repeated for about 60 minutes by default. A monitor only notifies; it does not act.
  4. See the sources. Web analytics › Bots lists recognised bots with their requests, pages, status codes and source channel, separately from people. Recognised bots do not enter visitor counts or conversion rates, which is why your funnel stays honest during an attack.
  5. Know the limit. TapCub flags only the bots it recognises. A script posing as a normal browser, or a person using a stolen card, will not appear there, which is why the event-level signals (attempt bursts, failure share) matter.

FAQ

How do you detect ecommerce fraud?

Combine payment-side signals with traffic signals: bursts of checkout attempts, a high share of failed payments, little browsing before checkout and automated traffic from one source. Analytics warns you that something is wrong; your payment provider or fraud tool decides on individual orders.

What is card testing?

Card testing, called carding in OWASP's catalogue (OAT-001), is the use of automated attempts to check which stolen card numbers are valid by running them through a merchant's payment form. It tends to appear as a burst of small checkout attempts with a high failure rate.

How do bots affect an online store's analytics?

Automated visits inflate visits and checkout attempts and lower conversion rate, because they count in the denominator without buying. Separating recognised bots from people keeps conversion rate and funnel steps honest and makes real attack bursts easier to see.

Can analytics stop fraud?

No. Analytics shows patterns and sends warnings; it cannot approve or decline a payment. Stopping fraud takes controls in your payment and fraud tools, such as rate limits, verification and blocking. Analytics decides when to look.

Sources

Filed underAnalytics

Was this article helpful?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

Get warned about checkout bursts

Save a metric for failed payments, put an hourly monitor on it and see recognised bots separately from people.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics