This article is about cookies usage for Google Analytics 4 properties. To learn about cookies for Universal Analytics, see this article instead.
The GA4 JavaScript tags use first-party cookies to distinguish unique users as well as unique sessions from a single user. These libraries do not require you to set cookies to transmit data to Google Analytics.
Browsers enforce limitations on the lifespan of first-party cookies if a user does not make a return visit (maximum of 400 days for Chrome and 7 days for Safari).
GA4 cookiesThe following table describes each cookie set by GA4 JavaScript tags. To learn more about the data that Analytics collects, see Safeguarding your data.
Cookie name Default expiration time Description _ga 2 years Used to distinguish users. _ga_<container-id> 2 years Used to persist session state.When linked to a Google Ads account, GA4 JavaScript tags set additional cookies used to provide Google Ads with a more reliable way to measure interactions customers have with your business. For more details on these cookies, see Our advertising and measurement cookies.
Change default cookie settingsTo override default cookie expiration and cookie update settings:
: The previous link opens to the last Analytics property you accessed. You can
change the propertyusing the property selector. You must be an
Editor or aboveat the property level to change default cookie settings.
If you need to customize additional cookie settings, see Cookies and user identification.
Cookie settings configured using the global site tag or Google Tag Manager override settings configured in the Analytics interface.
Was this helpful?How can we improve it?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3