How to see where players quit your Godot game
The Glitchless team · November 23, 2026 · Godot 4 games, desktop and mobile exports
Players rarely tell you why they stopped. Most just close the game, and on a phone they often don't even close it: they switch apps and the phone stops the game later. To find out where they leave, mark the steps a new player should go through, log how each level ends, and make sure the last event goes out before the game is gone. Then count.
A funnel tells you where players stop, not why. So the last part of this guide puts what happened in those sessions next to the step:
- Did the game stutter there?
- Did an error break something?
- Did players fail the same level over and over?
The autoload this guide asks your coding agent for was tested on Godot 4.7.2.
The short answer
- Steps: list five to eight things every new player should do in the first minutes (launched, finished the tutorial, started level 1, won it) and send an event as each happens.
- Levels: log how each one ended: completed, failed (they lost it) or abandoned (they left it for the menu or restarted). Leaving a level isn't losing it.
- The last event: on desktop, turn off auto-quit, send a
leftevent onNOTIFICATION_WM_CLOSE_REQUESTand wait for the answer before quitting. On phones there's no close request, and the OS can stop a game in the background without telling it, so save the event onNOTIFICATION_APPLICATION_PAUSEDand send it later. - Count it: sessions that reached each step, and where each session's last event was. The biggest drop is where to look first.
- Why: check the same sessions' frame times, errors and fails at that step. A stutter or an error right before players leave is the lead.
Write down the steps of a first session
Before any code, write the first five minutes as things that happen in the game, in order. For a platformer that might be:
- Launched
- Finished the tutorial
- Started level 1
- Completed level 1
- Started level 2
Keep each step something every new player should reach. Menus and settings aren't steps, unless every player has to get through one.
Send each step, each level's end, and the last event
One autoload does it, and your coding agent can add it. step() marks a step, level_start() and level_end() mark levels, and every event carries a random session ID, the last step reached, the level and the build. It adds no names or device IDs: a session is all you need to count a funnel.
The hard part is the last event. Godot cancels a request that's still open when the game closes, so the autoload turns off auto-quit, sends left and waits for the answer (up to 1.5 seconds) before quitting. It does that at the end of the frame, because Godot sends the close request while it walks the scene tree, when no node can be added. On a phone, the game may be stopped at any moment once it's in the background, with no notice, so the event is saved to a file instead and sent when the game comes back or on its next launch.
Ask your coding agent
Add an autoload named Funnel (funnel.gd) to my Godot game that marks the steps of a session and what the player was doing when they left:
- At launch, make a random session ID, turn off auto-quit with get_tree().set_auto_accept_quit(false), send any events an earlier run saved (below), and mark the step "launched".
- step(name) marks a step every new player should reach, in order ("launched", "tutorial_done" and so on), and sends a step event. level_start(level) sets the current level and sends level_start. level_end(how), with how "complete", "fail" (they lost it) or "abandon" (they left it for the menu or restarted), sends level_complete, level_fail or level_abandon, then clears the level.
- Stamp every event with session, step (the last step reached), level, seconds (since launch, to 0.1) and version (application/config/version). Add no names or device IDs.
- POST each event as JSON with its own HTTPRequest node (a 5-second timeout), freed once it's answered, to an address I control: ask me for it. Keep count of the requests still open.
- Desktop: on NOTIFICATION_WM_CLOSE_REQUEST (the window's close button), and from a quit() function for my own Quit button, send a left event with how set to "closed" or "quit_button", wait until every open request is answered or 1.5 seconds pass, then call get_tree().quit(). Godot sends the close request while it walks the scene tree, when no node can be added, so handle it with call_deferred, at the end of the frame.
- Phones: from NOTIFICATION_APPLICATION_PAUSED on, the OS may stop the game with no notice, so save a left event with how "background" as a line in user://funnel_saved.jsonl instead of sending it, stamped when it's saved, so it keeps this session's ID. On NOTIFICATION_APPLICATION_RESUMED (deferred), and at the next launch, send the saved lines and delete the file.
Then call it from my game: Funnel.step() as players reach each step of a first session (ask me for my steps), Funnel.level_start() and Funnel.level_end() around each level, and Funnel.quit() from my Quit button instead of get_tree().quit().
Your game then calls Funnel.step("tutorial_done"), Funnel.level_start("level_2") and Funnel.level_end("fail"), and Funnel.quit() from its own Quit button. The autoload was tested on Godot 4.7.2 against a local server, next to the crash guide's two autoloads: with the window's close button, the left event arrived before the game quit; with the game sent to the background and then killed, it arrived at the next launch, under the old session.
With the crash guide's CrashWatch in the same game, keep calling Funnel.quit() from your Quit button: CrashWatch removes its marker on any normal quit, so none of these is reported as a crash.
Count the funnel
Store each event as a line of JSON wherever it lands. Then have your coding agent count how many sessions reached each step, and where each session ended:
Ask your coding agent
Write a Python script, funnel_count.py, that reads the events Funnel sent and my server stored (one JSON object per line, in the file I pass it) and prints: - For each of my game's steps, in order, how many sessions reached it (any event with that step), and what share that is of the step before. - Where each session ended: its last event (the one with the most seconds, or the later one in the file on a tie), at its level, or "outside a level, after" its step when it has none, with the event and, for a left event, how. Count each place and ending, most common first. Then run it on my stored events and show me what it prints.
On the test run it printed two sessions launched, one that finished the tutorial (50%), one that went to the background after the tutorial and never came back, and one that was closed during level 2. A left (background) followed by more events in the same session isn't a quit: the player came back.
Which level loses players
For each level, compare four numbers: starts, completions, fails and abandons. They point at different problems:
- Many fails, then the session ends: too hard. A player who fails and quits within about 20 seconds is a rage quit.
- Many abandons: confusing or boring. They left for the menu or restarted rather than losing.
- Sessions that end in the middle of the level, with no fail: look for a stutter or an error there before blaming the design.
Why players left at that step
The funnel gives you the step. To find the reason, look at the sessions that ended there, side by side with the ones that went on:
- Errors: did an error fire in the last minute of those sessions? A broken door or a script error looks like a quit from outside. The crash and error guide shows how to collect them.
- Frame times: did those sessions stutter at that step? A hitch on a boss's entrance or a slow scene load can end a first session. See Godot stuttering.
- Fails: how many times did they fail before leaving? Three fails in a row is a wall.
- Device and build: is it one phone model, one renderer or one version?
Change one thing, ship it, and count the same step again on the next version.
Tools that count it for you
Checked against each one's docs on 23 November 2026:
- GameAnalytics has an official GDExtension for Godot 4.5 and later, with progression events (start, fail, complete) for its funnels, and a free plan.
- Talo, an open-source (MIT) game backend with a Godot plugin, records events and player stats alongside leaderboards and saves; it's free up to 10,000 players.
- Forge Logger, an MIT bug-report plugin, added anonymous play stats in 0.4.0 (October 2026): sessions, early quits and levels.
- Glitchless counts the level funnel and rage quits and keeps them next to each session's frame times and errors (below).
The funnel and the reason, in one place
The Glitchless addon for Godot (4.5 and later, open source) has the level funnel built in: level_start, level_complete, level_fail and level_abandon. When the game goes to the background or closes with a level still open, it sends the abandon itself before the session ends, and takes it back if the player returns. Each session also carries its frame times with each stutter's cause, its errors with what came before them, and deaths.
So the level that loses players comes with what went wrong there, counted in players. Your coding agent reads it over MCP: glitchless_player_funnel lists levels with starts, completions, fails and quits, and with hotspots shows where players die on one; glitchless_triage ranks the problems behind them.
Ask your coding agent
Use Glitchless to find where new players quit my Godot game. Read the level funnel with glitchless_player_funnel and find the level that loses the most players. For that level, check whether those sessions stuttered (glitchless_performance by level) or hit errors (glitchless_triage) before they left, and where they died. Tell me the likeliest reason, fix it in this project, and after the next build compare it with glitchless_compare_versions.
Frequently asked questions
How do I know a player quit, rather than took a break?
On desktop, the window's close button sends NOTIFICATION_WM_CLOSE_REQUEST, so you know. On phones there's no such notice: the game goes to the background and the OS may stop it later. Treat a session whose last event is going to the background, with nothing after it, as a quit at that point.
Why didn't my last event arrive?
Godot cancels a request that's still open when the game closes. Turn off auto-quit with get_tree().set_auto_accept_quit(false), send the event, wait for request_completed (with a time limit), then call get_tree().quit().
Is leaving a level the same as failing it?
No. A fail is the player losing. An abandon is the player leaving for the menu or restarting. Count them apart, or a confusing level looks like a hard one.
Do I need player accounts for a funnel?
No. A random ID for each session is enough to count how many sessions reach each step. To count how many players come back the next day, you'd also need a random ID kept on the device.
Sources
- Godot docs: Handling quit requests
- Godot docs: Node notifications
- Godot docs: SceneTree
- Godot docs: HTTPRequest
- GameAnalytics: Godot SDK
- Talo: Godot plugin
- Forge Logger (GitHub)
Something wrong or out of date? Email support@glitchless.gg and we'll fix it. Glitchless isn't affiliated with the Godot Foundation, GameAnalytics, Talo or Stoneforge Labs; product names are their owners' trademarks.