Selaa lähdekoodia

Add Lead Forensics Fix #997

Amauri CHAMPEAUX 2 vuotta sitten
vanhempi
commit
6e93f6d766
1 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 18 0
      tarteaucitron.services.js

+ 18 - 0
tarteaucitron.services.js

@@ -57,6 +57,24 @@ tarteaucitron.services.kwanko = {
     }
 };
 
+// leadforensics
+tarteaucitron.services.leadforensics = {
+    "key": "leadforensics",
+    "type": "ads",
+    "name": "Lead Forensics",
+    "uri": "https://www.leadforensics.com/cookie-policy/",
+    "needConsent": true,
+    "cookies": ['ifuuid'],
+    "js": function () {
+        "use strict";
+        if (tarteaucitron.user.leadforensicsId === undefined) {
+            return;
+        }
+
+        tarteaucitron.addScript('https://secure.team8save.com/js/sc/'+ tarteaucitron.user.leadforensicsId +'.js');
+    }
+};
+
 // trustpilot
 tarteaucitron.services.trustpilot = {
     "key": "trustpilot",