Back to all cookies
AnalyticsConsent required

_ga

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

Expiry

2 years

Set by

Google LLC

GDPR & ePrivacy guidance

_ga is a analytics cookie. Under Art. 5(3) ePrivacy Directive and the GDPR, it must not be set before the visitor has given prior, informed, freely-given consent.

If your scanner finds _ga on a page before the visitor interacts with your consent banner, that's a violation — the cookie loaded without a legal basis.

Fix: gate the script that sets this cookie behind your CMP, so it only fires after the relevant consent category is accepted.

Related cookies

Is _ga on your site?

Scan my website free

Open the free website cookie checker →