How to make your Google Analytics GDPR Compliant with UniConsent

29 September 2020

People are looking for how to make your Google Analytics compliant with GDPR. There are only three steps to make your sites with Google Analytics compliant with GDPR.

Google Analytics has integrated with TCF version 2 recently, so you can implement it with TCF V2 CMP to make it respecting user’s GDPR consent and choices.

How to make your Google Analytics GDPR Compliant with UniConsent

How to make your Google Analytics GDPR Compliant with UniConsent

The first step

Install a certified EU IAB TCF CMP such as UniConsent CMP. UniConsent has started to support TCF version 2 since 2019. It is fast loading and not blocking your pages.

Switching to UniConsent CMP or contact us for support if any questions: [email protected]

The second step

Switch your old Google Analytics tags including https://www.google-analytics.com/analytics.js to the new tags

You can get this by visiting https://analytics.google.com/analytics/web/, then click “Admin” and “Tracking Info”, “Tracking Code”.

You can use either Global Site Tag (gtag.js) or by installing with Google Tag Manager.

The last step

Add the following code before your Google Analytics tags or your Google Tag Manager:

window['gtag_enable_tcf_support'] = true

Reference:

https://support.google.com/analytics/answer/10022331?hl=en

Get Started to make your website compliant for EU GDPR, US CCPA.

Sign up