Skip to content
CookieTosser

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 October 2026 scan found it on 92 sites (4% of the 2,450 we scanned), set before any consent.

Purpose
Functional
Belongs to
Google
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 92 sites.

Show 20 more sites

Related cookies

Other cookies from Google.

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