Opsent

Cookies and tracking

Is Google Analytics legal in Italy?

Updated

In short

No rule bans Google Analytics, but anyone using it must answer two questions. The first is consent: like any third-party analytics tool, it must be switched on only after consent, unless it meets all the conditions of the Garante (Italy's data protection authority) for being treated like technical cookies. The second is the transfer of data to the United States: in 2022 the Garante declared an Italian site's use of the tool unlawful because the transfer was not protected by adequate measures, and made clear that the responsibility lies with whoever runs the site.

Two separate questions

When people ask whether Google Analytics is "legal", two different rules often get mixed up:

1. cookie consent, governed by art. 122 of the Codice privacy (Italian Privacy Code) and by the cookie guidelines of the Garante (Italy's data protection authority) of 10 June 2021; 2. the transfer of data outside the European Union, governed by Chapter V of the GDPR (arts. 44 and following).

Complying with one of the two says nothing about the other.

Google Analytics collects data with cookies stored in the visitor's browser. Under the Garante's guidelines, third-party analytics can do without consent only if they meet precise conditions: data minimised so that the individual visitor cannot be singled out, aggregate statistics only, a single site, no combining of the data with other processing and no passing them on to third parties. They are explained in the guide on analytics cookies without consent. If the tool does not meet them all, or you are not able to show that it does, it must be switched on only after consent given in the banner.

The Garante's 2022 decision

The decision of 9 June 2022 concerns the operator of an Italian site that used the free version of Google Analytics for aggregate statistics. The Garante found that:

  • the tool collected unique online identifiers, the IP address, data on the browser, the operating system, the language, and the date and time of the visit; personal data, especially when combined;
  • those data were transferred to Google LLC, in the United States;
  • after the judgment of the Court of Justice in case C-311/18 (known as Schrems II), standard contractual clauses were not enough on their own: effective supplementary measures against access by US authorities were needed;
  • the measures adopted were not effective. Encryption was not enough, because the key stayed with the provider; the IP anonymisation option, which truncates the last octet, was in fact pseudonymisation that did not prevent re-identification;
  • the privacy notice did not state clearly the transfer to a third country, as required by art. 13(1)(f) of the GDPR.

The Garante declared the processing unlawful for breach of arts. 5, 13, 24, 44 and 46 of the GDPR, reprimanded the controller and ordered it to bring the transfers into compliance within ninety days, failing which the data flows to the United States would be suspended.

One point applies to everyone: the Garante rejected the argument that the site operator had no real choice over the provider's terms. Responsibility for the transfer lies with the site operator, who must verify the safeguards and be able to demonstrate them (the accountability principle).

And today?

The rules on transfers have not changed, but the grounds to rely on can change. The GDPR allows a transfer without any specific authorisation if the European Commission has decided that the recipient's country, a territory or a sector within it ensures an adequate level of protection (art. 45). Without an adequacy decision, appropriate safeguards are needed, such as standard contractual clauses (art. 46), with the supplementary measures the case requires.

Before deciding, check on what basis the provider says it transfers the data today, whether the recipient falls under an adequacy decision in force and what the contract you accepted provides. Then put it in the privacy notice. Our Italian guide on transferring data to the US explains the possible grounds.

What you can check yourself

  • When it starts. In a private window, open the site and, before touching the banner, use the browser's developer tools to see whether requests go out to the tool's domains or whether its cookies appear. If so, and you have not verified all the Garante's conditions, it is starting before consent.
  • After rejecting. Reject and repeat the check: after a no, the tool must not collect data with cookies.
  • The privacy notice. Does it name the tool, the provider, the purposes, the cookie duration and the transfer to third countries with its legal basis?
  • The contract. Find the terms of service and the data processing agreements you accepted when you activated it: who your counterparty is, where the data go, who the sub-processors are.
  • Extra features. Links with advertising platforms or with users' account data widen the processing: they must be assessed and disclosed.

Common mistakes

  • Thinking that IP anonymisation makes the tool "anonymous".
  • Switching the tool on when the page loads, before the banner.
  • A privacy notice that does not mention the transfer outside the European Union.
  • Shifting all responsibility onto the provider: for the Garante the controller is the site operator.
  • Considering the matter settled once and for all: the grounds for transfers must be checked again when they change.

Before you publish the site, or after writing its privacy notice and terms, check it with Opsent: paste the address at getopsent.com/en/site-check and in a few minutes you see what is missing, with the law cited. For a general review there is the checklist before launch.

Sources

This guide explains the law in general and is not legal advice on your case. Italian laws link their official Italian text.

See also

  1. Can you use analytics cookies without consent in Italy?Under the Garante's guidelines of 10 June 2021, analytics cookies count as technical, with no consent, only on strict terms: reduced data, aggregate statistics.
  2. Italian Garante cookie guidelines (10 June 2021): what the banner needsThe Garante's guidelines of 10 June 2021: what an Italian cookie banner must contain, the X to close it, granular choices and when to show it again.
  3. Is a "Reject all" button required on cookie banners in Italy?The Garante's cookie guidelines of 10 June 2021 (para. 7.1): rejecting must be as easy as accepting. The explained X, the Reject button, equal prominence.

Check your site for free

Paste the address: in a few minutes we tell you what is fine, what is not and what to fix, with the law cited.

One moment: we are checking that you are not a robot.