tarteaucitron.services.js 26 KB

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