From 09b979a2dc56bd2001d42e5e2717d5e6728b4c5a Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 31 Aug 2022 17:54:07 +0200 Subject: [PATCH] Load atMore after the visitorMode #985 --- tarteaucitron.services.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index fb7efab..ba1d311 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3780,14 +3780,14 @@ tarteaucitron.services.atinternet = { window.tag = new ATInternet.Tracker.Tag(); - if (typeof tarteaucitron.user.atMore === 'function') { - tarteaucitron.user.atMore(); - } - if (typeof window.tag.privacy !== 'undefined') { window.tag.privacy.setVisitorOptin(); } + if (typeof tarteaucitron.user.atMore === 'function') { + tarteaucitron.user.atMore(); + } + if (tarteaucitron.user.atinternetSendData !== false) { window.tag.page.send(); } @@ -3809,10 +3809,6 @@ tarteaucitron.services.atinternet = { window.tag = new ATInternet.Tracker.Tag(); - if (typeof tarteaucitron.user.atMore === 'function') { - tarteaucitron.user.atMore(); - } - if (typeof window.tag.privacy !== 'undefined') { var visitorMode = window.tag.privacy.getVisitorMode(); @@ -3823,6 +3819,10 @@ tarteaucitron.services.atinternet = { } } + if (typeof tarteaucitron.user.atMore === 'function') { + tarteaucitron.user.atMore(); + } + if (tarteaucitron.user.atinternetSendData !== false) { window.tag.page.send(); }