tarteaucitron.services.js 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873
  1. /*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr, PCWidget*/
  2. /*jslint regexp: true, nomen: true*/
  3. // generic iframe
  4. tarteaucitron.services.iframe = {
  5. "key": "iframe",
  6. "type": "other",
  7. "name": "Web content",
  8. "uri": "",
  9. "needConsent": true,
  10. "cookies": [],
  11. "js": function () {
  12. "use strict";
  13. tarteaucitron.fallback(['tac_iframe'], function (x) {
  14. var width = x.getAttribute("width"),
  15. height = x.getAttribute("height"),
  16. url = x.getAttribute("data-url");
  17. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  18. });
  19. },
  20. "fallback": function () {
  21. "use strict";
  22. var id = 'iframe';
  23. tarteaucitron.fallback(['tac_iframe'], function (elem) {
  24. elem.style.width = elem.getAttribute('width') + 'px';
  25. elem.style.height = elem.getAttribute('height') + 'px';
  26. return tarteaucitron.engage(id);
  27. });
  28. }
  29. };
  30. // addthis
  31. tarteaucitron.services.addthis = {
  32. "key": "addthis",
  33. "type": "social",
  34. "name": "AddThis",
  35. "uri": "https://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  36. "needConsent": true,
  37. "cookies": ['__atuvc', '__atuvs'],
  38. "js": function () {
  39. "use strict";
  40. if (tarteaucitron.user.addthisPubId === undefined) {
  41. return;
  42. }
  43. if (tarteaucitron.isAjax === true) {
  44. window.addthis = null;
  45. window._adr = null;
  46. window._atc = null;
  47. window._atd = null;
  48. window._ate = null;
  49. window._atr = null;
  50. window._atw = null;
  51. }
  52. tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
  53. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  54. },
  55. "fallback": function () {
  56. "use strict";
  57. var id = 'addthis';
  58. tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
  59. }
  60. };
  61. // addtoanyfeed
  62. tarteaucitron.services.addtoanyfeed = {
  63. "key": "addtoanyfeed",
  64. "type": "social",
  65. "name": "AddToAny (feed)",
  66. "uri": "https://www.addtoany.com/privacy",
  67. "needConsent": true,
  68. "cookies": [],
  69. "js": function () {
  70. "use strict";
  71. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  72. return;
  73. }
  74. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  75. window.a2a_config = window.a2a_config || {};
  76. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  77. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  78. },
  79. "fallback": function () {
  80. "use strict";
  81. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  82. }
  83. };
  84. // addtoanyshare
  85. tarteaucitron.services.addtoanyshare = {
  86. "key": "addtoanyshare",
  87. "type": "social",
  88. "name": "AddToAny (share)",
  89. "uri": "https://www.addtoany.com/privacy",
  90. "needConsent": true,
  91. "cookies": [],
  92. "js": function () {
  93. "use strict";
  94. tarteaucitron.fallback(['tac_addtoanyshare'], '');
  95. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  96. },
  97. "fallback": function () {
  98. "use strict";
  99. var id = 'addtoanyshare';
  100. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  101. }
  102. };
  103. // alexa
  104. tarteaucitron.services.alexa = {
  105. "key": "alexa",
  106. "type": "analytic",
  107. "name": "Alexa",
  108. "uri": "https://www.alexa.com/help/privacy",
  109. "needConsent": true,
  110. "cookies": ['__asc', '__auc'],
  111. "js": function () {
  112. "use strict";
  113. if (tarteaucitron.user.alexaAccountID === undefined) {
  114. return;
  115. }
  116. window._atrk_opts = {
  117. atrk_acct: tarteaucitron.user.alexaAccountID,
  118. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  119. dynamic: true
  120. };
  121. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  122. }
  123. };
  124. // amazon
  125. tarteaucitron.services.amazon = {
  126. "key": "amazon",
  127. "type": "ads",
  128. "name": "Amazon",
  129. "uri": "https://www.amazon.fr/gp/help/customer/display.html?ie=UTF8&*Version*=1&*entries*=0&nodeId=201149360",
  130. "needConsent": true,
  131. "cookies": [],
  132. "js": function () {
  133. "use strict";
  134. tarteaucitron.fallback(['amazon_product'], function (x) {
  135. var amazonId = x.getAttribute("amazonid"),
  136. productId = x.getAttribute("productid"),
  137. url = '//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=' + tarteaucitron.getLanguage().toUpperCase() + '&source=ss&ref=ss_til&ad_type=product_link&tracking_id=' + amazonId + '&marketplace=amazon&region=' + tarteaucitron.getLanguage().toUpperCase() + '&placement=' + productId + '&asins=' + productId + '&show_border=true&link_opens_in_new_window=true',
  138. iframe = '<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="' + url + '"></iframe>';
  139. return iframe;
  140. });
  141. },
  142. "fallback": function () {
  143. "use strict";
  144. var id = 'amazon';
  145. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  146. }
  147. };
  148. // calameo
  149. tarteaucitron.services.calameo = {
  150. "key": "calameo",
  151. "type": "video",
  152. "name": "Calameo",
  153. "uri": "https://fr.calameo.com/privacy",
  154. "needConsent": true,
  155. "cookies": [],
  156. "js": function () {
  157. "use strict";
  158. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  159. var id = x.getAttribute("data-id"),
  160. width = x.getAttribute("width"),
  161. height = x.getAttribute("height"),
  162. url = '//v.calameo.com/?bkcode=' + id;
  163. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  164. });
  165. },
  166. "fallback": function () {
  167. "use strict";
  168. var id = 'calameo';
  169. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  170. elem.style.width = elem.getAttribute('width') + 'px';
  171. elem.style.height = elem.getAttribute('height') + 'px';
  172. return tarteaucitron.engage(id);
  173. });
  174. }
  175. };
  176. // clicky
  177. tarteaucitron.services.clicky = {
  178. "key": "clicky",
  179. "type": "analytic",
  180. "name": "Clicky",
  181. "uri": "https://clicky.com/terms",
  182. "needConsent": true,
  183. "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],
  184. "js": function () {
  185. "use strict";
  186. if (tarteaucitron.user.clickyId === undefined) {
  187. return;
  188. }
  189. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  190. if (typeof clicky.init === 'function') {
  191. clicky.init(tarteaucitron.user.clickyId);
  192. }
  193. if (typeof tarteaucitron.user.clickyMore === 'function') {
  194. tarteaucitron.user.clickyMore();
  195. }
  196. });
  197. }
  198. };
  199. // clicmanager
  200. tarteaucitron.services.clicmanager = {
  201. "key": "clicmanager",
  202. "type": "ads",
  203. "name": "Clicmanager",
  204. "uri": "http://www.clicmanager.fr/infos_legales.php",
  205. "needConsent": true,
  206. "cookies": [],
  207. "js": function () {
  208. "use strict";
  209. var uniqIds = [],
  210. i,
  211. uri;
  212. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  213. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  214. uniqIds.push(uniqId);
  215. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  216. });
  217. for (i = 0; i < uniqIds.length; i += 1) {
  218. uri = '//ads.clicmanager.fr/exe.php?';
  219. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  220. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  221. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  222. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  223. }
  224. },
  225. "fallback": function () {
  226. "use strict";
  227. var id = 'clicmanager';
  228. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  229. }
  230. };
  231. // crazyegg
  232. tarteaucitron.services.crazyegg = {
  233. "key": "crazyegg",
  234. "type": "analytic",
  235. "name": "Crazy Egg",
  236. "uri": "https://www.crazyegg.com/privacy",
  237. "needConsent": true,
  238. "cookies": [],
  239. "js": function () {
  240. "use strict";
  241. if (tarteaucitron.user.crazyeggId === undefined) {
  242. return;
  243. }
  244. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  245. }
  246. };
  247. // criteo
  248. tarteaucitron.services.criteo = {
  249. "key": "criteo",
  250. "type": "ads",
  251. "name": "Criteo",
  252. "uri": "http://www.criteo.com/privacy/",
  253. "needConsent": true,
  254. "cookies": [],
  255. "js": function () {
  256. "use strict";
  257. document.MAX_ct0 = '';
  258. var uniqIds = [],
  259. i,
  260. uri;
  261. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  262. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  263. uniqIds.push(uniqId);
  264. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  265. });
  266. for (i = 0; i < uniqIds.length; i += 1) {
  267. uri = '//cas.criteo.com/delivery/ajs.php?';
  268. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  269. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  270. uri += '&loc=' + encodeURI(window.location);
  271. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  272. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  273. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  274. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  275. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  276. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  277. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  278. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  279. }
  280. },
  281. "fallback": function () {
  282. "use strict";
  283. var id = 'criteo';
  284. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  285. }
  286. };
  287. // dailymotion
  288. tarteaucitron.services.dailymotion = {
  289. "key": "dailymotion",
  290. "type": "video",
  291. "name": "Dailymotion",
  292. "uri": "https://www.dailymotion.com/legal/privacy",
  293. "needConsent": true,
  294. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  295. "js": function () {
  296. "use strict";
  297. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  298. var video_id = x.getAttribute("videoID"),
  299. video_width = x.getAttribute("width"),
  300. frame_width = 'width=',
  301. video_height = x.getAttribute("height"),
  302. frame_height = 'height=',
  303. video_frame,
  304. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  305. if (video_id === undefined) {
  306. return "";
  307. }
  308. if (video_width !== undefined) {
  309. frame_width += '"' + video_width + '" ';
  310. } else {
  311. frame_width += '"" ';
  312. }
  313. if (video_height !== undefined) {
  314. frame_height += '"' + video_height + '" ';
  315. } else {
  316. frame_height += '"" ';
  317. }
  318. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  319. return video_frame;
  320. });
  321. },
  322. "fallback": function () {
  323. "use strict";
  324. var id = 'dailymotion';
  325. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  326. elem.style.width = elem.getAttribute('width') + 'px';
  327. elem.style.height = elem.getAttribute('height') + 'px';
  328. return tarteaucitron.engage(id);
  329. });
  330. }
  331. };
  332. // dating affiliation
  333. tarteaucitron.services.datingaffiliation = {
  334. "key": "datingaffiliation",
  335. "type": "ads",
  336. "name": "Dating Affiliation",
  337. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  338. "needConsent": true,
  339. "cookies": [],
  340. "js": function () {
  341. "use strict";
  342. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  343. var comfrom = x.getAttribute("data-comfrom"),
  344. r = x.getAttribute("data-r"),
  345. p = x.getAttribute("data-p"),
  346. cf0 = x.getAttribute("data-cf0"),
  347. langue = x.getAttribute("data-langue"),
  348. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  349. cf2 = x.getAttribute("data-cf2"),
  350. cfsa2 = x.getAttribute("data-cfsa2"),
  351. width = x.getAttribute("width"),
  352. height = x.getAttribute("height"),
  353. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  354. return '<iframe src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
  355. });
  356. },
  357. "fallback": function () {
  358. "use strict";
  359. var id = 'datingaffiliation';
  360. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  361. elem.style.width = elem.getAttribute('width') + 'px';
  362. elem.style.height = elem.getAttribute('height') + 'px';
  363. return tarteaucitron.engage(id);
  364. });
  365. }
  366. };
  367. // dating affiliation popup
  368. tarteaucitron.services.datingaffiliationpopup = {
  369. "key": "datingaffiliationpopup",
  370. "type": "ads",
  371. "name": "Dating Affiliation (Pop Up)",
  372. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  373. "needConsent": true,
  374. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  375. "js": function () {
  376. "use strict";
  377. var uniqIds = [],
  378. i,
  379. uri;
  380. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  381. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  382. uniqIds.push(uniqId);
  383. return '<div id="' + uniqId + '" uri="' + x.getAttribute('uri') + '" comfrom="' + x.getAttribute('comfrom') + '" promo="' + x.getAttribute('promo') + '" productid="' + x.getAttribute('productid') + '" submitconfig="' + x.getAttribute('submitconfig') + '" ur="' + x.getAttribute('ur') + '" brand="' + x.getAttribute('brand') + '" lang="' + x.getAttribute('lang') + '" cf0="' + x.getAttribute('cf0') + '" cf2="' + x.getAttribute('cf2') + '" subid1="' + x.getAttribute('subid1') + '" cfsa2="' + x.getAttribute('cfsa2') + '" subid2="' + x.getAttribute('subid2') + '" nicheid="' + x.getAttribute('nicheid') + '" degreid="' + x.getAttribute('degreid') + '" bt="' + x.getAttribute('bt') + '" vis="' + x.getAttribute('vis') + '" hid="' + x.getAttribute('hid') + '" snd="' + x.getAttribute('snd') + '" aabd="' + x.getAttribute('aabd') + '" aabs="' + x.getAttribute('aabs') + '"></div>';
  384. });
  385. for (i = 0; i < uniqIds.length; i += 1) {
  386. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  387. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  388. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  389. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  390. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  391. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  392. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  393. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  394. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  395. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  396. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  397. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  398. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  399. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  400. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  401. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  402. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  403. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  404. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  405. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  406. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  407. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  408. }
  409. },
  410. "fallback": function () {
  411. "use strict";
  412. var id = 'datingaffiliationpopup';
  413. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  414. }
  415. };
  416. // disqus
  417. tarteaucitron.services.disqus = {
  418. "key": "disqus",
  419. "type": "comment",
  420. "name": "Disqus",
  421. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  422. "needConsent": true,
  423. "cookies": [],
  424. "js": function () {
  425. "use strict";
  426. if (tarteaucitron.user.disqusShortname === undefined) {
  427. return;
  428. }
  429. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  430. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  431. },
  432. "fallback": function () {
  433. "use strict";
  434. var id = 'disqus';
  435. if (document.getElementById('disqus_thread')) {
  436. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  437. }
  438. }
  439. };
  440. // ekomi
  441. tarteaucitron.services.ekomi = {
  442. "key": "ekomi",
  443. "type": "social",
  444. "name": "eKomi",
  445. "uri": "http://www.ekomi-us.com/us/privacy/",
  446. "needConsent": true,
  447. "cookies": [],
  448. "js": function () {
  449. "use strict";
  450. if (tarteaucitron.user.ekomiCertId === undefined) {
  451. return;
  452. }
  453. window.eKomiIntegrationConfig = [
  454. {certId: tarteaucitron.user.ekomiCertId}
  455. ];
  456. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  457. }
  458. };
  459. // etracker
  460. tarteaucitron.services.etracker = {
  461. "key": "etracker",
  462. "type": "analytic",
  463. "name": "eTracker",
  464. "uri": "https://www.etracker.com/en/data-protection.html",
  465. "needConsent": true,
  466. "cookies": [],
  467. "js": function () {
  468. "use strict";
  469. if (tarteaucitron.user.etracker === undefined) {
  470. return;
  471. }
  472. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  473. }
  474. };
  475. // facebook
  476. tarteaucitron.services.facebook = {
  477. "key": "facebook",
  478. "type": "social",
  479. "name": "Facebook",
  480. "uri": "https://www.facebook.com/policies/cookies/",
  481. "needConsent": true,
  482. "cookies": [],
  483. "js": function () {
  484. "use strict";
  485. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], '');
  486. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  487. if (tarteaucitron.isAjax === true) {
  488. if (typeof FB !== "undefined") {
  489. FB.XFBML.parse();
  490. }
  491. }
  492. },
  493. "fallback": function () {
  494. "use strict";
  495. var id = 'facebook';
  496. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
  497. }
  498. };
  499. // facebooklikebox
  500. tarteaucitron.services.facebooklikebox = {
  501. "key": "facebooklikebox",
  502. "type": "social",
  503. "name": "Facebook (like box)",
  504. "uri": "https://www.facebook.com/policies/cookies/",
  505. "needConsent": true,
  506. "cookies": [],
  507. "js": function () {
  508. "use strict";
  509. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  510. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  511. if (tarteaucitron.isAjax === true) {
  512. if (typeof FB !== "undefined") {
  513. FB.XFBML.parse();
  514. }
  515. }
  516. },
  517. "fallback": function () {
  518. "use strict";
  519. var id = 'facebooklikebox';
  520. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  521. }
  522. };
  523. // facebookcomment
  524. tarteaucitron.services.facebookcomment = {
  525. "key": "facebookcomment",
  526. "type": "comment",
  527. "name": "Facebook (commentaire)",
  528. "uri": "https://www.facebook.com/policies/cookies/",
  529. "needConsent": true,
  530. "cookies": [],
  531. "js": function () {
  532. "use strict";
  533. tarteaucitron.fallback(['fb-comments'], '');
  534. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  535. if (tarteaucitron.isAjax === true) {
  536. if (typeof FB !== "undefined") {
  537. FB.XFBML.parse();
  538. }
  539. }
  540. },
  541. "fallback": function () {
  542. "use strict";
  543. var id = 'facebookcomment';
  544. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  545. }
  546. };
  547. // ferank
  548. tarteaucitron.services.ferank = {
  549. "key": "ferank",
  550. "type": "analytic",
  551. "name": "FERank",
  552. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  553. "needConsent": false,
  554. "cookies": [],
  555. "js": function () {
  556. "use strict";
  557. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  558. if (typeof tarteaucitron.user.ferankMore === 'function') {
  559. tarteaucitron.user.ferankMore();
  560. }
  561. });
  562. }
  563. };
  564. // ferank pub
  565. tarteaucitron.services.ferankpub = {
  566. "key": "ferankpub",
  567. "type": "ads",
  568. "name": "FERank (pub)",
  569. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  570. "needConsent": false,
  571. "cookies": [],
  572. "js": function () {
  573. "use strict";
  574. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  575. if (tarteaucitron.isAjax === true) {
  576. if (typeof ferankReady === 'function') {
  577. ferankReady();
  578. }
  579. }
  580. },
  581. "fallback": function () {
  582. "use strict";
  583. var id = 'ferankpub';
  584. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  585. }
  586. };
  587. // get+
  588. tarteaucitron.services.getplus = {
  589. "key": "getplus",
  590. "type": "analytic",
  591. "name": "Get+",
  592. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  593. "needConsent": true,
  594. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  595. "js": function () {
  596. "use strict";
  597. if (tarteaucitron.user.getplusId === undefined) {
  598. return;
  599. }
  600. window.webleads_site_ids = window.webleads_site_ids || [];
  601. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  602. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  603. }
  604. };
  605. // google+
  606. tarteaucitron.services.gplus = {
  607. "key": "gplus",
  608. "type": "social",
  609. "name": "Google+",
  610. "uri": "https://policies.google.com/privacy",
  611. "needConsent": true,
  612. "cookies": [],
  613. "js": function () {
  614. "use strict";
  615. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  616. },
  617. "fallback": function () {
  618. "use strict";
  619. var id = 'gplus';
  620. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  621. }
  622. };
  623. // google+ badge
  624. tarteaucitron.services.gplusbadge = {
  625. "key": "gplusbadge",
  626. "type": "social",
  627. "name": "Google+ (badge)",
  628. "uri": "https://policies.google.com/privacy",
  629. "needConsent": true,
  630. "cookies": [],
  631. "js": function () {
  632. "use strict";
  633. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  634. },
  635. "fallback": function () {
  636. "use strict";
  637. var id = 'gplusbadge';
  638. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  639. }
  640. };
  641. // google adsense
  642. tarteaucitron.services.adsense = {
  643. "key": "adsense",
  644. "type": "ads",
  645. "name": "Google Adsense",
  646. "uri": "http://www.google.com/ads/preferences/",
  647. "needConsent": true,
  648. "cookies": [],
  649. "js": function () {
  650. "use strict";
  651. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  652. },
  653. "fallback": function () {
  654. "use strict";
  655. var id = 'adsense';
  656. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  657. }
  658. };
  659. // google partners badge
  660. tarteaucitron.services.googlepartners = {
  661. "key": "googlepartners",
  662. "type": "ads",
  663. "name": "Google Partners Badge",
  664. "uri": "http://www.google.com/ads/preferences/",
  665. "needConsent": true,
  666. "cookies": [],
  667. "js": function () {
  668. "use strict";
  669. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  670. },
  671. "fallback": function () {
  672. "use strict";
  673. var id = 'googlepartners';
  674. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  675. }
  676. };
  677. // google adsense search (form)
  678. tarteaucitron.services.adsensesearchform = {
  679. "key": "adsensesearchform",
  680. "type": "ads",
  681. "name": "Google Adsense Search (form)",
  682. "uri": "http://www.google.com/ads/preferences/",
  683. "needConsent": true,
  684. "cookies": [],
  685. "js": function () {
  686. "use strict";
  687. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  688. }
  689. };
  690. // google adsense search (result)
  691. tarteaucitron.services.adsensesearchresult = {
  692. "key": "adsensesearchresult",
  693. "type": "ads",
  694. "name": "Google Adsense Search (result)",
  695. "uri": "http://www.google.com/ads/preferences/",
  696. "needConsent": true,
  697. "cookies": [],
  698. "js": function () {
  699. "use strict";
  700. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  701. return;
  702. }
  703. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  704. },
  705. "fallback": function () {
  706. "use strict";
  707. var id = 'adsensesearchresult';
  708. if (document.getElementById('gcse_searchresults')) {
  709. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  710. }
  711. }
  712. };
  713. // googleadwordsconversion
  714. tarteaucitron.services.googleadwordsconversion = {
  715. "key": "googleadwordsconversion",
  716. "type": "ads",
  717. "name": "Google Adwords (conversion)",
  718. "uri": "https://www.google.com/settings/ads",
  719. "needConsent": true,
  720. "cookies": [],
  721. "js": function () {
  722. "use strict";
  723. if (tarteaucitron.user.adwordsconversionId === undefined) {
  724. return;
  725. }
  726. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  727. window.google_trackConversion({
  728. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  729. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  730. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  731. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  732. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  733. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  734. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  735. google_custom_params: {
  736. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  737. parameter2: tarteaucitron.user.adwordsconversionCustom2
  738. }
  739. });
  740. });
  741. }
  742. };
  743. // googleadwordsremarketing
  744. tarteaucitron.services.googleadwordsremarketing = {
  745. "key": "googleadwordsremarketing",
  746. "type": "ads",
  747. "name": "Google Adwords (remarketing)",
  748. "uri": "https://www.google.com/settings/ads",
  749. "needConsent": true,
  750. "cookies": [],
  751. "js": function () {
  752. "use strict";
  753. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  754. return;
  755. }
  756. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  757. window.google_trackConversion({
  758. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  759. google_remarketing_only: true
  760. });
  761. });
  762. }
  763. };
  764. // google analytics (old)
  765. tarteaucitron.services.gajs = {
  766. "key": "gajs",
  767. "type": "analytic",
  768. "name": "Google Analytics (ga.js)",
  769. "uri": "https://support.google.com/analytics/answer/6004245",
  770. "needConsent": true,
  771. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  772. "js": function () {
  773. "use strict";
  774. window._gaq = window._gaq || [];
  775. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  776. window._gaq.push(['_trackPageview']);
  777. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  778. if (typeof tarteaucitron.user.gajsMore === 'function') {
  779. tarteaucitron.user.gajsMore();
  780. }
  781. });
  782. }
  783. };
  784. // google analytics
  785. tarteaucitron.services.analytics = {
  786. "key": "analytics",
  787. "type": "analytic",
  788. "name": "Google Analytics (universal)",
  789. "uri": "https://support.google.com/analytics/answer/6004245",
  790. "needConsent": true,
  791. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  792. "js": function () {
  793. "use strict";
  794. window.GoogleAnalyticsObject = 'ga';
  795. window.ga = window.ga || function () {
  796. window.ga.q = window.ga.q || [];
  797. window.ga.q.push(arguments);
  798. };
  799. window.ga.l = new Date();
  800. tarteaucitron.addScript('//www.google-analytics.com/analytics.js', '', function () {
  801. ga('create', tarteaucitron.user.analyticsUa, {'cookieExpires': 34128000});
  802. ga('send', 'pageview');
  803. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  804. tarteaucitron.user.analyticsMore();
  805. }
  806. });
  807. }
  808. };
  809. // google analytics
  810. tarteaucitron.services.gtag = {
  811. "key": "gtag",
  812. "type": "analytic",
  813. "name": "Google Analytics (gtag.js)",
  814. "uri": "https://support.google.com/analytics/answer/6004245",
  815. "needConsent": true,
  816. "cookies": ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'],
  817. "js": function () {
  818. "use strict";
  819. window.dataLayer = window.dataLayer || [];
  820. tarteaucitron.addScript('//www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  821. function gtag(){dataLayer.push(arguments);}
  822. gtag('js', new Date());
  823. gtag('config', tarteaucitron.user.gtagUa);
  824. if (typeof tarteaucitron.user.gtagMore === 'function') {
  825. tarteaucitron.user.gtagMore();
  826. }
  827. });
  828. }
  829. };
  830. // google maps
  831. tarteaucitron.services.googlemaps = {
  832. "key": "googlemaps",
  833. "type": "api",
  834. "name": "Google Maps",
  835. "uri": "http://www.google.com/ads/preferences/",
  836. "needConsent": true,
  837. "cookies": [],
  838. "js": function () {
  839. "use strict";
  840. var mapOptions,
  841. map,
  842. uniqIds = [],
  843. i;
  844. if (tarteaucitron.user.mapscallback === undefined) {
  845. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  846. }
  847. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback);
  848. window.tac_googlemaps_callback = function () {
  849. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  850. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  851. uniqIds.push(uniqId);
  852. return '<div id="' + uniqId + '" zoom="' + x.getAttribute('zoom') + '" latitude="' + x.getAttribute('latitude') + '" longitude="' + x.getAttribute('longitude') + '" style="width:' + x.offsetWidth + 'px;height:' + x.offsetHeight + 'px"></div>';
  853. });
  854. for (i = 0; i < uniqIds.length; i += 1) {
  855. mapOptions = {
  856. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  857. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  858. };
  859. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  860. }
  861. };
  862. },
  863. "fallback": function () {
  864. "use strict";
  865. var id = 'googlemaps';
  866. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  867. }
  868. };
  869. // google tag manager
  870. tarteaucitron.services.googletagmanager = {
  871. "key": "googletagmanager",
  872. "type": "api",
  873. "name": "Google Tag Manager",
  874. "uri": "http://www.google.com/ads/preferences/",
  875. "needConsent": true,
  876. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  877. "js": function () {
  878. "use strict";
  879. if (tarteaucitron.user.googletagmanagerId === undefined) {
  880. return;
  881. }
  882. window.dataLayer = window.dataLayer || [];
  883. window.dataLayer.push({
  884. 'gtm.start': new Date().getTime(),
  885. event: 'gtm.js'
  886. });
  887. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  888. }
  889. };
  890. // jsapi
  891. tarteaucitron.services.jsapi = {
  892. "key": "jsapi",
  893. "type": "api",
  894. "name": "Google jsapi",
  895. "uri": "http://www.google.com/policies/privacy/",
  896. "needConsent": true,
  897. "cookies": [],
  898. "js": function () {
  899. "use strict";
  900. tarteaucitron.addScript('//www.google.com/jsapi');
  901. }
  902. };
  903. // linkedin
  904. tarteaucitron.services.linkedin = {
  905. "key": "linkedin",
  906. "type": "social",
  907. "name": "Linkedin",
  908. "uri": "https://www.linkedin.com/legal/cookie_policy",
  909. "needConsent": true,
  910. "cookies": [],
  911. "js": function () {
  912. "use strict";
  913. tarteaucitron.fallback(['tacLinkedin'], '');
  914. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  915. if (tarteaucitron.isAjax === true) {
  916. if (typeof IN !== "undefined") {
  917. IN.parse();
  918. }
  919. }
  920. },
  921. "fallback": function () {
  922. "use strict";
  923. var id = 'linkedin';
  924. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  925. }
  926. };
  927. // mautic
  928. tarteaucitron.services.mautic = {
  929. "key": "mautic",
  930. "type": "analytic",
  931. "name": "Mautic",
  932. "uri": "https://www.mautic.org/privacy-policy/",
  933. "needConsent": true,
  934. "cookies": ['mtc_id', 'mtc_sid'],
  935. "js": function () {
  936. "use strict";
  937. if (tarteaucitron.user.mauticurl === undefined) {
  938. return;
  939. }
  940. window['MauticTrackingObject'] = 'mt';
  941. window['mt'] = window['mt'] || function() {
  942. (window['mt'].q = window['mt'].q || []).push(arguments);
  943. };
  944. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  945. mt('send', 'pageview');
  946. });
  947. }
  948. };
  949. // microsoftcampaignanalytics
  950. tarteaucitron.services.microsoftcampaignanalytics = {
  951. "key": "microsoftcampaignanalytics",
  952. "type": "analytic",
  953. "name": "Microsoft Campaign Analytics",
  954. "uri": "https://privacy.microsoft.com/privacystatement/",
  955. "needConsent": true,
  956. "cookies": [],
  957. "js": function () {
  958. "use strict";
  959. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  960. return;
  961. }
  962. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  963. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  964. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  965. });
  966. }
  967. };
  968. // pinterest
  969. tarteaucitron.services.pinterest = {
  970. "key": "pinterest",
  971. "type": "social",
  972. "name": "Pinterest",
  973. "uri": "https://about.pinterest.com/privacy-policy",
  974. "needConsent": true,
  975. "cookies": [],
  976. "js": function () {
  977. "use strict";
  978. tarteaucitron.fallback(['tacPinterest'], '');
  979. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  980. },
  981. "fallback": function () {
  982. "use strict";
  983. var id = 'pinterest';
  984. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  985. }
  986. };
  987. // prelinker
  988. tarteaucitron.services.prelinker = {
  989. "key": "prelinker",
  990. "type": "ads",
  991. "name": "Prelinker",
  992. "uri": "http://www.prelinker.com/index/index/cgu/",
  993. "needConsent": true,
  994. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  995. "js": function () {
  996. "use strict";
  997. var uniqIds = [],
  998. i,
  999. uri;
  1000. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1001. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1002. uniqIds.push(uniqId);
  1003. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1004. });
  1005. for (i = 0; i < uniqIds.length; i += 1) {
  1006. uri = 'http://promo.easy-dating.org/banner/index?';
  1007. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1008. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1009. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1010. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1011. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1012. }
  1013. },
  1014. "fallback": function () {
  1015. "use strict";
  1016. var id = 'prelinker';
  1017. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1018. }
  1019. };
  1020. // prezi
  1021. tarteaucitron.services.prezi = {
  1022. "key": "prezi",
  1023. "type": "video",
  1024. "name": "Prezi",
  1025. "uri": "https://prezi.com/privacy-policy/",
  1026. "needConsent": true,
  1027. "cookies": [],
  1028. "js": function () {
  1029. "use strict";
  1030. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1031. var id = x.getAttribute("data-id"),
  1032. width = x.getAttribute("width"),
  1033. height = x.getAttribute("height"),
  1034. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1035. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1036. });
  1037. },
  1038. "fallback": function () {
  1039. "use strict";
  1040. var id = 'prezi';
  1041. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1042. elem.style.width = elem.getAttribute('width') + 'px';
  1043. elem.style.height = elem.getAttribute('height') + 'px';
  1044. return tarteaucitron.engage(id);
  1045. });
  1046. }
  1047. };
  1048. // pubdirecte
  1049. tarteaucitron.services.pubdirecte = {
  1050. "key": "pubdirecte",
  1051. "type": "ads",
  1052. "name": "Pubdirecte",
  1053. "uri": "http://pubdirecte.com/contact.php",
  1054. "needConsent": true,
  1055. "cookies": [],
  1056. "js": function () {
  1057. "use strict";
  1058. var uniqIds = [],
  1059. i,
  1060. uri;
  1061. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1062. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1063. uniqIds.push(uniqId);
  1064. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1065. });
  1066. for (i = 0; i < uniqIds.length; i += 1) {
  1067. uri = '//www.pubdirecte.com/script/banniere.php?';
  1068. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1069. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1070. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1071. }
  1072. },
  1073. "fallback": function () {
  1074. "use strict";
  1075. var id = 'pubdirecte';
  1076. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1077. }
  1078. };
  1079. // purechat
  1080. tarteaucitron.services.purechat = {
  1081. "key": "purechat",
  1082. "type": "support",
  1083. "name": "PureChat",
  1084. "uri": "https://www.purechat.com/privacy",
  1085. "needConsent": true,
  1086. "cookies": [],
  1087. "js": function () {
  1088. "use strict";
  1089. if (tarteaucitron.user.purechatId === undefined) {
  1090. return;
  1091. }
  1092. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1093. try {
  1094. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1095. } catch (e) {}
  1096. });
  1097. }
  1098. };
  1099. // shareaholic
  1100. tarteaucitron.services.shareaholic = {
  1101. "key": "shareaholic",
  1102. "type": "social",
  1103. "name": "Shareaholic",
  1104. "uri": "https://shareaholic.com/privacy/choices",
  1105. "needConsent": true,
  1106. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1107. "js": function () {
  1108. "use strict";
  1109. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1110. return;
  1111. }
  1112. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1113. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1114. try {
  1115. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1116. } catch (e) {}
  1117. });
  1118. },
  1119. "fallback": function () {
  1120. "use strict";
  1121. var id = 'shareaholic';
  1122. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1123. }
  1124. };
  1125. // shareasale
  1126. tarteaucitron.services.shareasale = {
  1127. "key": "shareasale",
  1128. "type": "ads",
  1129. "name": "ShareASale",
  1130. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1131. "needConsent": true,
  1132. "cookies": [],
  1133. "js": function () {
  1134. "use strict";
  1135. var uniqIds = [],
  1136. i,
  1137. uri;
  1138. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1139. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1140. uniqIds.push(uniqId);
  1141. return '<div id="' + uniqId + '" amount="' + x.getAttribute('amount') + '" tracking="' + x.getAttribute('tracking') + '" transtype="' + x.getAttribute('transtype') + '" persale="' + x.getAttribute('persale') + '" perlead="' + x.getAttribute('perlead') + '" perhit="' + x.getAttribute('perhit') + '" merchantID="' + x.getAttribute('merchantID') + '"></div>';
  1142. });
  1143. for (i = 0; i < uniqIds.length; i += 1) {
  1144. uri = 'https://shareasale.com/sale.cfm?';
  1145. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1146. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1147. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1148. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1149. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1150. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1151. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1152. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1153. }
  1154. },
  1155. "fallback": function () {
  1156. "use strict";
  1157. var id = 'shareasale';
  1158. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1159. }
  1160. };
  1161. // sharethis
  1162. tarteaucitron.services.sharethis = {
  1163. "key": "sharethis",
  1164. "type": "social",
  1165. "name": "ShareThis",
  1166. "uri": "http://www.sharethis.com/legal/privacy/",
  1167. "needConsent": true,
  1168. "cookies": ['__unam'],
  1169. "js": function () {
  1170. "use strict";
  1171. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1172. return;
  1173. }
  1174. var switchTo5x = true,
  1175. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1176. tarteaucitron.fallback(['tacSharethis'], '');
  1177. tarteaucitron.addScript(uri, '', function () {
  1178. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1179. });
  1180. if (tarteaucitron.isAjax === true) {
  1181. if (typeof stButtons !== "undefined") {
  1182. stButtons.locateElements();
  1183. }
  1184. }
  1185. },
  1186. "fallback": function () {
  1187. "use strict";
  1188. var id = 'sharethis';
  1189. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1190. }
  1191. };
  1192. // slideshare
  1193. tarteaucitron.services.slideshare = {
  1194. "key": "slideshare",
  1195. "type": "video",
  1196. "name": "SlideShare",
  1197. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1198. "needConsent": true,
  1199. "cookies": [],
  1200. "js": function () {
  1201. "use strict";
  1202. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1203. var id = x.getAttribute("data-id"),
  1204. width = x.getAttribute("width"),
  1205. height = x.getAttribute("height"),
  1206. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1207. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1208. });
  1209. },
  1210. "fallback": function () {
  1211. "use strict";
  1212. var id = 'slideshare';
  1213. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1214. elem.style.width = elem.getAttribute('width') + 'px';
  1215. elem.style.height = elem.getAttribute('height') + 'px';
  1216. return tarteaucitron.engage(id);
  1217. });
  1218. }
  1219. };
  1220. // statcounter
  1221. tarteaucitron.services.statcounter = {
  1222. "key": "statcounter",
  1223. "type": "analytic",
  1224. "name": "StatCounter",
  1225. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1226. "needConsent": true,
  1227. "cookies": ['sc_is_visitor_unique'],
  1228. "js": function () {
  1229. "use strict";
  1230. var uniqIds = [],
  1231. i,
  1232. uri = '//statcounter.com/counter/counter.js';
  1233. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1234. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1235. uniqIds.push(uniqId);
  1236. return '<div id="' + uniqId + '"></div>';
  1237. });
  1238. for (i = 0; i < uniqIds.length; i += 1) {
  1239. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1240. }
  1241. },
  1242. "fallback": function () {
  1243. "use strict";
  1244. var id = 'statcounter';
  1245. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1246. }
  1247. };
  1248. // timelinejs
  1249. tarteaucitron.services.timelinejs = {
  1250. "key": "timelinejs",
  1251. "type": "api",
  1252. "name": "Timeline JS",
  1253. "uri": "http://timeline.knightlab.com/#help",
  1254. "needConsent": true,
  1255. "cookies": [],
  1256. "js": function () {
  1257. "use strict";
  1258. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1259. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1260. width = x.getAttribute("width"),
  1261. height = x.getAttribute("height"),
  1262. lang = x.getAttribute("lang_2_letter"),
  1263. font = x.getAttribute("font"),
  1264. map = x.getAttribute("map"),
  1265. start_at_end = x.getAttribute("start_at_end"),
  1266. hash_bookmark = x.getAttribute("hash_bookmark"),
  1267. start_at_slide = x.getAttribute("start_at_slide"),
  1268. start_zoom = x.getAttribute("start_zoom"),
  1269. url = '//cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=' + spreadsheet_id + '&font=' + font + '&maptype=' + map + '&lang=' + lang + '&start_at_end=' + start_at_end + '&hash_bookmark=' + hash_bookmark + '&start_at_slide=' + start_at_slide + '&start_zoom_adjust=' + start_zoom + '&height=' + height;
  1270. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1271. });
  1272. },
  1273. "fallback": function () {
  1274. "use strict";
  1275. var id = 'timelinejs';
  1276. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1277. elem.style.width = elem.getAttribute('width') + 'px';
  1278. elem.style.height = elem.getAttribute('height') + 'px';
  1279. return tarteaucitron.engage(id);
  1280. });
  1281. }
  1282. };
  1283. // typekit
  1284. tarteaucitron.services.typekit = {
  1285. "key": "typekit",
  1286. "type": "api",
  1287. "name": "Typekit (adobe)",
  1288. "uri": "http://www.adobe.com/fr/privacy.html",
  1289. "needConsent": true,
  1290. "cookies": [],
  1291. "js": function () {
  1292. "use strict";
  1293. if (tarteaucitron.user.typekitId === undefined) {
  1294. return;
  1295. }
  1296. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1297. try {
  1298. Typekit.load();
  1299. } catch (e) {}
  1300. });
  1301. }
  1302. };
  1303. // twenga
  1304. tarteaucitron.services.twenga = {
  1305. "key": "twenga",
  1306. "type": "ads",
  1307. "name": "Twenga",
  1308. "uri": "http://www.twenga.com/privacy.php",
  1309. "needConsent": true,
  1310. "cookies": [],
  1311. "js": function () {
  1312. "use strict";
  1313. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1314. return;
  1315. }
  1316. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1317. }
  1318. };
  1319. // twitter
  1320. tarteaucitron.services.twitter = {
  1321. "key": "twitter",
  1322. "type": "social",
  1323. "name": "Twitter",
  1324. "uri": "https://support.twitter.com/articles/20170514",
  1325. "needConsent": true,
  1326. "cookies": [],
  1327. "js": function () {
  1328. "use strict";
  1329. tarteaucitron.fallback(['tacTwitter'], '');
  1330. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1331. },
  1332. "fallback": function () {
  1333. "use strict";
  1334. var id = 'twitter';
  1335. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1336. }
  1337. };
  1338. // twitter embed
  1339. tarteaucitron.services.twitterembed = {
  1340. "key": "twitterembed",
  1341. "type": "social",
  1342. "name": "Twitter (cards)",
  1343. "uri": "https://support.twitter.com/articles/20170514",
  1344. "needConsent": true,
  1345. "cookies": [],
  1346. "js": function () {
  1347. "use strict";
  1348. var uniqIds = [],
  1349. i,
  1350. e,
  1351. html;
  1352. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1353. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1354. uniqIds.push(uniqId);
  1355. html = '<div id="' + uniqId + '" ';
  1356. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1357. html += 'theme="' + x.getAttribute('theme') + '" ';
  1358. html += 'cards="' + x.getAttribute('cards') + '" ';
  1359. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1360. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1361. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1362. html += '></div>';
  1363. return html;
  1364. });
  1365. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1366. for (i = 0; i < uniqIds.length; i += 1) {
  1367. e = document.getElementById(uniqIds[i]);
  1368. twttr.widgets.createTweet(
  1369. e.getAttribute('tweetid'),
  1370. e,
  1371. {
  1372. theme: e.getAttribute('theme'),
  1373. cards: e.getAttribute('cards'),
  1374. conversation: e.getAttribute('conversation'),
  1375. lang: tarteaucitron.getLanguage(),
  1376. dnt: true,
  1377. width: e.getAttribute('data-width'),
  1378. align: e.getAttribute('data-align')
  1379. }
  1380. );
  1381. }
  1382. });
  1383. },
  1384. "fallback": function () {
  1385. "use strict";
  1386. var id = 'twitterembed';
  1387. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1388. elem.style.width = elem.getAttribute('data-width') + 'px';
  1389. return tarteaucitron.engage(id);
  1390. });
  1391. }
  1392. };
  1393. // twitter timeline
  1394. tarteaucitron.services.twittertimeline = {
  1395. "key": "twittertimeline",
  1396. "type": "social",
  1397. "name": "Twitter (timelines)",
  1398. "uri": "https://support.twitter.com/articles/20170514",
  1399. "needConsent": true,
  1400. "cookies": [],
  1401. "js": function () {
  1402. "use strict";
  1403. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1404. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1405. },
  1406. "fallback": function () {
  1407. "use strict";
  1408. var id = 'twittertimeline';
  1409. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1410. }
  1411. };
  1412. // user voice
  1413. tarteaucitron.services.uservoice = {
  1414. "key": "uservoice",
  1415. "type": "support",
  1416. "name": "UserVoice",
  1417. "uri": "https://www.uservoice.com/privacy/",
  1418. "needConsent": true,
  1419. "cookies": [],
  1420. "js": function () {
  1421. "use strict";
  1422. if (tarteaucitron.user.userVoiceApi === undefined) {
  1423. return;
  1424. }
  1425. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1426. }
  1427. };
  1428. // vimeo
  1429. tarteaucitron.services.vimeo = {
  1430. "key": "vimeo",
  1431. "type": "video",
  1432. "name": "Vimeo",
  1433. "uri": "http://vimeo.com/privacy",
  1434. "needConsent": true,
  1435. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1436. "js": function () {
  1437. "use strict";
  1438. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1439. var video_id = x.getAttribute("videoID"),
  1440. video_width = x.getAttribute("width"),
  1441. frame_width = 'width=',
  1442. video_height = x.getAttribute("height"),
  1443. frame_height = 'height=',
  1444. video_frame;
  1445. if (video_id === undefined) {
  1446. return "";
  1447. }
  1448. if (video_width !== undefined) {
  1449. frame_width += '"' + video_width + '" ';
  1450. } else {
  1451. frame_width += '"" ';
  1452. }
  1453. if (video_height !== undefined) {
  1454. frame_height += '"' + video_height + '" ';
  1455. } else {
  1456. frame_height += '"" ';
  1457. }
  1458. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1459. return video_frame;
  1460. });
  1461. },
  1462. "fallback": function () {
  1463. "use strict";
  1464. var id = 'vimeo';
  1465. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1466. elem.style.width = elem.getAttribute('width') + 'px';
  1467. elem.style.height = elem.getAttribute('height') + 'px';
  1468. return tarteaucitron.engage(id);
  1469. });
  1470. }
  1471. };
  1472. // visualrevenue
  1473. tarteaucitron.services.visualrevenue = {
  1474. "key": "visualrevenue",
  1475. "type": "analytic",
  1476. "name": "VisualRevenue",
  1477. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1478. "needConsent": true,
  1479. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1480. "js": function () {
  1481. "use strict";
  1482. if (tarteaucitron.user.visualrevenueId === undefined) {
  1483. return;
  1484. }
  1485. window._vrq = window._vrq || [];
  1486. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1487. window._vrq.push(['automate', true]);
  1488. window._vrq.push(['track', function () {}]);
  1489. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1490. }
  1491. };
  1492. // vshop
  1493. tarteaucitron.services.vshop = {
  1494. "key": "vshop",
  1495. "type": "ads",
  1496. "name": "vShop",
  1497. "uri": "http://vshop.fr/privacy-policy",
  1498. "needConsent": true,
  1499. "cookies": [],
  1500. "js": function () {
  1501. "use strict";
  1502. tarteaucitron.fallback(['vcashW'], '');
  1503. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1504. },
  1505. "fallback": function () {
  1506. "use strict";
  1507. var id = 'vshop';
  1508. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1509. }
  1510. };
  1511. // wysistat
  1512. tarteaucitron.services.wysistat = {
  1513. "key": "wysistat",
  1514. "type": "analytic",
  1515. "name": "Wysistat",
  1516. "uri": "http://wysistat.net/contact/",
  1517. "needConsent": true,
  1518. "cookies": ['Wysistat'],
  1519. "js": function () {
  1520. "use strict";
  1521. if (tarteaucitron.user.wysistat === undefined) {
  1522. return;
  1523. }
  1524. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1525. window.stat(tarteaucitron.user.wysistat.cli, tarteaucitron.user.wysistat.frm, tarteaucitron.user.wysistat.prm, tarteaucitron.user.wysistat.ce, tarteaucitron.user.wysistat.page, tarteaucitron.user.wysistat.roi, tarteaucitron.user.wysistat.prof, tarteaucitron.user.wysistat.cpt);
  1526. });
  1527. }
  1528. };
  1529. // xiti
  1530. tarteaucitron.services.xiti = {
  1531. "key": "xiti",
  1532. "type": "analytic",
  1533. "name": "Xiti",
  1534. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1535. "needConsent": true,
  1536. "cookies": [],
  1537. "js": function () {
  1538. "use strict";
  1539. if (tarteaucitron.user.xitiId === undefined) {
  1540. return;
  1541. }
  1542. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1543. Xt_r,
  1544. Xt_h,
  1545. Xt_i,
  1546. Xt_s,
  1547. div = document.createElement('div');
  1548. try {
  1549. Xt_r = top.document.referrer;
  1550. } catch (e) {
  1551. Xt_r = document.referrer;
  1552. }
  1553. Xt_h = new Date();
  1554. Xt_i = '<img style="display:none" border="0" alt="" ';
  1555. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1556. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1557. if (parseFloat(navigator.appVersion) >= 4) {
  1558. Xt_s = screen;
  1559. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1560. }
  1561. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1562. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1563. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1564. tarteaucitron.user.xitiMore();
  1565. }
  1566. }
  1567. };
  1568. // youtube
  1569. tarteaucitron.services.youtube = {
  1570. "key": "youtube",
  1571. "type": "video",
  1572. "name": "YouTube",
  1573. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1574. "needConsent": true,
  1575. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1576. "js": function () {
  1577. "use strict";
  1578. tarteaucitron.fallback(['youtube_player'], function (x) {
  1579. var video_id = x.getAttribute("videoID"),
  1580. video_width = x.getAttribute("width"),
  1581. frame_width = 'width=',
  1582. video_height = x.getAttribute("height"),
  1583. frame_height = 'height=',
  1584. video_frame,
  1585. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1586. if (video_id === undefined) {
  1587. return "";
  1588. }
  1589. if (video_width !== undefined) {
  1590. frame_width += '"' + video_width + '" ';
  1591. } else {
  1592. frame_width += '"" ';
  1593. }
  1594. if (video_height !== undefined) {
  1595. frame_height += '"' + video_height + '" ';
  1596. } else {
  1597. frame_height += '"" ';
  1598. }
  1599. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1600. return video_frame;
  1601. });
  1602. },
  1603. "fallback": function () {
  1604. "use strict";
  1605. var id = 'youtube';
  1606. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1607. elem.style.width = elem.getAttribute('width') + 'px';
  1608. elem.style.height = elem.getAttribute('height') + 'px';
  1609. return tarteaucitron.engage(id);
  1610. });
  1611. }
  1612. };
  1613. // youtube playlist
  1614. tarteaucitron.services.youtubeplaylist = {
  1615. "key": "youtubeplaylist",
  1616. "type": "video",
  1617. "name": "YouTube (playlist)",
  1618. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1619. "needConsent": true,
  1620. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1621. "js": function () {
  1622. "use strict";
  1623. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1624. var playlist_id = x.getAttribute("playlistID"),
  1625. video_width = x.getAttribute("width"),
  1626. frame_width = 'width=',
  1627. video_height = x.getAttribute("height"),
  1628. frame_height = 'height=',
  1629. video_frame,
  1630. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1631. if (playlist_id === undefined) {
  1632. return "";
  1633. }
  1634. if (video_width !== undefined) {
  1635. frame_width += '"' + video_width + '" ';
  1636. } else {
  1637. frame_width += '"" ';
  1638. }
  1639. if (video_height !== undefined) {
  1640. frame_height += '"' + video_height + '" ';
  1641. } else {
  1642. frame_height += '"" ';
  1643. }
  1644. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1645. return video_frame;
  1646. });
  1647. },
  1648. "fallback": function () {
  1649. "use strict";
  1650. var id = 'youtubeplaylist';
  1651. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1652. elem.style.width = elem.getAttribute('width') + 'px';
  1653. elem.style.height = elem.getAttribute('height') + 'px';
  1654. return tarteaucitron.engage(id);
  1655. });
  1656. }
  1657. };
  1658. // zopim
  1659. tarteaucitron.services.zopim = {
  1660. "key": "zopim",
  1661. "type": "support",
  1662. "name": "Zopim",
  1663. "uri": "https://www.zopim.com/privacy",
  1664. "needConsent": true,
  1665. "cookies": ['__zlcid', '__zprivacy'],
  1666. "js": function () {
  1667. "use strict";
  1668. if (tarteaucitron.user.zopimID === undefined) {
  1669. return;
  1670. }
  1671. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1672. }
  1673. };
  1674. // xiti smartTag
  1675. tarteaucitron.services.xiti_smarttag = {
  1676. "key": "xiti_smarttag",
  1677. "type": "analytic",
  1678. "name": "Xiti (SmartTag)",
  1679. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  1680. "needConsent": true,
  1681. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1682. "js": function () {
  1683. "use strict";
  1684. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1685. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1686. } else {
  1687. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1688. if (xitiSmarttagId === undefined) {
  1689. return;
  1690. }
  1691. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1692. }
  1693. }
  1694. };
  1695. // facebook pixel
  1696. tarteaucitron.services.facebookpixel = {
  1697. "key": "facebookpixel",
  1698. "type": "ads",
  1699. "name": "Facebook Pixel",
  1700. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1701. "needConsent": true,
  1702. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1703. "js": function () {
  1704. "use strict";
  1705. var n;
  1706. if(window.fbq)return;
  1707. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  1708. if(!window._fbq)window._fbq=n;
  1709. n.push=n;
  1710. n.loaded=!0;
  1711. n.version='2.0';
  1712. n.queue=[];
  1713. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  1714. fbq('init', tarteaucitron.user.facebookpixelId);
  1715. fbq('track', 'PageView');
  1716. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  1717. tarteaucitron.user.facebookpixelMore();
  1718. }
  1719. }
  1720. };
  1721. // webmecanik
  1722. tarteaucitron.services.webmecanik = {
  1723. "key": "webmecanik",
  1724. "type": "analytic",
  1725. "name": "Webmecanik",
  1726. "uri": "https://webmecanik.com/tos",
  1727. "needConsent": true,
  1728. "cookies": ['mtc_id', 'mtc_sid'],
  1729. "js": function () {
  1730. "use strict";
  1731. if (tarteaucitron.user.webmecanikurl === undefined) {
  1732. return;
  1733. }
  1734. window['WebmecanikTrackingObject'] = 'mt';
  1735. window['mt'] = window['mt'] || function() {
  1736. (window['mt'].q = window['mt'].q || []).push(arguments);
  1737. };
  1738. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  1739. mt('send', 'pageview');
  1740. });
  1741. }
  1742. };