Everyone in analytics knows the rule: a session ends after 30 minutes of inactivity. But who actually knows where the 30 came from?
Peter O'Neill went digging for the origin story, and it's a pretty good one. The trail leads to a 1995 paper by Catledge & Pitkow, who measured the mean time between user events on their web server: 9.3 minutes. They added 1.5 standard deviations, got 25.5 minutes, and as a later paper from the Wikimedia Foundation puts it, that threshold "has gradually been smoothed out to 30 minutes."
So the number every analytics platform runs on today is a rounding of some fairly dodgy maths done on 1995 browsing behaviour, when pages arrived over dial-up and 9 minutes between clicks was normal.
Peter ended his post with a wish:
"It would be nice if someone created a solution that quickly identifies the optimal gap of inactivity to define a session for any organisation, based on their data."
Peter O'NeillFractional Digital Analytics Leader
We track every event on our clients' websites with full timestamps, so we had a crack. Twelve months of continuous data across three segments we work in: leisure and travel, DTC ecommerce, and B2B technology, which as you'll see behaves quite differently from the other two. We removed bot traffic and included only consented users.
So what does a year of actual human behaviour say about the 30-minute rule?!
People are either browsing or they're gone
Measure the gap between every pair of consecutive events from the same device and the distribution is beautifully bimodal. People act in quick bursts, seconds apart. Then they leave, and come back hours or days later - there's almost nothing in between.
An event here is a page load or something the person actually did: adding to basket, engaging with a form. We don't count anything that fires on its own, like a pop-up appearing or a form scrolling into view. And when an event only describes the page someone is already on, like a product page view, it lands on the same timestamp as the pageview, so it adds nothing. The first cluster is still denser than anything a 1995 server log could show, because we can see more of a visit than page requests alone. But the pauses are a person's pauses either way.

In leisure and ecommerce, around 95% of gaps are under 2 minutes. In B2B, where people do stop and read, it's 73%. And the zone the whole argument is about, 5 to 30 minutes, holds between 0.5% and 6.4% of gaps, depending on segment.
The quietest point of the distribution is the natural boundary between "still here" and "came back". In every segment we looked at, it sits between 15 and 20 minutes. The rule is wrong, but the interesting part is how little it matters.
Move the cutoff, and almost nothing happens
Session boundaries live in a near-empty part of the distribution, so moving the boundary around inside it barely does anything.

Set the cutoff anywhere from 15 to 60 minutes and session counts move by low single digits. Go down to 5 minutes, which is the default Amplitude applies to apps, and you get a 10 to 17% inflation, mostly from B2B reading pauses.
Bounce rate hardly moves either. Our B2B segment bounces at about 46% on a 30-minute cutoff and about 48% at 5 minutes. Ecommerce moves a fraction of a point. Whatever's wrong with your bounce rate, the session timeout isn't it.
But maybe that's the odd thing about the 30-minute rule - the maths behind it is obsolete, and it's still one of the most robust parameters in analytics. The bimodality is doing the work. Almost any wall you build through an empty zone ends up in roughly the right place.
Doesn't mobile behave differently?
That was our expectation too, so we split everything by device.

For the consumer segments, mobile and desktop web are practically the same. Both put 95 to 97% of gaps under 2 minutes, the valley sits in the same 15 to 20 minute range, and a 5-minute cutoff inflates sessions by 10 to 13% either way, with no consistent direction between devices. Native apps aren't in this data, but nothing about playing with your phone seems to change it. Mobile web behaviour looks like desktop behaviour, just maybe more thumb tappy.
B2B is the exception again. 75% of B2B gaps are under 2 minutes on desktop; on mobile it's 60%, and the ambiguous 5-to-30-minute zone is half as fat again (9% of gaps against 6%). People read enterprise content on a phone, put it down and pick it up later, in a way they don't on their desktop. If you're B2B and your mobile session metrics have always looked a bit odd, that's probably part of it.
Entrances are where the cutoff actually matters
A quick note on our terminology, because ours differs slightly. We count visits rather than sessions. It's the same idea and the same 30-minute logic, but a session in most tools carries a single source, whereas we record every 'entrance' inside a visit: every time someone arrives from a taggable source before the clock runs out. So one visit can (and often does!) hold several entrances.
We chose this logic because a visit is really a unit of attribution rather than a unit of time. Every entrance carries a traffic source, and those sources are what your channel reports, and they shape how your ROAS numbers and your budget decisions get made. So the question worth asking isn't how many visits you count, it's what happens to the entrances.
We looked at every case where a device came back within 30 to 60 minutes of its last visit ending. Those are exactly the visits a longer cutoff would merge into one. In our consumer segments, that returning visit arrived from a different marketing source about one time in four. Lengthen the cutoff and those touchpoints don't get reattributed anywhere, they just disappear.
Shorten it and the problem inverts. A 5-minute rule would split 8 to 12% of today's visits. But when we looked at what people did after those mid-visit pauses, only about a quarter in consumer, and a twentieth in B2B, came back through any tagged marketing. The rest just picked up where they left off. Split there and you've manufactured visits with no source on the entrance at all, which your reports will file under everyone's favourite channel: direct.

This pattern holds all the way out. The longer someone's been away, the more likely their return is genuine marketing re-acquisition. Come back within the hour and it's overwhelmingly the same journey resuming. Come back the same day and around 25 to 38% of consumer returns arrive on a tagged campaign. Leave it a week or more and that rises to between half and two-thirds. B2B stays flat at about 5% the whole way, because B2B research doesn't run on ad clicks the same way.
That's reassuring for the idea of a visit boundary. It's also why we've argued before that entrances deserve more attention than they get. In a year of data, about one visit in five had more than one entrance. "Multiple entrances" is an easy phrase to nod along to, so we classified them:
- In consumer segments, a quarter to a third of multi-entrance visits arrive from genuinely different marketing sources. Another 7 to 12% are the same channel but a different campaign or ad click, and up to a quarter are the same source landing on a different page (think two different search results, minutes apart).
- The rest, roughly 40 to 50%, are the same source hitting the same landing page again: re-clicks and refreshes. Some of those are probably just refreshes of a tagged page, so read the different-source number as a floor rather than the whole story.
- B2B inverts it. Different sources are rare, under 8% of its multi-entrance visits, but nearly 60% are the same source arriving on different pages. That's multi-tab research behaviour, not marketing.
A single "session source" was always a simplification. Where you put the visit boundary decides which entrances exist at all.
Back to the 1995 maths.
We replicated Catledge & Pitkow's method (mean plus 1.5 standard deviations) on our own data and it gave us six different answers.
Look at gaps up to 24 hours and it proposes cutoffs of 18, 26 and 55 minutes across our three segments. Cut at 1 hour and the same method gives 2.6, 3.3 and 9.6 minutes. It isn't measuring behaviour. It's measuring wherever you chose to chop the tail, because mean and standard deviation are the wrong tools for a heavy-tailed distribution. That was true in 1995 too.
Measured their way, mean for mean on that same truncation, their 9.3-minute gap is about a minute and a half today. That's partly faster pages and partly that we can see so much more of what people are doing. But my favourite detail: on ecommerce with a 24-hour truncation, the method lands on 25.8 minutes. Catledge & Pitkow got 25.5. Three decades of cat memes and shouting at strangers, same dodgy sum, near enough the same answer.
So what's the right number?
I'd say there are three honest takes:
- Behaviourally: 15 to 20 minutes. The valley's real and it's consistent across every segment we measured. If you want a cutoff derived from your own data, that's it, and finding yours takes one query over inter-event gaps. Peter's wished-for solution is really just that, if you've got event-level data with timestamps.
- Practically: leave it alone. You can halve or double this parameter for a 3% swing. That's not worth breaking year-on-year comparability over. The 30-minute rule is wrong in the way a clock five minutes fast is wrong, and everyone's already adjusted.
- For attribution: forget the cutoff, look at the entrances. The visit boundary decides which marketing touchpoints your reporting can see at all. That's the part worth building, and it's why we built Ringside to record every entrance in a visit instead of letting the first one win.
So it's a 1995 estimate, built on maths that doesn't replicate, measuring behaviour that no longer exists, and it still lands within ten minutes of the right answer. Pretty neat for a placeholder!
We ran this because we wanted to know, and we'd have published it whichever way it came out. Sometimes the boring answer's the right one.

