Przeglądaj źródła

Add cookies for firebase

Amauri CHAMPEAUX 3 lat temu
rodzic
commit
2ed802f9fd
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      tarteaucitron.services.js

+ 8 - 1
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";