OpenCookies

Cookie dictionary

_gid — Google Analytics (Universal Analytics)

By the OpenCookies team · published 2026-10-22 · updated 2026-10-22

Service
Google Analytics (Universal Analytics)
Category
Analytics
Default duration
24 hours
Type
First-party cookie (set by your own site)
Consent required?
Yes, in principle: only audience measurement meeting strict conditions can be exempt from consent in the EU.

What is it for?

Tells visitors apart over a day. It is mostly seen on sites that still use Universal Analytics or a legacy setup.

What does it look like?

The value looks like GA1.2.1234567890.1700000000, with a random ID and a date.

How to see it in your browser

Open your site, press F12, then choose the “Application” tab (Chrome, Edge) or “Storage” (Firefox). Under “Cookies”, select your site’s address: the _gid cookie appears in the list if present, with its value and expiry date.

What does the rule say?

Audience measurement in principle requires the visitor’s prior consent. The French CNIL accepts an exemption for some tools configured very strictly (statistical purpose only, no cross-referencing with other data and no cross-site tracking); detailed conditions are on its website.

How to prevent it before the choice

Do not load Google Analytics before consent.

How OpenCookies handles it

Common services like this one are in OpenCookies’ tracker list: the banner neutralizes their script before the visitor chooses and only restarts it after “Accept”. The test shows whether this cookie appears before the choice, after “Refuse” and after “Accept”.

Step-by-step guide : Google Analytics 4 and cookies: what to do before consent

Check it on my site

Does this cookie appear on your site before the visitor chooses? The OpenCookies test shows it in two minutes.

Test my site

Related cookies

Frequently asked questions

Does Google Analytics 4 set _gid?

Not in its standard setup: GA4 uses _ga and _ga_ID. If you see _gid, your site probably still uses Universal Analytics or a legacy tag.

Can it be kept without consent?

No, it is an analytics cookie that in principle requires the visitor’s agreement.

Durations are defaults and may change with configuration. This page describes a cookie; it is not legal advice.

← All cookies