diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 2b6fb37..92c1008 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -30,6 +30,38 @@ tarteaucitron.services.iframe = { } }; +// xandr +tarteaucitron.services.xandr = { + "key": "xandr", + "type": "ads", + "name": "Xandr", + "uri": "https://www.xandr.com/privacy/cookie-policy/", + "needConsent": true, + "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'], + "js": function () { + "use strict"; + if (tarteaucitron.user.xandrId === undefined) { + return; + } + + if (!window.pixie) { + var n = window.pixie = function(e, i, a) { + n.actionQueue.push({ + action: e, + actionValue: i, + params: a + }) + }; + n.actionQueue = []; + } + + tarteaucitron.addScript('https://acdn.adnxs.com/dmp/up/pixie.js', '', function() { + window.pixie('init', tarteaucitron.user.xandrId); + window.pixie('event', 'PageView'); + }); + } +}; + // helloasso tarteaucitron.services.helloasso = { "key": "helloasso",