Incognito Window Detect
Incognito mode (also called a private window) is a great privacy feature, but it also disables the cookies and storage that many sites rely on for a good experience: remembered preferences, personalised suggestions, saved carts, and so on. Incognito Window Detect lets you tell those visitors what is
Incognito mode (also called a private window) is a great privacy feature, but it also disables the cookies and storage that many sites rely on for a good experience: remembered preferences, personalised suggestions, saved carts, and so on.
Incognito Window Detect lets you tell those visitors what is going on. When a private window is detected, it shows a message you write, either as a discreet bar at the bottom of the page or as a full-screen overlay.
Features
- Bottom bar or full-screen overlay
- Your own message, with basic HTML (bold, links, line breaks)
- Custom background and text colours and font size
- Optional dismiss button, remembered for the browsing session
- Optional delay before the notice appears
- Show it on the whole site or only on the pages you pick
- Accessible markup (live region for the bar, dialog semantics for the overlay, keyboard dismiss)
- No jQuery on the front end, no external requests, nothing tracked
How detection works
Detection runs entirely in the visitor’s browser using the open-source detectIncognito.js library (MIT licence), which is bundled with the plugin. The bundled file is the ES5 build of release v1.9.0 ; the unminified source is available at dist/detectIncognito.js in that release. It uses storage-behaviour heuristics that differ between normal and private windows in Chrome, Edge, Brave, Opera, Firefox and Safari. Nothing is sent anywhere and no data is stored about the visitor.
Like every private-mode detector, it is a best-effort check. Browsers change how private windows behave, so an occasional false positive or miss is possible. When the browser cannot be identified, nothing is shown.
Browser support
Verified by the plugin author on 29 October 2026 with the bundled detection library (private window detected, regular window not flagged):
- Google Chrome 156 (macOS)
- Mozilla Firefox 152 (macOS)