Google Analytics (gtag.js) [for multiple UA]: GDPR, cookies and installation

Analytics
Consent-controlled integration
Google Analytics (gtag.js) [for multiple UA]
7 cookies listed Privacy policy
service multiplegtag
1.2M
requests / 30 days

40.24% consent


Google Analytics (gtag.js) [for multiple UA] and GDPR: how to manage consent

Google Analytics (gtag.js) [for multiple UA] is an audience measurement or analytics service. Depending on its configuration, its use may involve browser storage, tracking technologies or the transmission of data to a third-party provider.

When the configuration of Google Analytics (gtag.js) [for multiple UA] requires consent, the service should only be activated after the visitor has made a choice. tarteaucitron can condition its loading on that decision.

Managing Google Analytics (gtag.js) [for multiple UA] with tarteaucitron

When Google Analytics (gtag.js) [for multiple UA] is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.

Cookies and storage used by Google Analytics (gtag.js) [for multiple UA]

The current tarteaucitron integration declares 7 cookies associated with Google Analytics (gtag.js) [for multiple UA]:

  • _ga
  • _gat
  • __utma
  • __utmb
  • __utmc
  • __utmt
  • __utmz

This list corresponds to the cookies currently declared in the tarteaucitron service definition. The service provider may change its technical implementation over time.

Configuring Google Analytics (gtag.js) [for multiple UA]

Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Google Analytics (gtag.js) [for multiple UA].

<script>
tarteaucitron.user.multiplegtagUa = ['UA-XXXXXXXX-X', 'UA-XXXXXXXX-X', 'UA-XXXXXXXX-X'];
(tarteaucitron.job = tarteaucitron.job || []).push('multiplegtag');
</script>

Additional code

The following code can already be present on your website and should be kept where the service is used.

<script>tarteaucitron.user.multiplegtagCustomDomain = 'custom.domain/path';</script>

Code to remove

Default HTML code to remove from your website:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXX-X'); // your optionnal gtag() </script>

For a complete guide, read the documentation to install tarteaucitron.js.

Privacy information

For detailed information about the processing of data by Google Analytics (gtag.js) [for multiple UA], cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:

Google Analytics (gtag.js) [for multiple UA] privacy information

Frequently asked questions about Google Analytics (gtag.js) [for multiple UA]

Does Google Analytics (gtag.js) [for multiple UA] require consent?

It depends on how Google Analytics (gtag.js) [for multiple UA] is configured and which data is processed. Audience measurement tools using non-exempt tracking technologies generally need to be conditioned on the visitor’s consent.

How does tarteaucitron block Google Analytics (gtag.js) [for multiple UA]?

tarteaucitron controls the activation of Google Analytics (gtag.js) [for multiple UA] according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.