Analytics vendor · Google LLC

Google Analytics 4 Cookies: List With Purpose and Retention

Last verified 2026-10-16 · Updated 2026-10-17

On this page
  1. Cookies Google Analytics 4 sets
  2. Scripts, pixels, and endpoints
  3. Does Google Analytics 4 need consent?
  4. How to add Google Analytics 4 to a consent banner
  5. Who runs Google Analytics 4
  6. Google Analytics 4 cookie FAQs
  7. Sources

Scripts, Pixels, and Endpoints Google Analytics 4 Loads

Google Analytics 4 loads 6 known scripts, pixels, and data endpoints. Each row gives the host to look for in the Network tab of Chrome DevTools or in a cookie scanner report.

TypeResourceHostWhat it does
ScriptGoogle tag for Google Analytics 4 (gtag.js)www.googletagmanager.comThe Google tag loads Google Analytics 4 on the page and writes the _ga and _ga_<container-id> cookies.
Data endpointGoogle Analytics 4 collection endpointregion1.google-analytics.com
www.google-analytics.com
analytics.google.com
The collection endpoint receives every page view and event, with the client ID from the _ga cookie in the cid parameter.
Data endpointGoogle signals collection endpointstats.g.doubleclick.netGoogle Analytics 4 sends measurements to stats.g.doubleclick.net while Google signals is on, which links visits to signed-in Google accounts.
PixelGoogle Analytics audiences pixelwww.google.com
www.google.fr
www.google.de
The ga-audiences pixel adds the visitor to Google Ads remarketing audiences built in Google Analytics, and the TermsFeed website auditor found the pixel firing after consent on scanned sites.
ScriptUniversal Analytics library (analytics.js)www.google-analytics.comThe analytics.js library ran Universal Analytics and wrote the _ga, _gid, and _gat cookies.
Data endpointUniversal Analytics collection endpointwww.google-analytics.comThe Universal Analytics endpoint received hits from analytics.js until 1 July 2023.

Who Runs Google Analytics 4

Google LLC runs Google Analytics 4 from the United States, and Google Ireland Limited provides the service to businesses in the European Economic Area (EEA) and Switzerland. Google Analytics 4 runs under the Google Ads Data Processing Terms, which you accept in the Google Analytics account settings.

Read how Google LLC handles the data in the Google Analytics 4 privacy policy, and sign the Google Ads Data Processing Terms, which cover Google Analytics before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

Google Analytics 4 Cookie FAQs

Does Google Analytics 4 need consent?

Yes, the Google Analytics 4 cookies need consent in the EU, need consent in the UK unless the statistics exception covers your setup, and need no prior opt-in in California. Firstly, the ePrivacy Directive requires consent before a site sets the analytics cookies of Google Analytics 4. Secondly, the UK PECR requires consent for the analytics cookies of Google Analytics 4 unless the statistics exception covers your setup. Thirdly, the CCPA sets no general opt-in requirement for the analytics cookies of Google Analytics 4, and the table gives the opt-out right of visitors. The consent section of this page gives the table for each law.

How long do Google Analytics 4 cookies last?

Each cookie of Google Analytics 4 in the current setup lasts 2 years (730 days). The retention column of the cookie list gives the lifetime of each cookie.

How do I block Google Analytics 4 cookies?

Block the Google Analytics 4 cookies by holding back the Google tag (gtag.js) until the visitor accepts analytics cookies. Tag the Google tag (gtag.js) with data-cookie-consent="tracking" in TermsFeed Free Cookie Consent, or add Google Analytics 4 as a vendor in TermsFeed Privacy Consent. The page of the _ga cookie gives the full steps and the settings of Google Analytics 4.

Sources for the Google Analytics 4 Cookies

The facts on this page come from the documentation Google publishes, checked on 2026-10-16. The list gives every source, so you check each fact yourself.