Analytics

Google Analytics

Analytics

Google Analytics is Google's free web analytics platform, used on over 50% of websites worldwide. It tracks visitor behaviour, traffic sources, conversions, and audience demographics via a JavaScript tag. Data is processed on Google's servers in the United States and requires prior user consent under the GDPR and the ePrivacy Directive.

Overview

What does Google Analytics do?

What is Google Analytics?

Google Analytics is a free web analytics service developed by Google. It allows website owners, marketers, and developers to track visitor behaviour, measure traffic sources, monitor conversion funnels, and generate detailed audience reports. First launched in 2005, it is now the world's most widely deployed analytics tool, present on more than 50% of all websites globally.

How does it work?

Google Analytics collects data via a JavaScript snippet (gtag.js) embedded in the website HTML. When a visitor loads a page, the snippet fires and sends event data, page URL, referrer, browser, device type, language, and approximate geolocation, to Google's servers. It also sets cookies in the visitor's browser to assign a unique Client ID, distinguish individual users, and persist session state across multiple page views and visits.

Privacy & GDPR compliance

Google Analytics processes personal data (IP addresses, unique device identifiers, and behavioural data) and transfers it to Google LLC servers in the United States. Under the GDPR and the ePrivacy Directive, this requires freely given, specific, informed, and unambiguous prior consent before the tracking tag may fire. The transfer to the US is covered by Standard Contractual Clauses (SCCs) under Article 46(2)(c) GDPR. Organisations are advised to conduct a Transfer Impact Assessment (TIA) to verify the adequacy of those safeguards in light of US surveillance law (FISA 702, EO 12333).

GA4 & Consent Mode v2

Google Analytics 4 (GA4) is the current version of the platform. It uses an event-based data model and integrates with Google Consent Mode v2. When consent is denied, GA4 can operate in a cookieless mode, sending anonymised pings without setting persistent cookies or collecting personal identifiers. Google then uses statistical modelling to fill data gaps. Even in cookieless mode, network requests are still sent to Google infrastructure, so organisations must assess whether this residual data transmission requires its own legal basis under applicable regulations.

Compliance

Google Analytics and the GDPR

Google Analytics is classified as “Analytics”. On a site that targets European visitors, it must only load after the visitor consents, and it must be listed in your cookie policy.

Legal basis
Consent (Art. 6(1)(a) GDPR)
Risk level
high
Applicable regulations
GDPR, ePrivacy Directive (Cookie Law), CCPA, LGPD

Impact assessment (DPIA)

Google Analytics collects IP addresses (even when truncated), assigns persistent Client IDs via the _ga cookie (2-year lifetime), and tracks cross-session behaviour. All data is transferred to Google LLC in the United States. Key DPIA considerations: (1) cross-border data transfer risk, SCCs and US adequacy must be assessed via a Transfer Impact Assessment; (2) Google acts as data processor under the DPA but may also process data as an independent controller for its own purposes (ads, product improvement); (3) potential browser fingerprinting via User-Agent, screen resolution, and language headers; (4) persistent identifiers enabling long-term user profiling across multiple visits; (5) IP address processing even with IP anonymisation enabled (partial truncation only). A DPIA is recommended for any large-scale or sensitive-context deployment, and may be mandatory under GDPR Art. 35.

Sample text for your banner

We use Google Analytics to measure website traffic and understand how visitors interact with our content. Google Analytics places cookies on your device to collect anonymised usage data (pages visited, session duration, device type, traffic source). This data is transferred to and processed by Google LLC in the United States. You may withdraw your consent at any time via our cookie settings.
Cookies and trackers

What Google Analytics sets and contacts

Tracking method
JavaScript tag (gtag.js)
Server location
United States (Google LLC)
Cookieless mode available
Yes
Data transferred outside the EU
Data is transferred to Google LLC servers located in the United States. The transfer is governed by Standard Contractual Clauses (SCCs) under Article 46(2)(c) GDPR, as detailed in the Google Ads Data Processing Terms.

Cookies set (4)

NameTypeDurationPurpose
_gaAnalytics2 yearsAssigns a unique Client ID to distinguish individual users. Used to calculate sessions and user counts in reports.
_gidAnalytics24 hoursStores and updates a unique value for each page visited. Used to distinguish users within a single day.
_ga_<MEASUREMENT_ID>Analytics2 yearsPersists GA4 session state, including session count and campaign source data, across page views.
_gac_<ID>Analytics / Advertising90 daysStores campaign-related information (Google Ads click IDs). Used to attribute conversions to ad campaigns.

Third-party domains contacted (4)

  • google-analytics.com
  • analytics.google.com
  • stats.g.doubleclick.net
  • www.google.com
Questions

Frequently asked questions about Google Analytics

Can't find your question? Write to us, we answer fast.

Is Google Analytics GDPR compliant?

Google Analytics can be used in a GDPR-compliant way, but it is not compliant by default. You must obtain valid prior consent from visitors before loading the analytics tag, sign a Data Processing Agreement (DPA) with Google, and ensure that data transfers to the US are covered by appropriate safeguards such as Standard Contractual Clauses (SCCs). Simply enabling IP anonymisation is not sufficient for GDPR compliance.

Does Google Analytics require cookie consent?

Yes. Google Analytics sets persistent cookies (_ga, _gid, _ga_<ID>) that constitute personal data under the GDPR and the ePrivacy Directive. Under EU law, you must obtain freely given, specific, informed, and unambiguous prior consent from the visitor before setting these cookies. This must be implemented via a compliant Consent Management Platform (CMP).

What cookies does Google Analytics set?

Google Analytics sets four main cookies: _ga (2-year lifetime) to distinguish unique users by storing a Client ID; _gid (24-hour lifetime) to distinguish users within a session; _ga_<MEASUREMENT_ID> (2-year lifetime) to persist GA4 session state; and _gac_<ID> (90-day lifetime) to store campaign-related data. These cookies are classified as Analytics / Performance cookies and require prior consent.

Is data transferred outside the EU with Google Analytics?

Yes. All data collected by Google Analytics is processed on Google LLC servers located in the United States, which constitutes a restricted transfer under GDPR Chapter V. Google covers this transfer via Standard Contractual Clauses (SCCs). However, organisations are advised to conduct a Transfer Impact Assessment (TIA) to verify the adequacy of those safeguards in light of US surveillance law (FISA 702, Executive Order 12333).

Can I use Google Analytics without cookies?

Partially. Google Analytics 4 (GA4) with Consent Mode v2 enabled can operate in a cookieless mode when consent has not been granted. In this mode, no persistent cookies are set, and only anonymised, aggregated pings are sent to Google. However, network requests are still made to Google servers, and Google uses statistical modelling to estimate traffic. This mode does not eliminate the data transfer to Google entirely.

What is the difference between Universal Analytics and Google Analytics 4?

Universal Analytics (UA) was the previous version of Google Analytics. It used a session-based data model and was permanently discontinued on 1 July 2023. Google Analytics 4 (GA4) is the current version. It uses an event-based data model, offers cross-platform tracking (web and app), integrates natively with Google Ads and BigQuery, and supports Consent Mode v2 for privacy-compliant measurement.

How long does Google Analytics store data?

By default, Google Analytics 4 stores event-level data for 2 months, which can be extended to 14 months in the property settings. The _ga cookie itself has a 2-year lifetime in the visitor browser. All data is stored on Google servers in the United States and is subject to Google own data retention policies. You can also configure data deletion requests via the GA4 admin panel.

Do I need a DPIA for Google Analytics?

A Data Protection Impact Assessment (DPIA) is required under GDPR Article 35 when processing is likely to result in a high risk to individuals. Given that Google Analytics involves cross-border data transfers, persistent user profiling, and large-scale processing, a DPIA is strongly recommended and may be mandatory. Several European Data Protection Authorities, including the French CNIL and the Austrian DSB, have ruled that the standard deployment of Google Analytics is non-compliant without additional technical and organisational measures.

Ecomtrack

Ecomtrack is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. Ecomtrack integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, Ecomtrack helps organizations maintain robust websites that meet user expectations and technical requirements.

Marketing

BizSpring

BizSpring is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. BizSpring supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, BizSpring enables informed decisions that improve experience and drive results.

Analytics

Marfeel

Marfeel is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. Marfeel offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, Marfeel empowers organizations to optimize strategy and maximize return on investment.

Analytics

Hubalz

Hubalz is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. Hubalz supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, Hubalz enables informed decisions that improve experience and drive results.

Analytics

Overwolf

Overwolf is a digital analytics solution that helps businesses measure and understand their online performance through comprehensive data collection and analysis. It provides visitor tracking, behavioral insights, and conversion metrics across websites and applications. Overwolf supports custom event tracking, audience segmentation, and automated reporting. With intuitive dashboards and visualization tools, Overwolf enables informed decisions that improve experience and drive results.

Analytics

Statsig

Statsig is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. Statsig offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, Statsig empowers organizations to optimize strategy and maximize return on investment.

Analytics

Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.