Add an option to display a link to the privacy url
"privacyUrl": "https://example.com/privacy-policy",
This commit is contained in:
parent
af76f8415a
commit
a31264e13d
87
README.md
87
README.md
|
|
@ -20,92 +20,6 @@ Bonus:
|
||||||
- Load service when user click on Allow (without reload of the page),
|
- Load service when user click on Allow (without reload of the page),
|
||||||
- Incorporate a fallback system (display a link instead of social button and a static banner instead of advertising).
|
- Incorporate a fallback system (display a link instead of social button and a static banner instead of advertising).
|
||||||
|
|
||||||
## Supported services
|
|
||||||
* Advertising network
|
|
||||||
* Ad Up Technology (ads)
|
|
||||||
* Ad Up Technology (conversion)
|
|
||||||
* Ad Up Technology (retargeting)
|
|
||||||
* Amazon
|
|
||||||
* Clicmanager
|
|
||||||
* Criteo
|
|
||||||
* FERank (pub)
|
|
||||||
* Google Adsense
|
|
||||||
* Google Adsense Search (form)
|
|
||||||
* Google Adsense Search (result)
|
|
||||||
* Google Adwords (conversion)
|
|
||||||
* Google Adwords (remarketing)
|
|
||||||
* Pubdirecte
|
|
||||||
* Twenga
|
|
||||||
* vShop
|
|
||||||
|
|
||||||
* APIs
|
|
||||||
* Google jsapi
|
|
||||||
* Google Maps
|
|
||||||
* Google Tag Manager
|
|
||||||
* Timeline JS
|
|
||||||
* Typekit (adobe)
|
|
||||||
|
|
||||||
* Audience measurement
|
|
||||||
* Alexa
|
|
||||||
* Clicky
|
|
||||||
* Crazyegg
|
|
||||||
* FERank
|
|
||||||
* Get+
|
|
||||||
* Google Analytics (ga.js)
|
|
||||||
* Google Analytics (universal)
|
|
||||||
* StatCounter
|
|
||||||
* VisualRevenue
|
|
||||||
* Xiti
|
|
||||||
|
|
||||||
* Comment
|
|
||||||
* Disqus
|
|
||||||
* Facebook (commentaire)
|
|
||||||
|
|
||||||
* Marketing Automation & CRM
|
|
||||||
* Mautic
|
|
||||||
* Webmecanik Automation
|
|
||||||
* Koban
|
|
||||||
|
|
||||||
* Social network
|
|
||||||
* AddThis
|
|
||||||
* AddToAny (feed)
|
|
||||||
* AddToAny (share)
|
|
||||||
* eKomi
|
|
||||||
* Facebook
|
|
||||||
* Facebook (like box)
|
|
||||||
* Google+
|
|
||||||
* Google+ (badge)
|
|
||||||
* Linkedin
|
|
||||||
* Pinterest
|
|
||||||
* Shareaholic
|
|
||||||
* ShareThis
|
|
||||||
* Twitter
|
|
||||||
* Twitter (cards)
|
|
||||||
* Twitter (timelines)
|
|
||||||
|
|
||||||
* Support
|
|
||||||
* UserVoice
|
|
||||||
* Zopim
|
|
||||||
|
|
||||||
* Video
|
|
||||||
* Calameo
|
|
||||||
* Dailymotion
|
|
||||||
* Prezi
|
|
||||||
* SlideShare
|
|
||||||
* Vimeo
|
|
||||||
* YouTube
|
|
||||||
* Issuu
|
|
||||||
|
|
||||||
|
|
||||||
## Visitors outside the EU
|
|
||||||
In PHP for example, you can bypass all the script by setting this var `tarteaucitron.user.bypass = true;` if the visitor is not in the EU.
|
|
||||||
|
|
||||||
## Tested on
|
|
||||||
- IE 6+
|
|
||||||
- FF 3+
|
|
||||||
- Safari 4+
|
|
||||||
- Chrome 14+
|
|
||||||
- Opera 10+
|
|
||||||
|
|
||||||
# Installation guide
|
# Installation guide
|
||||||
[Visit opt-out.ferank.eu](https://opt-out.ferank.eu/)
|
[Visit opt-out.ferank.eu](https://opt-out.ferank.eu/)
|
||||||
|
|
@ -129,6 +43,7 @@ tarteaucitron.init({
|
||||||
"removeCredit": false, /* supprimer le lien vers la source ? */
|
"removeCredit": false, /* supprimer le lien vers la source ? */
|
||||||
"handleBrowserDNTRequest": false, /* Répondre au DoNotTrack du navigateur ?*/
|
"handleBrowserDNTRequest": false, /* Répondre au DoNotTrack du navigateur ?*/
|
||||||
"moreInfoLink": true,
|
"moreInfoLink": true,
|
||||||
|
"privacyUrl": "",
|
||||||
//"cookieDomain": ".my-multisite-domaine.fr" /* Nom de domaine sur lequel sera posé le cookie - pour les multisites / sous-domaines - Facultatif */
|
//"cookieDomain": ".my-multisite-domaine.fr" /* Nom de domaine sur lequel sera posé le cookie - pour les multisites / sous-domaines - Facultatif */
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ h2#tarteaucitronCookiesNumberBis {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize {
|
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPersonalize, #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
|
||||||
background: #008300;
|
background: #008300;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -459,7 +459,7 @@ h2#tarteaucitronCookiesNumberBis {
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tarteaucitronAlertBig #tarteaucitronCloseAlert {
|
#tarteaucitronAlertBig #tarteaucitronCloseAlert, #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, přijmout vše",
|
"acceptAll": "OK, přijmout vše",
|
||||||
"close": "Zavřít",
|
"close": "Zavřít",
|
||||||
|
|
||||||
|
"privacyUrl": "Zásady ochrany osobních údajů",
|
||||||
|
|
||||||
"all": "Nastavení všech služeb",
|
"all": "Nastavení všech služeb",
|
||||||
|
|
||||||
"info": "Chrání tvé soukromí",
|
"info": "Chrání tvé soukromí",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, akzeptiere alles",
|
"acceptAll": "OK, akzeptiere alles",
|
||||||
"close": "Beenden",
|
"close": "Beenden",
|
||||||
|
|
||||||
|
"privacyUrl": "Datenschutz-Bestimmungen",
|
||||||
|
|
||||||
"all": "Präferenz für alle Dienste",
|
"all": "Präferenz für alle Dienste",
|
||||||
|
|
||||||
"info": "Schutz der Privatsphäre",
|
"info": "Schutz der Privatsphäre",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, accept all",
|
"acceptAll": "OK, accept all",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
|
|
||||||
|
"privacyUrl": "Privacy policy",
|
||||||
|
|
||||||
"all": "Preference for all services",
|
"all": "Preference for all services",
|
||||||
|
|
||||||
"info": "Protecting your privacy",
|
"info": "Protecting your privacy",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, aceptar todas",
|
"acceptAll": "OK, aceptar todas",
|
||||||
"close": "Cerrar",
|
"close": "Cerrar",
|
||||||
|
|
||||||
|
"privacyUrl": "Política de privacidad",
|
||||||
|
|
||||||
"all": "Ajustes para todos los servicios",
|
"all": "Ajustes para todos los servicios",
|
||||||
|
|
||||||
"info": "Protegiendo tu privacidad",
|
"info": "Protegiendo tu privacidad",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"personalize": "Personnaliser",
|
"personalize": "Personnaliser",
|
||||||
"close": "Fermer",
|
"close": "Fermer",
|
||||||
|
|
||||||
|
"privacyUrl": "Politique de confidentialité",
|
||||||
|
|
||||||
"all": "Préférence pour tous les services",
|
"all": "Préférence pour tous les services",
|
||||||
|
|
||||||
"info": "Protection de votre vie privée",
|
"info": "Protection de votre vie privée",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"personalize": "Personalizza",
|
"personalize": "Personalizza",
|
||||||
"close": "Chiudi",
|
"close": "Chiudi",
|
||||||
|
|
||||||
|
"privacyUrl": "Politica sulla riservatezza",
|
||||||
|
|
||||||
"all": "Preferenze per tutti i servizi",
|
"all": "Preferenze per tutti i servizi",
|
||||||
|
|
||||||
"info": "Tutela della privacy",
|
"info": "Tutela della privacy",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, accepteer alle",
|
"acceptAll": "OK, accepteer alle",
|
||||||
"close": "Sluit",
|
"close": "Sluit",
|
||||||
|
|
||||||
|
"privacyUrl": "Privacybeleid",
|
||||||
|
|
||||||
"all": "Voorkeur voor alle diensten",
|
"all": "Voorkeur voor alle diensten",
|
||||||
|
|
||||||
"info": "Bescherming van uw privacy",
|
"info": "Bescherming van uw privacy",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "OK, akceptuję wszystko",
|
"acceptAll": "OK, akceptuję wszystko",
|
||||||
"close": "zamknij",
|
"close": "zamknij",
|
||||||
|
|
||||||
|
"privacyUrl": "Polityka prywatności",
|
||||||
|
|
||||||
"all": "Preferencja dla wszystkich usług",
|
"all": "Preferencja dla wszystkich usług",
|
||||||
|
|
||||||
"info": "Ochrona prywatności",
|
"info": "Ochrona prywatności",
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@ tarteaucitron.lang = {
|
||||||
"personalize": "Personalizar",
|
"personalize": "Personalizar",
|
||||||
"acceptAll": "OK, aceitar tudo",
|
"acceptAll": "OK, aceitar tudo",
|
||||||
"close": "Fechar",
|
"close": "Fechar",
|
||||||
|
|
||||||
|
"privacyUrl": "Política de Privacidade",
|
||||||
|
|
||||||
"all": "Definições dos serviços",
|
"all": "Definições dos serviços",
|
||||||
"info": "Proteger sua privacidade",
|
"info": "Proteger sua privacidade",
|
||||||
"disclaimer": "Ao aceitar os serviços terceiros, você aceita o uso de cookies em conjunto de tecnologias de rastreamento que lhe são necessárias para funcionar",
|
"disclaimer": "Ao aceitar os serviços terceiros, você aceita o uso de cookies em conjunto de tecnologias de rastreamento que lhe são necessárias para funcionar",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ tarteaucitron.lang = {
|
||||||
"acceptAll": "Ок, все активировать",
|
"acceptAll": "Ок, все активировать",
|
||||||
"close": "Закрыть",
|
"close": "Закрыть",
|
||||||
|
|
||||||
|
"privacyUrl": "Политика конфиденциальности",
|
||||||
|
|
||||||
"all": "Преференция всем сервисам",
|
"all": "Преференция всем сервисам",
|
||||||
|
|
||||||
"info": "Защитить вашу конфиденциальность",
|
"info": "Защитить вашу конфиденциальность",
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
|
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
"version": 20180828003,
|
"version": 20180829,
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
@ -209,7 +209,8 @@ var tarteaucitron = {
|
||||||
"cookieslist": true,
|
"cookieslist": true,
|
||||||
"handleBrowserDNTRequest": false,
|
"handleBrowserDNTRequest": false,
|
||||||
"AcceptAllCta" : false,
|
"AcceptAllCta" : false,
|
||||||
"moreInfoLink": true
|
"moreInfoLink": true,
|
||||||
|
"privacyUrl": ""
|
||||||
},
|
},
|
||||||
params = tarteaucitron.parameters;
|
params = tarteaucitron.parameters;
|
||||||
|
|
||||||
|
|
@ -314,6 +315,13 @@ var tarteaucitron = {
|
||||||
html += ' <button id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.openPanel();">';
|
html += ' <button id="tarteaucitronPersonalize" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||||
html += ' ' + tarteaucitron.lang.personalize;
|
html += ' ' + tarteaucitron.lang.personalize;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
||||||
|
if (tarteaucitron.parameters.privacyUrl !== "") {
|
||||||
|
html += ' <button id="tarteaucitronPrivacyUrl" onclick="document.location = tarteaucitron.parameters.privacyUrl">';
|
||||||
|
html += ' ' + tarteaucitron.lang.privacyUrl;
|
||||||
|
html += ' </button>';
|
||||||
|
}
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
} else {
|
} else {
|
||||||
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
html += '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
|
||||||
|
|
@ -326,6 +334,13 @@ var tarteaucitron = {
|
||||||
html += ' <button id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">';
|
html += ' <button id="tarteaucitronCloseAlert" onclick="tarteaucitron.userInterface.openPanel();">';
|
||||||
html += ' ' + tarteaucitron.lang.personalize;
|
html += ' ' + tarteaucitron.lang.personalize;
|
||||||
html += ' </button>';
|
html += ' </button>';
|
||||||
|
|
||||||
|
if (tarteaucitron.parameters.privacyUrl !== "") {
|
||||||
|
html += ' <button id="tarteaucitronPrivacyUrl" onclick="document.location = tarteaucitron.parameters.privacyUrl">';
|
||||||
|
html += ' ' + tarteaucitron.lang.privacyUrl;
|
||||||
|
html += ' </button>';
|
||||||
|
}
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<div id="tarteaucitronPercentage"></div>';
|
html += '<div id="tarteaucitronPercentage"></div>';
|
||||||
}
|
}
|
||||||
|
|
@ -462,7 +477,7 @@ var tarteaucitron = {
|
||||||
cookie = tarteaucitron.cookie.read(),
|
cookie = tarteaucitron.cookie.read(),
|
||||||
hostname = document.location.hostname,
|
hostname = document.location.hostname,
|
||||||
hostRef = document.referrer.split('/')[2],
|
hostRef = document.referrer.split('/')[2],
|
||||||
isNavigating = (hostRef === hostname) ? true : false,
|
isNavigating = (hostRef === hostname && window.location.href !== tarteaucitron.parameters.privacyUrl) ? true : false,
|
||||||
isAutostart = (!service.needConsent) ? true : false,
|
isAutostart = (!service.needConsent) ? true : false,
|
||||||
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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue