Merge pull request #1 from AmauriC/master

Update from AmauriC
This commit is contained in:
Encre Informatique 2018-06-27 14:18:09 +02:00 committed by GitHub
commit 030ab01b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 511 additions and 68 deletions

View File

@ -21,6 +21,9 @@ Bonus:
## Supported services ## Supported services
* Advertising network * Advertising network
* Ad Up Technology (ads)
* Ad Up Technology (conversion)
* Ad Up Technology (retargeting)
* Amazon * Amazon
* Clicmanager * Clicmanager
* Criteo * Criteo
@ -57,6 +60,10 @@ Bonus:
* Disqus * Disqus
* Facebook (commentaire) * Facebook (commentaire)
* Marketing Automation & CRM
* Mautic
* Webmecanik Automation
* Social network * Social network
* AddThis * AddThis
* AddToAny (feed) * AddToAny (feed)
@ -85,6 +92,7 @@ Bonus:
* SlideShare * SlideShare
* Vimeo * Vimeo
* YouTube * YouTube
* Issuu
## Visitors outside the EU ## Visitors outside the EU
@ -99,3 +107,24 @@ In PHP for example, you can bypass all the script by setting this var `tarteauci
# Installation guide # Installation guide
[Visit opt-out.ferank.eu](https://opt-out.ferank.eu/) [Visit opt-out.ferank.eu](https://opt-out.ferank.eu/)
# How to use
```html
<script type="text/javascript" src="/tarteaucitron/tarteaucitron.js"></script>
<script type="text/javascript">
tarteaucitron.init({
"hashtag": "#tarteaucitron", /* Ouverture automatique du panel avec le hashtag */
"highPrivacy": false, /* désactiver le consentement implicite (en naviguant) ? */
"orientation": "top", /* le bandeau doit être en haut (top) ou en bas (bottom) ? */
"adblocker": false, /* Afficher un message si un adblocker est détecté */
"showAlertSmall": true, /* afficher le petit bandeau en bas à droite ? */
"cookieslist": true, /* Afficher la liste des cookies installés ? */
"removeCredit": false, /* supprimer le lien vers la source ? */
"handleBrowserDNTRequest": false, /* Répondre au DoNotTrack du navigateur ?*/
"cookieDomain": ".my-multisite-domaine.fr" /* Nom de domaine sur lequel sera posé le cookie - pour les multisites / sous-domaines - Facultatif */
});
</script>
```

View File

@ -364,9 +364,17 @@
/*** /***
* Small alert * Small alert
*/ */
.tarteaucitronAlertSmallTop {
top: 0;
}
.tarteaucitronAlertSmallBottom {
bottom: 0;
}
#tarteaucitronAlertSmall { #tarteaucitronAlertSmall {
background: #333; background: #333;
bottom: 0;
display: none; display: none;
padding: 0; padding: 0;
position: fixed; position: fixed;

View File

@ -1,7 +1,7 @@
/*global tarteaucitron */ /*global tarteaucitron */
tarteaucitron.lang = { tarteaucitron.lang = {
"adblock": "Hola! Este sitio web es transparente y le da la opción de activar los servicios de terceros.", "adblock": "Hola! Este sitio web es transparente y le da la opción de activar los servicios de terceros.",
"adblock_call": "Por favor deshabilite su AdBlocker para comenzar a personalizar.", "adblock_call": "Por favor deshabilite su AdBlocker para empezar a personalizar los servicios.",
"reload": "Actualizar esta página", "reload": "Actualizar esta página",
"alertBigScroll": "Al continuar para desplazarse,", "alertBigScroll": "Al continuar para desplazarse,",
@ -14,7 +14,7 @@ tarteaucitron.lang = {
"acceptAll": "OK, aceptar todas", "acceptAll": "OK, aceptar todas",
"close": "Cerrar", "close": "Cerrar",
"all": "Preference for all services", "all": "Ajustes para todos los servicios",
"info": "Protegiendo tu privacidad", "info": "Protegiendo tu privacidad",
"disclaimer": "Aceptando estos servicios terceros, estas aceptando sus cookies y el uso de tecnologías de rastreo necesarias para su correcto funcionamiento.", "disclaimer": "Aceptando estos servicios terceros, estas aceptando sus cookies y el uso de tecnologías de rastreo necesarias para su correcto funcionamiento.",
@ -28,7 +28,7 @@ tarteaucitron.lang = {
"source": "Ver sitio web oficial", "source": "Ver sitio web oficial",
"credit": "Gestor de cookies realizada por tarteaucitron.js", "credit": "Gestor de cookies realizada por tarteaucitron.js",
"fallback": "esta deshabilitado.", "fallback": "está deshabilitado.",
"ads": { "ads": {
"title": "Red de publicidad", "title": "Red de publicidad",

65
lang/tarteaucitron.nl.js Normal file
View File

@ -0,0 +1,65 @@
/*global tarteaucitron */
tarteaucitron.lang = {
"adblock": "Hallo! Deze site is transparant en laat u de services van derden kiezen die u wilt toestaan.",
"adblock_call": "Schakel uw adblocker uit om te beginnen met aanpassen.",
"reload": "Ververs de pagina",
"alertBigScroll": "Door te blijven scrollen,",
"alertBigClick": "Als je doorgaat met het surfen op deze website,",
"alertBig": "sta je alle diensten van derden toe",
"alertBigPrivacy": "Deze site maakt gebruik van cookies en geeft u controle over wat u wilt activeren",
"alertSmall": "Beheer instellingen",
"personalize": "Personaliseer",
"acceptAll": "OK, accepteer alle",
"close": "Sluit",
"all": "Voorkeur voor alle diensten",
"info": "Bescherming van uw privacy",
"disclaimer": "Door deze services van derden toe te staan, accepteert u hun cookies en het gebruik van trackingtechnologieën die nodig zijn voor hun goede werking.",
"allow": "Toestaan",
"deny": "Weigeren",
"noCookie": "Deze service gebruikt geen cookie",
"useCookie": "Deze service kan worden geïnstalleerd",
"useCookieCurrent": "Deze service is geïnstalleerd",
"useNoCookie": "Deze service heeft geen cookies geïnstalleerd.",
"more": "Lees meer",
"source": "Bekijk de officiële website",
"credit": "Cookie manager mogelijk gemaakt door tarteaucitron.js",
"fallback": "is uitgeschakeld.",
"ads": {
"title": "Advertentienetwerk",
"details": "Advertentienetwerken kunnen inkomsten genereren door advertentieruimte op de site te verkopen."
},
"analytic": {
"title": "Bezoekers meting",
"details": "De bezoekersdiensten voor het publiek worden gebruikt om nuttige statistieken te genereren om de site te verbeteren."
},
"social": {
"title": "Sociale netwerken",
"details": "Sociale netwerken kunnen de bruikbaarheid van de site verbeteren en helpen deze via de shares te promoten."
},
"video": {
"title": "Videos",
"details": "Video sharing-services helpen om rich media op de site toe te voegen en de zichtbaarheid ervan te vergroten."
},
"comment": {
"title": "Comments",
"details": "Commentsmanagers faciliteren het indienen van opmerkingen en het bestrijden van spam."
},
"support": {
"title": "Support",
"details": "Support diensten stellen u in staat contact op te nemen met het team van de site en helpen het te verbeteren."
},
"api": {
"title": "APIs",
"details": "APIs worden gebruikt om scripts te laden: geolocatie, zoekmachines, vertalingen, ..."
},
"other": {
"title": "Overig",
"details": "Diensten om webinhoud weer te geven."
}
};

View File

@ -6,6 +6,8 @@ var scripts = document.getElementsByTagName('script'),
cdn = path.split('/').slice(0, -1).join('/') + '/', cdn = path.split('/').slice(0, -1).join('/') + '/',
alreadyLaunch = (alreadyLaunch === undefined) ? 0 : alreadyLaunch, alreadyLaunch = (alreadyLaunch === undefined) ? 0 : alreadyLaunch,
tarteaucitronForceLanguage = (tarteaucitronForceLanguage === undefined) ? '' : tarteaucitronForceLanguage, tarteaucitronForceLanguage = (tarteaucitronForceLanguage === undefined) ? '' : tarteaucitronForceLanguage,
tarteaucitronForceExpire = (tarteaucitronForceExpire === undefined) ? '' : tarteaucitronForceExpire,
timeExipre = 31536000000,
tarteaucitronProLoadServices, tarteaucitronProLoadServices,
tarteaucitronNoAdBlocker = false; tarteaucitronNoAdBlocker = false;
@ -183,7 +185,8 @@ var tarteaucitron = {
"orientation": "top", "orientation": "top",
"removeCredit": false, "removeCredit": false,
"showAlertSmall": true, "showAlertSmall": true,
"cookieslist": true "cookieslist": true,
"handleBrowserDNTRequest": false
}, },
params = tarteaucitron.parameters; params = tarteaucitron.parameters;
@ -196,6 +199,7 @@ var tarteaucitron = {
tarteaucitron.orientation = defaults.orientation; tarteaucitron.orientation = defaults.orientation;
tarteaucitron.hashtag = defaults.hashtag; tarteaucitron.hashtag = defaults.hashtag;
tarteaucitron.highPrivacy = defaults.highPrivacy; tarteaucitron.highPrivacy = defaults.highPrivacy;
tarteaucitron.handleBrowserDNTRequest = defaults.handleBrowserDNTRequest;
// Step 1: load css // Step 1: load css
linkElement.rel = 'stylesheet'; linkElement.rel = 'stylesheet';
@ -296,7 +300,7 @@ var tarteaucitron = {
} }
if (defaults.showAlertSmall === true) { if (defaults.showAlertSmall === true) {
html += '<div id="tarteaucitronAlertSmall">'; html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
html += ' <div id="tarteaucitronManager" onclick="tarteaucitron.userInterface.openPanel();">'; html += ' <div id="tarteaucitronManager" onclick="tarteaucitron.userInterface.openPanel();">';
html += ' ' + tarteaucitron.lang.alertSmall; html += ' ' + tarteaucitron.lang.alertSmall;
html += ' <div id="tarteaucitronDot">'; html += ' <div id="tarteaucitronDot">';
@ -333,9 +337,12 @@ var tarteaucitron = {
for (index = 0; index < tarteaucitron.job.length; index += 1) { for (index = 0; index < tarteaucitron.job.length; index += 1) {
tarteaucitron.addService(tarteaucitron.job[index]); tarteaucitron.addService(tarteaucitron.job[index]);
} }
} else {
tarteaucitron.job = []
} }
tarteaucitron.isAjax = true; tarteaucitron.isAjax = true;
tarteaucitron.job.push = function (id) { tarteaucitron.job.push = function (id) {
// ie <9 hack // ie <9 hack
@ -404,7 +411,8 @@ var tarteaucitron = {
isWaiting = (cookie.indexOf(service.key + '=wait') >= 0) ? true : false, isWaiting = (cookie.indexOf(service.key + '=wait') >= 0) ? true : false,
isDenied = (cookie.indexOf(service.key + '=false') >= 0) ? true : false, isDenied = (cookie.indexOf(service.key + '=false') >= 0) ? true : false,
isAllowed = (cookie.indexOf(service.key + '=true') >= 0) ? true : false, isAllowed = (cookie.indexOf(service.key + '=true') >= 0) ? true : false,
isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0) ? true : false; isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0) ? true : false,
isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1") ? true : false;
if (tarteaucitron.added[service.key] !== true) { if (tarteaucitron.added[service.key] !== true) {
tarteaucitron.added[service.key] = true; tarteaucitron.added[service.key] = true;
@ -462,6 +470,13 @@ var tarteaucitron = {
} }
tarteaucitron.state[service.key] = false; tarteaucitron.state[service.key] = false;
tarteaucitron.userInterface.color(service.key, false); tarteaucitron.userInterface.color(service.key, false);
} else if (!isResponded && isDNTRequested && tarteaucitron.handleBrowserDNTRequest) {
tarteaucitron.cookie.create(service.key, 'false');
if (typeof service.fallback === 'function') {
service.fallback();
}
tarteaucitron.state[service.key] = false;
tarteaucitron.userInterface.color(service.key, false);
} else if (!isResponded) { } else if (!isResponded) {
tarteaucitron.cookie.create(service.key, 'wait'); tarteaucitron.cookie.create(service.key, 'wait');
if (typeof service.fallback === 'function') { if (typeof service.fallback === 'function') {
@ -860,19 +875,26 @@ var tarteaucitron = {
"owner": {}, "owner": {},
"create": function (key, status) { "create": function (key, status) {
"use strict"; "use strict";
if (tarteaucitronForceExpire !== '') {
// The number of day cann't be higher than 1 year
timeExipre = (tarteaucitronForceExpire > 365) ? 31536000000 : tarteaucitronForceExpire * 86400000; // Multiplication to tranform the number of days to milliseconds
}
var d = new Date(), var d = new Date(),
time = d.getTime(), time = d.getTime(),
expireTime = time + 31536000000, // 365 days expireTime = time + timeExipre, // 365 days
regex = new RegExp("!" + key + "=(wait|true|false)", "g"), regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
cookie = tarteaucitron.cookie.read().replace(regex, ""), cookie = tarteaucitron.cookie.read().replace(regex, ""),
value = 'tarteaucitron=' + cookie + '!' + key + '=' + status; value = 'tarteaucitron=' + cookie + '!' + key + '=' + status,
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? 'domain=' + tarteaucitron.parameters.cookieDomain + ';' : '';
if (tarteaucitron.cookie.read().indexOf(key + '=' + status) === -1) { if (tarteaucitron.cookie.read().indexOf(key + '=' + status) === -1) {
tarteaucitron.pro('!' + key + '=' + status); tarteaucitron.pro('!' + key + '=' + status);
} }
d.setTime(expireTime); d.setTime(expireTime);
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;'; document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;' + domain;
}, },
"read": function () { "read": function () {
"use strict"; "use strict";
@ -1040,7 +1062,7 @@ var tarteaucitron = {
"use strict"; "use strict";
if (!navigator) { return 'en'; } if (!navigator) { return 'en'; }
var availableLanguages = 'cs,en,fr,es,it,de,pt,pl,ru', var availableLanguages = 'cs,en,fr,es,it,de,nl,pt,pl,ru',
defaultLanguage = 'en', defaultLanguage = 'en',
lang = navigator.language || navigator.browserLanguage || lang = navigator.language || navigator.browserLanguage ||
navigator.systemLanguage || navigator.userLang || null, navigator.systemLanguage || navigator.userLang || null,
@ -1077,6 +1099,8 @@ var tarteaucitron = {
return 'it_IT'; return 'it_IT';
} else if (userLanguage === 'pt') { } else if (userLanguage === 'pt') {
return 'pt_PT'; return 'pt_PT';
} else if (userLanguage === 'nl') {
return 'nl_NL';
} else { } else {
return 'en_US'; return 'en_US';
} }

View File

@ -106,6 +106,199 @@ tarteaucitron.services.addtoanyshare = {
} }
}; };
// aduptech ads
tarteaucitron.services.aduptech_ads = {
"key": "aduptech_ads",
"type": "ads",
"name": "Ad Up Technology (ads)",
"uri": "https://www.adup-tech.com/datenschutz",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
var IDENTIFIER = "aduptech_ads",
API_URL = "https://s.d.adup-tech.com/jsapi";
var elements = document.getElementsByClassName(IDENTIFIER);
if (!elements || elements.length === 0) {
return;
}
tarteaucitron.fallback([IDENTIFIER], "");
tarteaucitron.addScript(API_URL, "", function() {
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
if (!element.getAttribute("id")) {
element.setAttribute("id", IDENTIFIER + Math.random().toString(36).substr(2, 9));
}
window.uAd.embed(element.getAttribute("id"), {
placementKey: element.getAttribute("placementKey"),
responsive: Boolean(element.getAttribute("responsive")),
lazy: Boolean(element.getAttribute("lazy")),
adtest: Boolean(element.getAttribute("test")),
query: element.getAttribute("query") || "",
minCpc: element.getAttribute("minCpc") || "",
pageUrl: element.getAttribute("pageUrl") || "",
skip: element.getAttribute("skip") || ""
});
}
});
},
"fallback": function () {
"use strict";
tarteaucitron.fallback(["aduptech_ads"], tarteaucitron.engage("aduptech_ads"));
}
};
// aduptech conversion
tarteaucitron.services.aduptech_conversion = {
"key": "aduptech_conversion",
"type": "ads",
"name": "Ad Up Technology (conversion)",
"uri": "https://www.adup-tech.com/datenschutz",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
var IDENTIFIER = "aduptech_conversion",
CONVERSION_PIXEL_BASE_URL = "https://d.adup-tech.com/campaign/conversion";
var elements = document.getElementsByClassName(IDENTIFIER);
if (!elements || elements.length === 0) {
return;
}
tarteaucitron.fallback([IDENTIFIER], "");
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
if (!element.getAttribute("advertiserId") || !element.getAttribute("conversionCode")) {
continue;
}
var url = CONVERSION_PIXEL_BASE_URL +
"/" + encodeURIComponent(element.getAttribute("advertiserId")) +
"?t=" + encodeURIComponent(element.getAttribute("conversionCode"));
if (element.getAttribute("price")) {
url += "&price=" + encodeURIComponent(element.getAttribute("price"));
}
if (element.getAttribute("quantity")) {
url += "&quantity=" + encodeURIComponent(element.getAttribute("quantity"));
}
if (element.getAttribute("total")) {
url += "&total=" + encodeURIComponent(element.getAttribute("total"));
}
if (element.getAttribute("orderId")) {
url += "&order_id=" + encodeURIComponent(element.getAttribute("orderId"));
}
if (element.getAttribute("itemNumber")) {
url += "&item_number=" + encodeURIComponent(element.getAttribute("itemNumber"));
}
if (element.getAttribute("description")) {
url += "&description=" + encodeURIComponent(element.getAttribute("description"));
}
(new Image()).src = url;
}
}
};
// aduptech retargeting
tarteaucitron.services.aduptech_retargeting = {
"key": "aduptech_retargeting",
"type": "ads",
"name": "Ad Up Technology (retargeting)",
"uri": "https://www.adup-tech.com/datenschutz",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
var IDENTIFIER = "aduptech_retargeting",
API_URL = "https://s.d.adup-tech.com/services/retargeting.js";
var elements = document.getElementsByClassName(IDENTIFIER);
if (!elements || elements.length === 0) {
return;
}
tarteaucitron.fallback([IDENTIFIER], "");
window.AdUpRetargeting = function(api) {
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
api.init();
api.setAccount(element.getAttribute("account"));
if (element.getAttribute("email")) {
api.setEmail(element.getAttribute("email"));
} else if (element.getAttribute("hashedEmail")) {
api.setHashedEmail(element.getAttribute("hashedEmail"));
}
if (element.getAttribute("product")) {
try {
api.setProduct(JSON.parse(element.getAttribute("product")));
} catch (e) {
api.setProduct(element.getAttribute("product"));
}
}
if (element.getAttribute("transaction")) {
try {
api.setTransaction(JSON.parse(element.getAttribute("transaction")));
} catch (e) {
api.setTransaction(element.getAttribute("transaction"));
}
}
if (element.getAttribute("demarkUser")) {
api.setDemarkUser();
} else if (element.getAttribute("demarkProducts")) {
api.setDemarkProducts();
}
if (element.getAttribute("conversionCode")) {
api.setConversionCode(element.getAttribute("conversionCode"));
}
if (element.getAttribute("device")) {
var setter = "set" + element.getAttribute("device").charAt(0).toUpperCase() + element.getAttribute("device").slice(1);
if (typeof api[setter] === 'function') {
api[setter]();
}
}
if (element.getAttribute("track")) {
var tracker = "track" + element.getAttribute("track").charAt(0).toUpperCase() + element.getAttribute("track").slice(1);
if (typeof api[tracker] === "function") {
api[tracker]();
} else {
api.trackHomepage();
}
}
};
};
tarteaucitron.addScript(API_URL);
}
};
// alexa // alexa
tarteaucitron.services.alexa = { tarteaucitron.services.alexa = {
"key": "alexa", "key": "alexa",
@ -853,8 +1046,7 @@ tarteaucitron.services.analytics = {
window.ga.q.push(arguments); window.ga.q.push(arguments);
}; };
window.ga.l = new Date(); window.ga.l = new Date();
tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000}); ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
ga('send', 'pageview'); ga('send', 'pageview');
if (typeof tarteaucitron.user.analyticsMore === 'function') { if (typeof tarteaucitron.user.analyticsMore === 'function') {
@ -871,12 +1063,16 @@ tarteaucitron.services.gtag = {
"name": "Google Analytics (gtag.js)", "name": "Google Analytics (gtag.js)",
"uri": "https://support.google.com/analytics/answer/6004245", "uri": "https://support.google.com/analytics/answer/6004245",
"needConsent": true, "needConsent": true,
"cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'], "cookies": (function () {
// Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
})(),
"js": function () { "js": function () {
"use strict"; "use strict";
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
tarteaucitron.addScript('//www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
function gtag(){dataLayer.push(arguments);} function gtag(){dataLayer.push(arguments);}
gtag('js', new Date()); gtag('js', new Date());
gtag('config', tarteaucitron.user.gtagUa); gtag('config', tarteaucitron.user.gtagUa);
@ -932,6 +1128,38 @@ tarteaucitron.services.googlemaps = {
} }
}; };
// googlemaps search
tarteaucitron.services.googlemapssearch = {
"key": "googlemapssearch",
"type": "api",
"name": "Google Maps Seard API",
"uri": "http://www.google.com/ads/preferences/",
"needConsent": true,
"cookies": ['nid'],
"js": function () {
"use strict";
tarteaucitron.fallback(['googlemapssearch'], function (x) {
var width = x.getAttribute("width"),
height = x.getAttribute("height"),
// url = x.getAttribute("data-url");
query = escape(x.getAttribute("data-search")),
key = x.getAttribute("data-api-key");
// return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
return '<iframe width="' + width +'" height="' + height + '" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
});
},
"fallback": function () {
"use strict";
var id = 'googlemapssearch';
tarteaucitron.fallback(['googlemapssearch'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// google tag manager // google tag manager
tarteaucitron.services.googletagmanager = { tarteaucitron.services.googletagmanager = {
"key": "googletagmanager", "key": "googletagmanager",
@ -968,6 +1196,26 @@ tarteaucitron.services.jsapi = {
} }
}; };
// recaptcha
tarteaucitron.services.recaptcha = {
"key": "recaptcha",
"type": "api",
"name": "reCAPTCHA",
"uri": "http://www.google.com/policies/privacy/",
"needConsent": true,
"cookies": ['nid'],
"js": function () {
"use strict";
tarteaucitron.fallback(['g-recaptcha'], '');
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
},
"fallback": function () {
"use strict";
var id = 'recaptcha';
tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
}
};
// linkedin // linkedin
tarteaucitron.services.linkedin = { tarteaucitron.services.linkedin = {
"key": "linkedin", "key": "linkedin",
@ -1848,3 +2096,72 @@ tarteaucitron.services.facebookpixel = {
} }
}; };
//Issuu
tarteaucitron.services.issuu = {
"key": "issuu",
"type": "other",
"name": "Issuu",
"uri": "https://issuu.com/legal/privacy",
"needConsent": true,
"cookies": ['__qca', 'iutk', 'mc'],
"js": function () {
"use strict";
tarteaucitron.fallback(['issuu_player'], function (x) {
var issuu_id = x.getAttribute("issuuID"),
issuu_width = x.getAttribute("width"),
frame_width = 'width=',
issuu_height = x.getAttribute("height"),
frame_height = 'height=',
issuu_frame;
if (issuu_id === undefined) {
return "";
}
if (issuu_width !== undefined) {
frame_width += '"' + issuu_width + '" ';
} else {
frame_width += '"" ';
}
if (issuu_height !== undefined) {
frame_height += '"' + issuu_height + '" ';
} else {
frame_height += '"" ';
}
issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
return issuu_frame;
});
},
"fallback": function () {
"use strict";
var id = 'issuu';
tarteaucitron.fallback(['issuu_player'], function (elem) {
elem.style.width = elem.getAttribute('width') + 'px';
elem.style.height = elem.getAttribute('height') + 'px';
return tarteaucitron.engage(id);
});
}
};
// webmecanik
tarteaucitron.services.webmecanik = {
"key": "webmecanik",
"type": "analytic",
"name": "Webmecanik",
"uri": "https://webmecanik.com/tos",
"needConsent": true,
"cookies": ['mtc_id', 'mtc_sid'],
"js": function () {
"use strict";
if (tarteaucitron.user.webmecanikurl === undefined) {
return;
}
window['WebmecanikTrackingObject'] = 'mt';
window['mt'] = window['mt'] || function() {
(window['mt'].q = window['mt'].q || []).push(arguments);
};
tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
mt('send', 'pageview');
});
}
};