浏览代码

Add an option to not send the data to atinternet #631

tarteaucitron.user.atinternetSendData = false;
Amauri CHAMPEAUX 4 年之前
父节点
当前提交
4cf393cd40
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      tarteaucitron.services.js

+ 6 - 2
tarteaucitron.services.js

@@ -3201,7 +3201,9 @@ tarteaucitron.services.atinternet = {
                 window.tag.privacy.setVisitorOptin();
             }
 
-            window.tag.page.send();
+            if (tarteaucitron.user.atinternetSendData !== false) {
+                window.tag.page.send();
+            }
         });
     },
     "fallback": function () {
@@ -3228,7 +3230,9 @@ tarteaucitron.services.atinternet = {
                 }
             }
 
-            window.tag.page.send();
+            if (tarteaucitron.user.atinternetSendData !== false) {
+                window.tag.page.send();
+            }
         });
     }
 };