Browse Source

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

tarteaucitron.user.atinternetSendData = false;
Amauri CHAMPEAUX 4 years ago
parent
commit
4cf393cd40
1 changed files with 6 additions and 2 deletions
  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();
+            }
         });
     }
 };