瀏覽代碼

First AT Internet SmartTag integration

BenDz 6 年之前
父節點
當前提交
4c2d0bd68c
共有 1 個文件被更改,包括 22 次插入0 次删除
  1. 22 0
      tarteaucitron.services.js

+ 22 - 0
tarteaucitron.services.js

@@ -1994,6 +1994,28 @@ tarteaucitron.services.xiti = {
     }
 };
 
+// AT Internet
+tarteaucitron.services.atinternet = {
+    "key": "atinternet",
+    "type": "analytic",
+    "name": "AT Internet",
+    "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
+    "needConsent": true,
+    "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
+    "js": function () {
+        "use strict";
+        if (tarteaucitron.user.atLibUrl === undefined) {
+            return;
+        }
+
+        tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
+            if (typeof tarteaucitron.user.atMore === 'function') {
+                tarteaucitron.user.atMore();
+            }
+        })
+    }
+};
+
 // youtube
 tarteaucitron.services.youtube = {
     "key": "youtube",