Update atinternet service
This commit is contained in:
parent
b5fe35877f
commit
1c6251a706
|
|
@ -3017,8 +3017,8 @@ tarteaucitron.services.atinternet = {
|
||||||
"type": "analytic",
|
"type": "analytic",
|
||||||
"name": "AT Internet (privacy by design)",
|
"name": "AT Internet (privacy by design)",
|
||||||
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
||||||
"needConsent": false,
|
"needConsent": true,
|
||||||
"safeanalytic": true,
|
"safeanalytic": false,
|
||||||
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
@ -3035,99 +3035,32 @@ tarteaucitron.services.atinternet = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof window.tag.privacy !== 'undefined') {
|
if (typeof window.tag.privacy !== 'undefined') {
|
||||||
|
window.tag.privacy.setVisitorOptin();
|
||||||
document.getElementById('atinternetLine').style.display = 'none';
|
|
||||||
|
|
||||||
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
||||||
window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
||||||
}
|
|
||||||
|
|
||||||
tarteaucitron.addClickEventToElement(document.getElementById('atinternetDenied'), function () {
|
|
||||||
tarteaucitron.launch['atinternetoptout'] = false;
|
|
||||||
tarteaucitron.launch['atinternetoptin'] = false;
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
||||||
});
|
|
||||||
|
|
||||||
tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptoutDenied'), function () {
|
|
||||||
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
||||||
window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptinDenied'), function () {
|
|
||||||
if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
||||||
window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function() {
|
window.tag.page.send();
|
||||||
tag.page.send();
|
|
||||||
}, 70);
|
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
};
|
"fallback": function () {
|
||||||
|
|
||||||
// AT Internet (optin)
|
|
||||||
tarteaucitron.services.atinternetoptin = {
|
|
||||||
"key": "atinternetoptin",
|
|
||||||
"type": "analytic",
|
|
||||||
"name": "AT Internet",
|
|
||||||
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
|
||||||
"needConsent": true,
|
|
||||||
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
|
||||||
"js": function () {
|
|
||||||
"use strict";
|
"use strict";
|
||||||
tarteaucitron.launch['atinternetoptout'] = false;
|
if (tarteaucitron.user.atLibUrl === undefined) {
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
||||||
}, 50);
|
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
if (typeof window.tag.privacy !== 'undefined') {
|
|
||||||
window.tag.privacy.setVisitorOptin();
|
|
||||||
}
|
|
||||||
}, 60);
|
|
||||||
|
|
||||||
window.tarteaucitronHackNoSwitch = true;
|
|
||||||
setTimeout(function() {window.tarteaucitronHackNoSwitch = false;}, 200);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// AT Internet (optout)
|
|
||||||
tarteaucitron.services.atinternetoptout = {
|
|
||||||
"key": "atinternetoptout",
|
|
||||||
"type": "analytic",
|
|
||||||
"name": "AT Internet [minimal]",
|
|
||||||
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
|
||||||
"needConsent": true,
|
|
||||||
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
|
||||||
"js": function () {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// hack accept all
|
|
||||||
if (window.tarteaucitronHackNoSwitch) {
|
|
||||||
setTimeout(function() {
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
||||||
}, 60);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tarteaucitron.launch['atinternetoptin'] = false;
|
tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
|
||||||
|
|
||||||
setTimeout(function() {
|
window.tag = new ATInternet.Tracker.Tag();
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
|
|
||||||
tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
|
|
||||||
}, 50);
|
|
||||||
|
|
||||||
setTimeout(function() {
|
if (typeof tarteaucitron.user.atMore === 'function') {
|
||||||
if (typeof window.tag.privacy !== 'undefined') {
|
tarteaucitron.user.atMore();
|
||||||
window.tag.privacy.setVisitorOptout();
|
|
||||||
}
|
}
|
||||||
}, 60);
|
|
||||||
|
if (typeof window.tag.privacy !== 'undefined') {
|
||||||
|
window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
||||||
|
}
|
||||||
|
|
||||||
|
window.tag.page.send();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3580,7 +3513,7 @@ tarteaucitron.services.matomohightrack = {
|
||||||
"type": "analytic",
|
"type": "analytic",
|
||||||
"name": "Matomo",
|
"name": "Matomo",
|
||||||
"uri": "https://matomo.org/faq/general/faq_146/",
|
"uri": "https://matomo.org/faq/general/faq_146/",
|
||||||
"needConsent": true,
|
"needConsent": false,
|
||||||
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
|
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue