What is the g_state cookie?
Set by Google's Identity Services library (used for "Sign in with Google" and One Tap) to remember state such as whether the One Tap prompt has already been shown or dismissed.
Our November 2026 scan found it on 97 sites (4% of the 2,421 we scanned), set before any consent.
- Purpose
- Functional
- Belongs to
- Set as
- First-party (under the site's own domain)
- Typical lifetime
- 6 months
Sites that set g_state before consent
The highest-ranked 30 of 97 sites.
- wordpress.com0 tracking companies
- dropbox.com2 tracking companies
- cnn.com4 tracking companies
- weather.com9 tracking companies
- canva.com1 tracking company
- alibaba.com0 tracking companies
- grammarly.com2 tracking companies
- tradingview.com2 tracking companies
- issuu.com0 tracking companies
- claude.ai0 tracking companies
Show 20 more sites
- chatgpt.site0 tracking companies
- duolingo.com1 tracking company
- capcut.com2 tracking companies
- binance.com0 tracking companies
- livejournal.com11 tracking companies
- mailchimp.com4 tracking companies
- zillow.com4 tracking companies
- fiverr.com7 tracking companies
- pexels.com0 tracking companies
- mercadolivre.com.br1 tracking company
- magnific.com2 tracking companies
- nypost.com7 tracking companies
- mercadolibre.com.mx1 tracking company
- lanacion.com.ar13 tracking companies
- clarin.com12 tracking companies
- ultimate-guitar.com0 tracking companies
- vnexpress.net20 tracking companies
- coursera.org1 tracking company
- wayground.com4 tracking companies
- gazzetta.it7 tracking companies
Related cookies
Other cookies from Google.
- _gcl_au333 sites
- FCCDCF138 sites
- receive-cookie-deprecation123 sites
- __Secure-YNID111 sites
- IDE84 sites
How to stop it
Declining non-essential cookies in a site's consent banner should stop g_state being set on later visits. Blocking third-party cookies in your browser settings stops the third-party kind everywhere, and clearing cookies for a site removes any it already set.
Description written by CookieTosser, for a cookie the Open Cookie Database doesn't cover.
Understanding this page
- How cookie lifetimes work, and why a 13-month _ga matters
What a cookie's "expires" field actually controls, why Google Analytics ships a 2-year default that many sites cut down to 13 months, and how Safari's 7-day cap on script-set cookies changes the picture.
- First-party vs third-party cookies (and why "first-party" still tracks you)
What the distinction actually means technically, why browsers only block one of the two, and how CNAME cloaking, server-side tagging and cookies like _ga let sites keep tracking under their own domain.
- How to block or limit trackers
Browser privacy settings, content blockers, Global Privacy Control and clearing cookies compared honestly — what each one actually stops, what it doesn't, and what it costs you in return.