From 2ed802f9fd1f63ebf58512a8bbc55848446c10d0 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 21 Jul 2021 12:12:19 +0200 Subject: [PATCH] Add cookies for firebase --- tarteaucitron.services.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 239b222..24892d8 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1875,7 +1875,14 @@ tarteaucitron.services.firebase = { "name": "Firebase", "uri": "https://firebase.google.com/support/privacy", "needConsent": true, - "cookies": [], + "cookies": (function () { + var googleIdentifier = tarteaucitron.user.firebaseMeasurementId, + tagGCookie = '_ga_' + googleIdentifier; + + tagGCookie = tagGCookie.replace(/G-/g, ''); + + return ['_ga', tagGCookie]; + })(), "js": function () { "use strict";