Ver código fonte

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

tarteaucitron.user.atinternetSendData = false;
Amauri CHAMPEAUX 4 anos atrás
pai
commit
4cf393cd40
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6 2
      tarteaucitron.services.js

+ 6 - 2
tarteaucitron.services.js

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