Load atMore after the visitorMode #985

This commit is contained in:
Amauri CHAMPEAUX 2022-08-31 17:54:07 +02:00
parent fd03021f1c
commit 09b979a2dc
1 changed files with 8 additions and 8 deletions

View File

@ -3780,14 +3780,14 @@ tarteaucitron.services.atinternet = {
window.tag = new ATInternet.Tracker.Tag(); window.tag = new ATInternet.Tracker.Tag();
if (typeof tarteaucitron.user.atMore === 'function') {
tarteaucitron.user.atMore();
}
if (typeof window.tag.privacy !== 'undefined') { if (typeof window.tag.privacy !== 'undefined') {
window.tag.privacy.setVisitorOptin(); window.tag.privacy.setVisitorOptin();
} }
if (typeof tarteaucitron.user.atMore === 'function') {
tarteaucitron.user.atMore();
}
if (tarteaucitron.user.atinternetSendData !== false) { if (tarteaucitron.user.atinternetSendData !== false) {
window.tag.page.send(); window.tag.page.send();
} }
@ -3809,10 +3809,6 @@ tarteaucitron.services.atinternet = {
window.tag = new ATInternet.Tracker.Tag(); window.tag = new ATInternet.Tracker.Tag();
if (typeof tarteaucitron.user.atMore === 'function') {
tarteaucitron.user.atMore();
}
if (typeof window.tag.privacy !== 'undefined') { if (typeof window.tag.privacy !== 'undefined') {
var visitorMode = window.tag.privacy.getVisitorMode(); 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) { if (tarteaucitron.user.atinternetSendData !== false) {
window.tag.page.send(); window.tag.page.send();
} }