From 4cf393cd4084b37e2ea5c0c68e07b1d86c0411a9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 27 Apr 2021 15:00:05 +0200 Subject: [PATCH] Add an option to not send the data to atinternet #631 tarteaucitron.user.atinternetSendData = false; --- tarteaucitron.services.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 3fd1874..9afcf70 100644 --- a/tarteaucitron.services.js +++ b/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(); + } }); } };