diff --git a/README.md b/README.md index 225bd2b..7ffd4d5 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Bonus: - Google+ - Linkedin - Pinterest +- Shareaholic - Twitter ## Visitors outside the EU diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 5634cb9..4920192 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1,4 +1,31 @@ -/*global tarteaucitron, ga*/ +/*global tarteaucitron, ga, Shareaholic*/ + +// shareaholic +tarteaucitron.services.shareaholic = { + "key": "shareaholic", + "type": "social", + "name": "Shareaholic", + "uri": "https://shareaholic.com/privacy/choices", + "needConsent": true, + "js": function () { + "use strict"; + if (tarteaucitron.user.shareaholicSiteId === undefined) { + return; + } + tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () { + try { + Shareaholic.init(tarteaucitron.user.shareaholicSiteId); + } catch (e) {} + }); + }, + "lang": { + "en": "Shareaholic use cookie and tracking technologies to provide its services.

Shareaholic provide a policy about the use of tracking technologies and cookies.", + "fr": "Shareaholic utilise des cookies et des technologies de suivi afin de fournir ses services.

Shareaholic met à disposition une politique sur l'utilisation de ses systèmes de suivi et l'utilisation des cookies.", + "de": "", + "es": "", + "it": "" + } +}; // addthis tarteaucitron.services.addthis = {