tarteaucitron.services.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit*/
  2. /*jslint regexp: true, nomen: true*/
  3. // addthis
  4. tarteaucitron.services.addthis = {
  5. "key": "addthis",
  6. "type": "social",
  7. "name": "AddThis",
  8. "uri": "http://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  9. "needConsent": true,
  10. "cookies": ['__atuvc', '__atuvs'],
  11. "js": function () {
  12. "use strict";
  13. if (tarteaucitron.user.addthisPubId === undefined) {
  14. return;
  15. }
  16. tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
  17. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  18. },
  19. "fallback": function () {
  20. "use strict";
  21. var id = 'addthis';
  22. tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
  23. }
  24. };
  25. // addtoanyfeed
  26. tarteaucitron.services.addtoanyfeed = {
  27. "key": "addtoanyfeed",
  28. "type": "social",
  29. "name": "AddToAny (feed)",
  30. "uri": "https://www.addtoany.com/privacy",
  31. "needConsent": true,
  32. "cookies": [],
  33. "js": function () {
  34. "use strict";
  35. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  36. return;
  37. }
  38. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  39. window.a2a_config = window.a2a_config || {};
  40. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  41. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  42. },
  43. "fallback": function () {
  44. "use strict";
  45. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  46. }
  47. };
  48. // addtoanyshare
  49. tarteaucitron.services.addtoanyshare = {
  50. "key": "addtoanyshare",
  51. "type": "social",
  52. "name": "AddToAny (share)",
  53. "uri": "https://www.addtoany.com/privacy",
  54. "needConsent": true,
  55. "cookies": [],
  56. "js": function () {
  57. "use strict";
  58. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  59. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  60. },
  61. "fallback": function () {
  62. "use strict";
  63. var id = 'addtoanyshare';
  64. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  65. }
  66. };
  67. // alexa
  68. tarteaucitron.services.alexa = {
  69. "key": "alexa",
  70. "type": "analytic",
  71. "name": "Alexa",
  72. "uri": "http://www.alexa.com/help/privacy",
  73. "needConsent": true,
  74. "cookies": ['__asc', '__auc'],
  75. "js": function () {
  76. "use strict";
  77. if (tarteaucitron.user.alexaAccountID === undefined) {
  78. return;
  79. }
  80. window._atrk_opts = {
  81. atrk_acct: tarteaucitron.user.alexaAccountID,
  82. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  83. dynamic: true
  84. };
  85. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  86. }
  87. };
  88. // clicky
  89. tarteaucitron.services.clicky = {
  90. "key": "clicky",
  91. "type": "analytic",
  92. "name": "Clicky",
  93. "uri": "https://clicky.com/terms",
  94. "needConsent": true,
  95. "cookies": ['_jsuid', '_eventqueue', '_referrer_og', '_utm_og', '_first_pageview', 'clicky_olark', 'no_trackyy_' + tarteaucitron.user.clickyId, 'unpoco_' + tarteaucitron.user.clickyId, 'heatmaps_g2g_' + tarteaucitron.user.clickyId],
  96. "js": function () {
  97. "use strict";
  98. if (tarteaucitron.user.clickyId === undefined) {
  99. return;
  100. }
  101. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  102. if (typeof clicky.init === 'function') {
  103. clicky.init(tarteaucitron.user.clickyId);
  104. }
  105. if (typeof tarteaucitron.user.clickyMore === 'function') {
  106. tarteaucitron.user.clickyMore();
  107. }
  108. });
  109. }
  110. };
  111. // criteo
  112. tarteaucitron.services.criteo = {
  113. "key": "criteo",
  114. "type": "ads",
  115. "name": "Criteo",
  116. "uri": "http://www.criteo.com/privacy/",
  117. "needConsent": true,
  118. "cookies": [],
  119. "js": function () {
  120. document.MAX_ct0 = '';
  121. var criteoUri = '//cas.criteo.com/delivery/ajs.php?',
  122. divId = 'criteo_' + tarteaucitron.user.criteoZoneId;
  123. if (tarteaucitron.user.criteoZoneId === undefined || document.getElementById(divId) === null) {
  124. return;
  125. }
  126. document.getElementById(divId).innerHTML = '';
  127. criteoUri += 'zoneid=' + tarteaucitron.user.criteoZoneId;
  128. criteoUri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  129. criteoUri += '&loc=' + encodeURI(window.location);
  130. criteoUri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  131. criteoUri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  132. criteoUri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  133. criteoUri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  134. criteoUri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  135. criteoUri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  136. criteoUri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  137. tarteaucitron.makeAsync.init(criteoUri, divId);
  138. },
  139. "fallback": function () {
  140. "use strict";
  141. var id = 'criteo',
  142. divId = id + '_' + tarteaucitron.user.criteoZoneId;
  143. if (document.getElementById(divId)) {
  144. document.getElementById(divId).innerHTML = tarteaucitron.engage(id);
  145. }
  146. }
  147. };
  148. // dailymotion
  149. tarteaucitron.services.dailymotion = {
  150. "key": "dailymotion",
  151. "type": "video",
  152. "name": "Dailymotion",
  153. "uri": "http://www.dailymotion.com/legal/privacy",
  154. "needConsent": true,
  155. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  156. "js": function () {
  157. "use strict";
  158. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  159. var video_id = x.getAttribute("videoID"),
  160. video_width = x.getAttribute("width"),
  161. frame_width = 'width=',
  162. video_height = x.getAttribute("height"),
  163. frame_height = 'height=',
  164. video_frame,
  165. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  166. if (video_id === undefined) {
  167. return "";
  168. }
  169. if (video_width !== undefined) {
  170. frame_width += '"' + video_width + '" ';
  171. } else {
  172. frame_width += '"" ';
  173. }
  174. if (video_height !== undefined) {
  175. frame_height += '"' + video_height + '" ';
  176. } else {
  177. frame_height += '"" ';
  178. }
  179. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  180. return video_frame;
  181. });
  182. },
  183. "fallback": function () {
  184. "use strict";
  185. var id = 'dailymotion';
  186. tarteaucitron.fallback(['dailymotion_player'], tarteaucitron.engage(id));
  187. }
  188. };
  189. // disqus
  190. tarteaucitron.services.disqus = {
  191. "key": "disqus",
  192. "type": "comment",
  193. "name": "Disqus",
  194. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  195. "needConsent": true,
  196. "cookies": [],
  197. "js": function () {
  198. "use strict";
  199. if (tarteaucitron.user.disqusShortname === undefined) {
  200. return;
  201. }
  202. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  203. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  204. },
  205. "fallback": function () {
  206. "use strict";
  207. var id = 'disqus';
  208. if (document.getElementById('disqus_thread')) {
  209. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  210. }
  211. }
  212. };
  213. // facebook
  214. tarteaucitron.services.facebook = {
  215. "key": "facebook",
  216. "type": "social",
  217. "name": "Facebook",
  218. "uri": "https://www.facebook.com/help/cookies/",
  219. "needConsent": true,
  220. "cookies": [],
  221. "js": function () {
  222. "use strict";
  223. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  224. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  225. },
  226. "fallback": function () {
  227. "use strict";
  228. var id = 'facebook';
  229. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  230. }
  231. };
  232. // facebooklikebox
  233. tarteaucitron.services.facebooklikebox = {
  234. "key": "facebooklikebox",
  235. "type": "social",
  236. "name": "Facebook (like box)",
  237. "uri": "https://www.facebook.com/help/cookies/",
  238. "needConsent": true,
  239. "cookies": [],
  240. "js": function () {
  241. "use strict";
  242. tarteaucitron.fallback(['fb-like-box'], '');
  243. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  244. },
  245. "fallback": function () {
  246. "use strict";
  247. var id = 'facebooklikebox';
  248. tarteaucitron.fallback(['fb-like-box'], tarteaucitron.engage(id));
  249. }
  250. };
  251. // facebookcomment
  252. tarteaucitron.services.facebookcomment = {
  253. "key": "facebookcomment",
  254. "type": "comment",
  255. "name": "Facebook (commentaire)",
  256. "uri": "https://www.facebook.com/help/cookies/",
  257. "needConsent": true,
  258. "cookies": [],
  259. "js": function () {
  260. "use strict";
  261. tarteaucitron.fallback(['fb-comments'], '');
  262. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  263. },
  264. "fallback": function () {
  265. "use strict";
  266. var id = 'facebookcomment';
  267. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  268. }
  269. };
  270. // ferank
  271. tarteaucitron.services.ferank = {
  272. "key": "ferank",
  273. "type": "analytic",
  274. "name": "FERank",
  275. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  276. "needConsent": false,
  277. "cookies": [],
  278. "js": function () {
  279. "use strict";
  280. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  281. if (typeof tarteaucitron.user.ferankMore === 'function') {
  282. tarteaucitron.user.ferankMore();
  283. }
  284. });
  285. }
  286. };
  287. // ferank pub
  288. tarteaucitron.services.ferankpub = {
  289. "key": "ferankpub",
  290. "type": "ads",
  291. "name": "FERank (pub)",
  292. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  293. "needConsent": false,
  294. "cookies": [],
  295. "js": function () {
  296. "use strict";
  297. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  298. },
  299. "fallback": function () {
  300. "use strict";
  301. var id = 'ferankpub';
  302. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  303. }
  304. };
  305. // google+
  306. tarteaucitron.services.gplus = {
  307. "key": "gplus",
  308. "type": "social",
  309. "name": "Google+",
  310. "uri": "http://www.google.fr/intl/policies/privacy/",
  311. "needConsent": true,
  312. "cookies": [],
  313. "js": function () {
  314. "use strict";
  315. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  316. },
  317. "fallback": function () {
  318. "use strict";
  319. var id = 'gplus';
  320. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  321. }
  322. };
  323. // google+ badge
  324. tarteaucitron.services.gplusbadge = {
  325. "key": "gplusbadge",
  326. "type": "social",
  327. "name": "Google+ (badge)",
  328. "uri": "http://www.google.fr/intl/policies/privacy/",
  329. "needConsent": true,
  330. "cookies": [],
  331. "js": function () {
  332. "use strict";
  333. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  334. },
  335. "fallback": function () {
  336. "use strict";
  337. var id = 'gplusbadge';
  338. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  339. }
  340. };
  341. // google adsense
  342. tarteaucitron.services.adsense = {
  343. "key": "adsense",
  344. "type": "ads",
  345. "name": "Adsense (Google)",
  346. "uri": "http://www.google.com/ads/preferences/",
  347. "needConsent": true,
  348. "cookies": [],
  349. "js": function () {
  350. "use strict";
  351. tarteaucitron.addScript('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  352. },
  353. "fallback": function () {
  354. "use strict";
  355. var id = 'adsense';
  356. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  357. }
  358. };
  359. // googleadwordsconversion
  360. tarteaucitron.services.googleadwordsconversion = {
  361. "key": "googleadwordsconversion",
  362. "type": "ads",
  363. "name": "Google Adwords (conversion)",
  364. "uri": "https://www.google.com/settings/ads",
  365. "needConsent": true,
  366. "cookies": [],
  367. "js": function () {
  368. "use strict";
  369. if (tarteaucitron.user.adwordsconversionId === undefined) {
  370. return;
  371. }
  372. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  373. window.google_trackConversion({
  374. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  375. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  376. google_custom_params: {
  377. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  378. parameter2: tarteaucitron.user.adwordsconversionCustom2
  379. }
  380. });
  381. });
  382. }
  383. };
  384. // googleadwordsremarketing
  385. tarteaucitron.services.googleadwordsremarketing = {
  386. "key": "googleadwordsremarketing",
  387. "type": "ads",
  388. "name": "Google Adwords (remarketing)",
  389. "uri": "https://www.google.com/settings/ads",
  390. "needConsent": true,
  391. "cookies": [],
  392. "js": function () {
  393. "use strict";
  394. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  395. return;
  396. }
  397. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  398. window.google_trackConversion({
  399. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  400. google_remarketing_only: true
  401. });
  402. });
  403. }
  404. };
  405. // google analytics (old)
  406. tarteaucitron.services.gajs = {
  407. "key": "gajs",
  408. "type": "analytic",
  409. "name": "Google Analytics (ga.js)",
  410. "uri": "https://support.google.com/analytics/answer/6004245",
  411. "needConsent": true,
  412. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  413. "js": function () {
  414. "use strict";
  415. window._gaq = window._gaq || [];
  416. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  417. window._gaq.push(['_trackPageview']);
  418. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  419. if (typeof tarteaucitron.user.gajsMore === 'function') {
  420. tarteaucitron.user.gajsMore();
  421. }
  422. });
  423. }
  424. };
  425. // google analytics
  426. tarteaucitron.services.analytics = {
  427. "key": "analytics",
  428. "type": "analytic",
  429. "name": "Google Analytics (universal)",
  430. "uri": "https://support.google.com/analytics/answer/6004245",
  431. "needConsent": true,
  432. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  433. "js": function () {
  434. "use strict";
  435. window.GoogleAnalyticsObject = 'ga';
  436. window.ga = window.ga || function () {
  437. window.ga.q = window.ga.q || [];
  438. window.ga.q.push(arguments);
  439. };
  440. window.ga.l = new Date();
  441. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  442. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  443. ga('send', 'pageview');
  444. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  445. tarteaucitron.user.analyticsMore();
  446. }
  447. });
  448. }
  449. };
  450. // google maps
  451. tarteaucitron.services.googlemaps = {
  452. "key": "googlemaps",
  453. "type": "api",
  454. "name": "Google Maps",
  455. "uri": "http://www.google.com/ads/preferences/",
  456. "needConsent": true,
  457. "cookies": [],
  458. "js": function () {
  459. "use strict";
  460. if (tarteaucitron.user.googlemapsApiKey === undefined) {
  461. return;
  462. }
  463. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tarteaucitron_googlemaps&key=' + tarteaucitron.user.googlemapsApiKey);
  464. },
  465. "fallback": function () {
  466. "use strict";
  467. var id = 'googlemaps';
  468. if (document.getElementById('tac_map-canvas')) {
  469. document.getElementById('tac_map-canvas').innerHTML = tarteaucitron.engage(id);
  470. }
  471. }
  472. };
  473. // google tag manager
  474. tarteaucitron.services.googletagmanager = {
  475. "key": "googletagmanager",
  476. "type": "api",
  477. "name": "Google Tag Manager",
  478. "uri": "http://www.google.com/ads/preferences/",
  479. "needConsent": true,
  480. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  481. "js": function () {
  482. "use strict";
  483. if (tarteaucitron.user.googletagmanagerId === undefined) {
  484. return;
  485. }
  486. window.dataLayer = window.dataLayer || [];
  487. window.dataLayer.push({
  488. 'gtm.start': new Date().getTime(),
  489. event: 'gtm.js'
  490. });
  491. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  492. }
  493. };
  494. // jsapi
  495. tarteaucitron.services.jsapi = {
  496. "key": "jsapi",
  497. "type": "api",
  498. "name": "Google jsapi",
  499. "uri": "http://www.google.com/policies/privacy/",
  500. "needConsent": true,
  501. "cookies": [],
  502. "js": function () {
  503. "use strict";
  504. tarteaucitron.addScript('//www.google.com/jsapi');
  505. }
  506. };
  507. // linkedin
  508. tarteaucitron.services.linkedin = {
  509. "key": "linkedin",
  510. "type": "social",
  511. "name": "Linkedin",
  512. "uri": "https://www.linkedin.com/legal/cookie_policy",
  513. "needConsent": true,
  514. "cookies": [],
  515. "js": function () {
  516. "use strict";
  517. tarteaucitron.fallback(['tacLinkedin'], '');
  518. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  519. },
  520. "fallback": function () {
  521. "use strict";
  522. var id = 'linkedin';
  523. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  524. }
  525. };
  526. // pinterest
  527. tarteaucitron.services.pinterest = {
  528. "key": "pinterest",
  529. "type": "social",
  530. "name": "Pinterest",
  531. "uri": "https://about.pinterest.com/privacy-policy",
  532. "needConsent": true,
  533. "cookies": [],
  534. "js": function () {
  535. "use strict";
  536. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  537. }
  538. };
  539. // shareaholic
  540. tarteaucitron.services.shareaholic = {
  541. "key": "shareaholic",
  542. "type": "social",
  543. "name": "Shareaholic",
  544. "uri": "https://shareaholic.com/privacy/choices",
  545. "needConsent": true,
  546. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  547. "js": function () {
  548. "use strict";
  549. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  550. return;
  551. }
  552. tarteaucitron.fallback(['shareaholic-canvas'], '');
  553. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  554. try {
  555. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  556. } catch (e) {}
  557. });
  558. },
  559. "fallback": function () {
  560. "use strict";
  561. var id = 'shareaholic';
  562. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  563. }
  564. };
  565. // sharethis
  566. tarteaucitron.services.sharethis = {
  567. "key": "sharethis",
  568. "type": "social",
  569. "name": "ShareThis",
  570. "uri": "http://www.sharethis.com/legal/privacy/",
  571. "needConsent": true,
  572. "cookies": ['__unam'],
  573. "js": function () {
  574. "use strict";
  575. if (tarteaucitron.user.sharethisPublisher === undefined) {
  576. return;
  577. }
  578. var switchTo5x = true,
  579. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  580. tarteaucitron.fallback(['tacSharethis'], '');
  581. tarteaucitron.addScript(uri, '', function () {
  582. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  583. });
  584. },
  585. "fallback": function () {
  586. "use strict";
  587. var id = 'sharethis';
  588. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  589. }
  590. };
  591. // typekit
  592. tarteaucitron.services.typekit = {
  593. "key": "typekit",
  594. "type": "api",
  595. "name": "Typekit (adobe)",
  596. "uri": "http://www.adobe.com/fr/privacy.html",
  597. "needConsent": true,
  598. "cookies": [],
  599. "js": function () {
  600. "use strict";
  601. if (tarteaucitron.user.typekitId === undefined) {
  602. return;
  603. }
  604. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  605. try {
  606. Typekit.load();
  607. } catch (e) {}
  608. });
  609. }
  610. };
  611. // twitter
  612. tarteaucitron.services.twitter = {
  613. "key": "twitter",
  614. "type": "social",
  615. "name": "Twitter",
  616. "uri": "https://support.twitter.com/articles/20170514",
  617. "needConsent": true,
  618. "cookies": [],
  619. "js": function () {
  620. "use strict";
  621. tarteaucitron.fallback(['tacTwitter'], '');
  622. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  623. },
  624. "fallback": function () {
  625. "use strict";
  626. var id = 'twitter';
  627. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  628. }
  629. };
  630. // user voice
  631. tarteaucitron.services.uservoice = {
  632. "key": "uservoice",
  633. "type": "support",
  634. "name": "UserVoice",
  635. "uri": "https://www.uservoice.com/privacy/",
  636. "needConsent": true,
  637. "cookies": [],
  638. "js": function () {
  639. "use strict";
  640. if (tarteaucitron.user.userVoiceApi === undefined) {
  641. return;
  642. }
  643. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  644. }
  645. };
  646. // vimeo
  647. tarteaucitron.services.vimeo = {
  648. "key": "vimeo",
  649. "type": "video",
  650. "name": "Vimeo",
  651. "uri": "http://vimeo.com/privacy",
  652. "needConsent": true,
  653. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  654. "js": function () {
  655. "use strict";
  656. tarteaucitron.fallback(['vimeo_player'], function (x) {
  657. var video_id = x.getAttribute("videoID"),
  658. video_width = x.getAttribute("width"),
  659. frame_width = 'width=',
  660. video_height = x.getAttribute("height"),
  661. frame_height = 'height=',
  662. video_frame;
  663. if (video_id === undefined) {
  664. return "";
  665. }
  666. if (video_width !== undefined) {
  667. frame_width += '"' + video_width + '" ';
  668. } else {
  669. frame_width += '"" ';
  670. }
  671. if (video_height !== undefined) {
  672. frame_height += '"' + video_height + '" ';
  673. } else {
  674. frame_height += '"" ';
  675. }
  676. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  677. return video_frame;
  678. });
  679. },
  680. "fallback": function () {
  681. "use strict";
  682. var id = 'vimeo';
  683. tarteaucitron.fallback(['vimeo_player'], tarteaucitron.engage(id));
  684. }
  685. };
  686. // visualrevenue
  687. tarteaucitron.services.visualrevenue = {
  688. "key": "visualrevenue",
  689. "type": "analytic",
  690. "name": "VisualRevenue",
  691. "uri": "http://www.outbrain.com/legal/privacy-713/",
  692. "needConsent": true,
  693. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  694. "js": function () {
  695. "use strict";
  696. if (tarteaucitron.user.visualrevenueId === undefined) {
  697. return;
  698. }
  699. window._vrq = window._vrq || [];
  700. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  701. window._vrq.push(['automate', true]);
  702. window._vrq.push(['track', function () {}]);
  703. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  704. }
  705. };
  706. // xiti
  707. tarteaucitron.services.xiti = {
  708. "key": "xiti",
  709. "type": "analytic",
  710. "name": "Xiti",
  711. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  712. "needConsent": true,
  713. "cookies": [],
  714. "js": function () {
  715. "use strict";
  716. if (tarteaucitron.user.xitiId === undefined) {
  717. return;
  718. }
  719. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  720. Xt_r,
  721. Xt_h,
  722. Xt_i,
  723. Xt_s,
  724. div = document.createElement('div');
  725. try {
  726. Xt_r = top.document.referrer;
  727. } catch (e) {
  728. Xt_r = document.referrer;
  729. }
  730. Xt_h = new Date();
  731. Xt_i = '<img style="display:none" border="0" alt="" ';
  732. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  733. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  734. if (parseFloat(navigator.appVersion) >= 4) {
  735. Xt_s = screen;
  736. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  737. }
  738. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  739. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  740. if (typeof tarteaucitron.user.xitiMore === 'function') {
  741. tarteaucitron.user.xitiMore();
  742. }
  743. }
  744. };
  745. // youtube
  746. tarteaucitron.services.youtube = {
  747. "key": "youtube",
  748. "type": "video",
  749. "name": "YouTube",
  750. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  751. "needConsent": true,
  752. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  753. "js": function () {
  754. "use strict";
  755. tarteaucitron.fallback(['youtube_player'], function (x) {
  756. var video_id = x.getAttribute("videoID"),
  757. video_width = x.getAttribute("width"),
  758. frame_width = 'width=',
  759. video_height = x.getAttribute("height"),
  760. frame_height = 'height=',
  761. video_frame,
  762. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  763. if (video_id === undefined) {
  764. return "";
  765. }
  766. if (video_width !== undefined) {
  767. frame_width += '"' + video_width + '" ';
  768. } else {
  769. frame_width += '"" ';
  770. }
  771. if (video_height !== undefined) {
  772. frame_height += '"' + video_height + '" ';
  773. } else {
  774. frame_height += '"" ';
  775. }
  776. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  777. return video_frame;
  778. });
  779. },
  780. "fallback": function () {
  781. "use strict";
  782. var id = 'youtube';
  783. tarteaucitron.fallback(['youtube_player'], tarteaucitron.engage(id));
  784. }
  785. };
  786. // zopim
  787. tarteaucitron.services.zopim = {
  788. "key": "zopim",
  789. "type": "support",
  790. "name": "Zopim",
  791. "uri": "https://www.zopim.com/privacy",
  792. "needConsent": true,
  793. "cookies": ['__zlcid', '__zprivacy'],
  794. "js": function () {
  795. "use strict";
  796. if (tarteaucitron.user.zopimID === undefined) {
  797. return;
  798. }
  799. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  800. }
  801. };