Back to all cookies

Google Analytics cookies

Google Analytics sets 5 cookies on websites that load its scripts. Below is the full list with purpose, expiry, and whether each one needs GDPR / ePrivacy consent.

Source: Google LLCOfficial cookie reference

Which Google Analytics cookies does your site set before consent?

Scan my website free

Open the free website cookie checker →

_ga_<container-id>AnalyticsExpires: 2 years

GA4 session state cookie. Stores the current session ID and engagement state for the property; one is set per GA4 measurement ID.

_gidAnalyticsExpires: 24 hours

Used by Universal Analytics to distinguish users over a 24-hour window. Largely deprecated since GA4 but still found on legacy sites.

_gaAnalyticsExpires: 2 years

Distinguishes unique users by assigning a randomly generated client ID. Used by both Universal Analytics and GA4 properties.

_gatAnalyticsExpires: 1 minute

Throttles the request rate to Google Analytics on high-traffic sites. Often appears as _gat_gtag_<id>.

_dc_gtm_<container-id>AnalyticsExpires: 1 minute

Used by Google Tag Manager to throttle the request rate to Google Analytics. Set when GTM loads GA on the page.

Catch unconsented Google Analytics cookies

Scan my website free

Open the free website cookie checker →