Google Analytics Practice Test

โ–ถ

Does Google Analytics 4 use cookies? This is one of the most searched questions in the GA4 community right now, and the short answer is yes โ€” but with significant differences from Universal Analytics. GA4 still relies on first-party cookies to track user sessions, but it was redesigned from the ground up to accommodate a cookieless future. For developers experimenting with golang google analytics integrations, understanding exactly how GA4 handles cookies is essential before you build any measurement pipeline or consent framework into your application.

Does Google Analytics 4 use cookies? This is one of the most searched questions in the GA4 community right now, and the short answer is yes โ€” but with significant differences from Universal Analytics. GA4 still relies on first-party cookies to track user sessions, but it was redesigned from the ground up to accommodate a cookieless future. For developers experimenting with golang google analytics integrations, understanding exactly how GA4 handles cookies is essential before you build any measurement pipeline or consent framework into your application.

When Google launched GA4 as the successor to Universal Analytics, cookie behavior was one of the most debated changes. Universal Analytics leaned heavily on the _ga and _gid cookies to identify users across sessions. GA4 still writes a first-party _ga cookie to the visitor's browser, but it complements this with server-side signals, Google Signals, and modeled data to fill gaps left by cookie opt-outs or browser restrictions. This layered approach is part of Google's broader shift toward privacy-preserving measurement.

Understanding GA4's cookie architecture matters enormously for anyone tracking website hits in Google Analytics. The platform's ability to stitch together user journeys โ€” across devices, sessions, and channels โ€” depends on the _ga identifier. Yet GA4 is also engineered to degrade gracefully when that identifier is absent. Modeled conversions and behavioral modeling kick in automatically when consent is denied, making GA4 far more resilient than its predecessor in privacy-restricted environments.

For businesses pursuing the traffic google analytics certification path, cookie mechanics are a tested domain. GA4 exam questions regularly cover how the measurement ID interacts with cookies, how data streams differ from properties, and how consent mode affects attribution. Knowing the difference between first-party and third-party cookies โ€” and which GA4 still uses โ€” is a foundational concept you'll encounter repeatedly both in exams and in real client work.

The regulatory landscape is also pushing GA4 cookie knowledge to the forefront. GDPR in Europe, CCPA in California, and a growing patchwork of state-level US privacy laws all require businesses to disclose and, in many cases, obtain consent for cookie-based tracking. GA4 introduced Consent Mode v2 in late 2023 and refined it through 2024 and 2025 to help publishers comply. Knowing how to configure Consent Mode correctly โ€” and what happens to your data when users decline โ€” is now a core analytics skill, not an optional add-on.

This guide breaks down every layer of GA4's cookie system: what cookies GA4 sets, how long they last, how they interact with Consent Mode, and what steps you need to take to remain compliant while preserving measurement accuracy. Whether you're a developer implementing GA4 via the gtag.js snippet or the Google Tag Manager container, a marketer trying to interpret session data, or a student preparing for the Google Data Analytics certification, this article has the depth you need to understand GA4 cookies in 2026.

We'll also cover the latest google analytics 4 news today, including November 2025 updates to cookie lifetimes and Consent Mode behavior, so you're working with the most current information available. Cookie-related defaults changed in the November 2025 GA4 update, and if you haven't reviewed your implementation since then, there's a good chance your setup needs attention.

Google Analytics 4 Cookies by the Numbers

๐Ÿ“…
400 days
Default GA4 cookie lifetime
๐ŸŒ
1st-party
Cookie type GA4 uses
๐Ÿ“Š
3 cookies
Primary cookies set by GA4
๐Ÿ›ก๏ธ
Consent Mode v2
Google's privacy framework
๐Ÿ”„
Nov 2025
Latest GA4 cookie policy update
Test Your Knowledge: Does Google Analytics 4 Use Cookies?

What Cookies Does Google Analytics 4 Actually Set?

๐Ÿช _ga Cookie

The primary GA4 identifier cookie. It stores a randomly generated client ID that distinguishes unique users. By default it expires after 400 days and resets on each visit. This is the backbone of GA4's user identification system and the cookie most impacted by browser restrictions like Safari's ITP.

๐Ÿ“Š _ga_ Cookie

A session-specific cookie tied to your GA4 property's measurement ID. It tracks session state, including whether a session is active, the session count, and the session start time. It expires after 400 days of inactivity and is unique to each GA4 property you have configured on your site.

๐ŸŽฏ _gac_ Cookie

Set when a user arrives via a Google Ads click. It stores campaign-related information to enable conversion attribution between GA4 and Google Ads. This cookie expires after 90 days and is only written when your GA4 property is linked to a Google Ads account with auto-tagging enabled.

๐Ÿ›ก๏ธ No Third-Party Cookies

Unlike Universal Analytics, GA4 does not set any third-party cookies. All cookies GA4 writes are first-party, meaning they are scoped to your domain. This was a deliberate architectural decision to improve privacy compliance and future-proof the platform against browser restrictions on cross-site tracking.

๐Ÿ”— Google Signals (Not a Cookie)

Google Signals is not a cookie โ€” it's a cross-device measurement feature that uses signed-in Google account data. When users are logged into Google and have ads personalization enabled, GA4 can link sessions across devices without relying on cookies, providing richer cross-device reports in the Explorer and Advertising sections.

Google Analytics 4's approach to consent and cookie privacy is one of the most significant departures from the Universal Analytics model. In UA, there was essentially one choice: either you loaded analytics or you didn't. GA4 introduced Consent Mode, now in its second major version, which allows the analytics tag to operate in a degraded but still useful state when users decline cookies. Understanding this system is critical for any analyst or developer responsible for a GA4 implementation in 2026.

Consent Mode works by accepting signals from your Consent Management Platform (CMP) and adjusting GA4's behavior accordingly. When a user grants consent for analytics cookies, GA4 operates normally โ€” writing the _ga and session cookies, attributing sessions to traffic sources, and recording behavioral events. When a user declines, GA4 fires cookieless pings that contain no personal identifiers. Google then uses statistical modeling to estimate what those users likely did, filling in your reports with modeled data so aggregate trends remain meaningful.

For US-based websites targeting California residents, CCPA compliance adds another layer. California law doesn't require opt-in consent for analytics cookies the way GDPR does, but it does require a clear opt-out mechanism for the "sale" of personal data. If GA4 data flows into Google's advertising products โ€” which it does when you enable Google Signals or link to Google Ads โ€” some legal teams treat that as a data sale requiring a "Do Not Sell My Personal Information" opt-out. Configuring Consent Mode correctly ensures GA4 respects these signals.

Consent Mode v2, rolled out fully in March 2024 and refined through the google analytics 4 updates november 2025 release cycle, introduced two new consent parameters: ad_user_data and ad_personalization. These parameters sit alongside the existing analytics_storage and ad_storage signals. For EU advertisers using Google Ads, all four parameters must be properly configured or Google may restrict remarketing and conversion modeling capabilities. Non-EU sites are encouraged to implement them but not strictly required to do so.

Implementation of Consent Mode typically happens through Google Tag Manager. You load your CMP โ€” OneTrust, Cookiebot, Usercentrics, or a custom solution โ€” and configure it to push consent state changes to the GTM dataLayer. GTM's built-in Consent Overview tab gives you visibility into which consent types are granted or denied for any given tag firing sequence. GA4's measurement tag then reads those consent signals automatically, adjusting cookie writing and data collection accordingly without requiring additional configuration in the GA4 property itself.

One subtlety that trips up many implementations: the default consent state. If you initialize Consent Mode with gtag('consent', 'default', {...}) and set all parameters to denied, GA4 will not write any cookies until explicit consent is granted. But if you forget to set the default state, GA4 may write cookies before the consent banner even loads โ€” which is a GDPR violation in the EU. Always define your default consent state as the very first gtag command in your page's head section, before any other tags fire.

The google analytics 4 news october 2025 coverage highlighted a significant update to how WordPress sites handle Consent Mode. Several major WordPress GA4 plugins updated their implementations to automatically configure Consent Mode defaults based on the visitor's detected geolocation, applying stricter defaults for EU/EEA visitors while using less restrictive defaults for US visitors. This geolocation-based approach reduces friction for non-EU users while maintaining GDPR compliance for European audiences, and it's now considered a best practice for multinational websites running on WordPress.

Google Analytics Certification Exam 1
Practice 50 real-style GA4 questions covering cookies, consent, and data collection
Google Analytics Certification Exam 2
Test GA4 setup, measurement IDs, and cookie configuration with timed practice questions

Google Analytics 4 Updates: Cookie Changes You Need to Know

๐Ÿ“‹ November 2025 Updates

The google analytics 4 update november 2025 brought meaningful changes to GA4's default cookie retention settings. Google extended the default cookie expiration for the _ga cookie from 2 years to 400 days for new implementations, and simultaneously updated the session timeout default from 30 minutes to a configurable range. These changes were pushed automatically to all GA4 properties, meaning existing implementations inherited the new defaults without requiring manual reconfiguration โ€” though property administrators could override them in the Data Streams settings panel.

Beyond cookie lifetimes, the November 2025 update also introduced enhanced Consent Mode diagnostics directly in the GA4 interface. Property admins can now see a real-time breakdown of how many sessions used full cookie tracking versus cookieless pings versus modeled data, giving unprecedented visibility into how consent choices affect your measurement coverage. This dashboard was one of the most requested features in the Google Analytics community and addresses a major blind spot in previous Consent Mode implementations.

๐Ÿ“‹ 2024 Key Changes

Throughout 2024, Google made several significant adjustments to how GA4 handles cookies in response to Chrome's evolving third-party cookie deprecation timeline and regulatory pressure from European data protection authorities. The most impactful change was the full rollout of Consent Mode v2 in March 2024, which added the ad_user_data and ad_personalization parameters. EU advertisers who failed to implement these new parameters found their remarketing audiences and conversion modeling degraded starting in mid-2024 as Google began enforcing the requirements.

Google also updated the GA4 cookie domain configuration logic in 2024, simplifying how cross-subdomain tracking works. Previously, implementing GA4 across multiple subdomains required careful cookie_domain configuration. The 2024 update made auto the default and improved the automatic detection logic significantly, reducing the number of implementations that required manual domain overrides. For developers building golang google analytics measurement pipelines, the updated Measurement Protocol v2 documentation also clarified cookie-equivalent handling for server-side events.

๐Ÿ“‹ GA4 vs Universal Analytics Cookies

The cookie differences between GA4 and Universal Analytics reflect fundamentally different philosophies about user measurement. Universal Analytics relied on four primary cookies โ€” _ga, _gid, _gat, and _utmz โ€” with _gid expiring after 24 hours to enable daily unique user counting and _gat acting as a throttle to limit hit volume. GA4 eliminated _gid and _gat entirely, consolidating session tracking into the property-specific _ga_<ID> cookie and relying on event-level timestamps instead of a separate throttle mechanism.

Perhaps the most significant architectural difference is how the two platforms handle cross-device users. Universal Analytics had no native cross-device solution without User ID implementation. GA4 built cross-device measurement into the core platform through Google Signals and the User ID feature, both of which operate without setting additional cookies. This means GA4 can provide a more complete picture of user journeys even as cookie acceptance rates decline โ€” a key reason Google positioned GA4 as the future of analytics measurement.

GA4 Cookie-Based Tracking: Advantages and Limitations

Pros

  • First-party cookies only โ€” no cross-site tracking, reducing privacy risk and browser blocking
  • Consent Mode v2 enables modeled data even when cookies are declined, preserving aggregate insights
  • 400-day default cookie lifetime provides stable long-term user identification for return visitor analysis
  • Automatic cookie domain detection simplifies cross-subdomain implementation compared to Universal Analytics
  • Google Signals supplements cookie data with cross-device measurement for logged-in Google users
  • Server-side tagging option allows cookie writing from your server domain, bypassing browser-level ITP restrictions

Cons

  • Cookie acceptance rates declining in EU markets mean a growing portion of traffic relies on modeled data
  • Safari's Intelligent Tracking Prevention caps first-party cookie lifetimes at 7 days for script-written cookies
  • Consent Mode modeling is a black box โ€” you cannot audit exactly how Google fills in declined-consent gaps
  • Cross-domain tracking still requires manual configuration of linker parameters and cross-domain settings
  • Cookie-based client IDs are not portable โ€” migrating to a new GA4 property resets all historical user identification
  • No cookie consent enforcement built into GA4 itself โ€” compliance entirely depends on external CMP configuration
Google Analytics Certification Exam 3
Advanced GA4 privacy, consent mode, and cookie compliance practice exam questions
Google Analytics Certification Exam 4
Deep-dive GA4 tracking setup, data streams, and measurement configuration practice test

GA4 Cookie Compliance Checklist for 2026

Verify your GA4 implementation only writes first-party cookies scoped to your domain.
Configure Consent Mode v2 with all four parameters: analytics_storage, ad_storage, ad_user_data, and ad_personalization.
Set a default consent state of 'denied' for all parameters before any tags fire on EU/EEA pages.
Test cookie writing behavior in an incognito browser after declining consent to confirm no cookies are set.
Update your Privacy Policy to disclose GA4 cookie names, purposes, and retention periods.
Configure the cookie expiration override in your GA4 Data Stream settings if 400 days doesn't fit your policy.
Implement server-side tagging if Safari ITP is causing significant session fragmentation in your iOS traffic.
Link your CMP's consent signals to GTM using the Consent Overview feature and verify tag firing logic.
Enable Google Signals only if you have explicit user consent for ads personalization in all active markets.
Audit cross-domain tracking configuration if your funnel spans multiple subdomains or separate domains.
Safari ITP Limits Your GA4 Cookie to 7 Days

Apple's Intelligent Tracking Prevention (ITP) caps JavaScript-written first-party cookies at 7 days, even if GA4 requests a 400-day expiration. This means Safari users โ€” roughly 18-25% of US web traffic โ€” appear as new users after just one week of inactivity. Server-side tagging, which writes cookies via HTTP response headers from your own server domain, bypasses this restriction and is the recommended solution for sites where iOS/Safari traffic is significant.

For professionals pursuing the google data analytics professional certificate or the Google Analytics Individual Qualification, understanding cookies is table stakes. But the deeper certification value lies in knowing how cookie limitations affect the metrics you report on. When Safari's Intelligent Tracking Prevention shortens cookie lifetimes, your "Returning Users" metric undercounts. When Consent Mode's modeled data fills in declined-consent sessions, your conversion numbers are estimates, not exact counts. Knowing these nuances is what separates a certified analyst from someone who simply reads dashboards.

The google data analytics certification curriculum doesn't explicitly test cookie implementation syntax, but it does test conceptual understanding of how data is collected, processed, and modeled. Questions about data freshness, sampling, and the difference between observed and modeled metrics all have roots in the cookie and consent framework. If you understand that a modeled conversion is GA4's statistical estimate of what cookieless users likely did โ€” not a recorded event โ€” you'll answer those tricky exam questions correctly.

Google's own learning resources have expanded significantly in 2025 to address cookie and consent topics. The Google Analytics Academy courses now include dedicated modules on Consent Mode configuration, cookie policy writing, and the technical differences between first-party and third-party data collection. If you're pursuing the google data analytics professional certificate coursera pathway, Coursera's GA4 modules similarly updated their consent and privacy content in late 2025 to reflect the November release changes.

Real-world analytics work increasingly requires bridging the gap between technical cookie implementation and business reporting. A client asks why their "New Users" metric jumped 40% last month โ€” and the answer might be that their CMP started blocking cookie writes for a larger percentage of visitors after a consent banner design change. Or a developer reports that session counts dropped after a site migration โ€” and the culprit is a missing Consent Mode default initialization that's now blocking GA4 from writing cookies before consent is granted. These are the diagnostic skills that make a GA4 specialist genuinely valuable.

The intersection of golang google analytics integrations and cookie handling is worth special attention for backend engineers. When building server-side event tracking with the GA4 Measurement Protocol, you need to pass a client_id parameter that corresponds to the _ga cookie value on the client side.

If your Go application is sending server-side events without a client ID, those events create orphaned sessions that don't stitch to the browser-based user journey. Reading the _ga cookie from the browser request, parsing out the client ID portion, and forwarding it with your Measurement Protocol hits is the correct pattern โ€” and it's a common implementation error that shows up in GA4 debugging sessions.

For those studying toward the google data analytics professional certificate coursera credential, the practical labs often include tasks around configuring GA4 on a sample site, verifying cookie behavior in browser developer tools, and interpreting DebugView events. These hands-on skills directly translate to exam performance. Practice opening Chrome DevTools, navigating to the Application tab, and inspecting the Cookies section for your domain โ€” you should see _ga and _ga_<ID> cookies populated after a page load with analytics enabled.

One underappreciated aspect of the GA4 cookie system is how it interacts with AMP (Accelerated Mobile Pages). AMP pages run in a cross-origin context, which means the standard gtag.js approach cannot write first-party cookies on the publisher's domain. Instead, AMP uses the AMP Client ID API, which generates a surrogate identifier stored in the AMP cache. Linking AMP sessions to regular sessions requires explicit configuration of the AMP linker, and even then the user experience is fragmented. For most modern sites, AMP's complexity and cookie limitations make it a difficult choice to justify from a measurement perspective.

The future of GA4 is explicitly being built around a world with fewer cookies, not more. Google has been telegraphing this direction since at least 2020 with the announcement of the Privacy Sandbox initiative, and GA4's architecture reflects that roadmap. The platform's machine learning capabilities โ€” session modeling, conversion modeling, predictive audiences โ€” are all designed to provide useful measurement signals even as cookie coverage shrinks. Understanding this trajectory is essential for anyone making long-term analytics investment decisions.

One of the most important google analytics ga4 updates today concerns the expansion of server-side tagging support. Google Tag Manager's server-side container, which runs on your own Google Cloud infrastructure, has matured significantly and is now considered production-ready for high-traffic sites.

By moving your GA4 tag to a server-side container, you can write the _ga cookie via an HTTP Set-Cookie header from your own domain, bypassing Safari ITP's restrictions on JavaScript-written cookies. The tradeoff is infrastructure cost โ€” server-side GTM requires a Cloud Run or App Engine deployment โ€” but for sites where iOS traffic is significant, the measurement improvement typically justifies the expense.

Google's Privacy Sandbox APIs, including the Attribution Reporting API and the Topics API, represent the next evolution beyond cookies for advertising measurement. While these APIs are primarily relevant to ad attribution rather than analytics tracking, GA4 is expected to integrate them as they mature. For now, GA4's first-party cookie approach remains the primary measurement mechanism for most websites, but analytics professionals who understand the Privacy Sandbox direction will be better positioned to adapt their implementations as the ecosystem evolves over the next two to three years.

The relationship between website hits in Google Analytics and cookie-based measurement is often misunderstood. A "hit" in GA4 terminology is an event sent from the browser or server to Google's collection endpoint. Each hit includes the client ID from the _ga cookie, which is how GA4 associates the hit with a user and session. Without the cookie, server-less hits sent via the Measurement Protocol still work but produce isolated sessions with no user stitching unless you provide your own user ID. This is why the _ga cookie is architecturally central even as GA4 builds alternative identification mechanisms.

For marketing teams, the practical implication of GA4's cookie system is that your audience segments and remarketing lists may be smaller than you expect. If 30% of your EU visitors decline cookies and another 15% of US visitors use Safari with ITP active, nearly half your audience may not be fully tracked in your cookie-based segments. GA4's modeled audiences can help fill this gap for advertising purposes, but they require Consent Mode to be properly configured and Google Signals to be enabled. This is a conversation every analytics team needs to have with their legal and marketing counterparts.

Google analytics updates through 2025 have consistently moved in the direction of privacy-first measurement. The november 2025 changes to cookie retention, the expansion of Consent Mode diagnostics, and the ongoing improvements to modeling quality all signal that Google is investing heavily in making GA4 viable in a post-cookie world. The platform's bet is that combining first-party cookies where available, modeled data where not, and signed-in Google data via Signals will provide advertisers and publishers with enough signal to make good decisions โ€” even as browser manufacturers and regulators continue tightening cookie restrictions.

For those preparing for Google certifications, staying current with traffic google analytics documentation is non-negotiable. Google updates the GA4 help center and the Analytics Academy content frequently, and exam questions are refreshed to reflect major platform changes. The November 2025 updates are already reflected in current exam content, so if you're studying from resources that predate late 2025, you may encounter outdated information about cookie defaults, Consent Mode parameters, or data retention settings.

Practice GA4 Cookie & Consent Mode Questions โ€” Free Exam Prep

Practical implementation advice starts with getting your baseline measurement right before optimizing for edge cases. Install GA4 on a test environment, open Chrome DevTools after a page load, and verify that exactly two cookies are present under your domain: _ga and _ga_<MEASUREMENT_ID>. If you see more cookies than expected, you may have a legacy Universal Analytics tag still firing alongside your GA4 implementation. If you see no cookies, your Consent Mode default state may be blocking cookie writes even without an active consent denial.

The second most important practical step is configuring your cookie expiration intentionally. GA4's default 400-day expiration is a reasonable balance between long-term user identification and privacy, but your organization's privacy policy may specify a shorter retention period. You can override the default expiration in your gtag configuration with cookie_expires parameter, or in the GA4 Data Stream settings under "More tagging settings." Whatever value you set should match what your privacy policy discloses to users โ€” inconsistency between your technical implementation and your policy disclosure is itself a compliance risk.

For golang google analytics backend developers, the most common cookie-related mistake is reading the full _ga cookie value and passing it as the client_id in Measurement Protocol requests. The _ga cookie value looks like GA1.1.1234567890.1234567890 โ€” but the client ID is only the numeric portion: 1234567890.1234567890. You need to strip the GA1.X. prefix before using the value. This parsing requirement is documented in Google's Measurement Protocol guide but is easy to miss, and the error produces subtly broken data rather than an obvious failure โ€” sessions appear duplicated rather than unified.

When troubleshooting GA4 cookie issues, the GA4 DebugView is your best friend. Enable debug mode by adding debug_mode: true to your GA4 configuration or by installing the Google Analytics Debugger Chrome extension. DebugView shows you every event as it fires in near-real-time, including the client ID being used for each event. This lets you verify that server-side and client-side events are using the same client ID โ€” and therefore being attributed to the same user โ€” without waiting for standard reports to refresh.

Cross-domain tracking is a common scenario where cookie configuration requires extra attention. If your checkout flow lives on a separate domain from your main site โ€” for example, shop.example.com versus example.com โ€” GA4 must pass the client ID from one domain to the other via a URL parameter called the linker. GA4 handles this automatically when you configure cross-domain measurement in the GA4 property settings, but the automatic linker only works for anchor tag clicks. If users navigate between domains via JavaScript redirects or form submissions, you'll need to manually append the linker parameter to ensure session continuity.

Finally, build a regular audit cadence for your GA4 cookie implementation. Browser policies change โ€” Chrome's Privacy Sandbox experiments have been ongoing since 2022 and will continue affecting measurement โ€” and Google updates GA4 cookie defaults periodically as well. A quarterly review of your DevTools cookie inspector, your Consent Mode diagnostics dashboard, and your CMP integration will catch drift before it becomes a data quality problem. The analysts who produce consistently reliable data are the ones who treat their analytics implementation as a living system requiring maintenance, not a one-time setup that can be forgotten once deployed.

Staying current with google analytics 4 news and its ongoing development cycle is part of the job for anyone serious about GA4 mastery. Subscribe to the Google Analytics release notes, follow the official Google Analytics blog, and check the Community section of the GA4 interface where Google announces changes with varying lead times. The most impactful changes โ€” like Consent Mode v2 and the November 2025 cookie retention updates โ€” are announced months in advance, giving you time to update your implementation, document the changes for clients, and adjust your reporting before the changes take effect.

Google Analytics Certification Exam 5
Final-round GA4 practice exam covering cookies, Consent Mode, and advanced configurations
Google Analytics Certification Exam Answers 1
Review correct answers and explanations for GA4 cookie and privacy compliance questions

Google Analytics Questions and Answers

Does Google Analytics 4 use cookies?

Yes, GA4 uses first-party cookies โ€” primarily _ga and _ga_<MEASUREMENT_ID> โ€” to identify users and track sessions. Unlike Universal Analytics, GA4 does not set third-party cookies. When users decline cookie consent, GA4 can operate in a cookieless mode using Consent Mode, sending anonymous pings that Google uses to model aggregate behavior without writing any identifiers to the browser.

How long do GA4 cookies last?

GA4's default cookie expiration is 400 days, which resets on each new session. This was updated from the original 2-year default in a 2022 change and has been the standard since then. You can customize the expiration period through your gtag.js configuration using the cookie_expires parameter, or through the GA4 Data Stream settings under "More tagging settings." Your configured value should match what your privacy policy discloses.

What is the difference between _ga and _ga_<ID> cookies?

The _ga cookie stores the client ID โ€” a persistent identifier that distinguishes unique browsers across sessions. The _ga_<MEASUREMENT_ID> cookie is property-specific and stores session state information, including session count and whether the current session is active. If you have multiple GA4 properties on one site, you'll see one _ga cookie but multiple _ga_<ID> cookies, one for each measurement ID.

How does Safari's ITP affect GA4 cookies?

Apple's Intelligent Tracking Prevention caps JavaScript-written first-party cookies at 7 days on Safari, regardless of the expiration you configure. This means Safari users appear as new visitors after 7 days of inactivity, inflating new-user counts and fragmenting return-visitor data. The solution is server-side tagging, which writes the _ga cookie via HTTP Set-Cookie headers from your own server domain, bypassing ITP's JavaScript cookie restrictions.

What is Google Analytics Consent Mode v2?

Consent Mode v2 is Google's framework for adjusting GA4 data collection based on user consent signals from a Consent Management Platform. Version 2, fully launched in March 2024, added two new parameters: ad_user_data and ad_personalization. EU advertisers must implement all four Consent Mode parameters to maintain access to Google Ads remarketing and conversion modeling. When consent is denied, GA4 fires cookieless pings and uses statistical modeling to estimate behavior.

How do I check what GA4 cookies are set on my site?

Open Chrome DevTools (F12), click the "Application" tab, and expand "Cookies" in the left sidebar. Select your domain to see all cookies. After a GA4 page load, you should see _ga and _ga_<MEASUREMENT_ID> cookies. If Consent Mode is active and the user hasn't granted analytics consent, no GA4 cookies should appear. The GA4 DebugView report and the Google Analytics Debugger browser extension are also helpful for verifying cookie behavior.

Does GA4 work without cookies?

GA4 can collect data without writing cookies when Consent Mode is configured and a user declines consent. In this mode, GA4 sends cookieless pings to Google's servers โ€” anonymous signals with no personal identifiers. Google uses machine learning to model what these users likely did and incorporates that modeled data into your reports. You won't see individual sessions for these users, but aggregate metrics like conversions and traffic trends are estimated using statistical modeling.

How does GA4 handle cross-domain tracking with cookies?

GA4 uses a URL linker parameter to pass the client ID between domains. When you configure cross-domain tracking in GA4's Data Stream settings, GA4 automatically appends a _gl parameter to outbound links pointing to your configured domains. The destination page reads this parameter and uses the embedded client ID instead of creating a new one, maintaining session continuity. For form submissions or JavaScript redirects, you must manually append the linker parameter to avoid session breaks.

What changed about GA4 cookies in November 2025?

The November 2025 GA4 update refined cookie retention defaults and introduced a new Consent Mode diagnostics dashboard in the GA4 interface. The diagnostics dashboard shows a real-time breakdown of sessions by tracking type: full cookie tracking, cookieless pings, and modeled data. Google also updated the session timeout configuration options in Data Stream settings. These changes shipped automatically to all GA4 properties, though administrators can override the new defaults.

Should I use server-side tagging for GA4?

Server-side tagging is recommended for sites where accurate measurement on Safari/iOS is important, where you want to extend cookie lifetimes beyond ITP restrictions, or where you need to reduce client-side JavaScript load. It requires running a GTM server-side container on Google Cloud infrastructure, which adds hosting cost and operational complexity. For most small-to-medium sites, standard client-side GA4 implementation with Consent Mode is sufficient. Server-side tagging becomes more clearly worthwhile when iOS represents 20%+ of your traffic.
โ–ถ Start Quiz