Browse Source

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

tarteaucitron.user.atinternetSendData = false;
Amauri CHAMPEAUX 4 năm trước cách đây
mục cha
commit
4cf393cd40
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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();
+            }
         });
     }
 };