tarteaucitron.services.js 32 KB

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