From 615f8c8d681fca0eaa531c192b12275ff598e728 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 29 May 2015 17:40:16 +0200 Subject: [PATCH] Add Twenga --- tarteaucitron.services.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 0c01f8a..f6628a6 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1031,6 +1031,24 @@ tarteaucitron.services.typekit = { } }; +// twenga +tarteaucitron.services.twenga = { + "key": "twenga", + "type": "ads", + "name": "Twenga", + "uri": "http://www.twenga.com/privacy.php", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) { + return; + } + + tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js'); + } +}; // twitter tarteaucitron.services.twitter = {