tarteaucitron.services.js 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924
  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('https://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": (function () {
  817. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  818. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  819. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  820. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie];
  821. })(),
  822. "js": function () {
  823. "use strict";
  824. window.dataLayer = window.dataLayer || [];
  825. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  826. function gtag(){dataLayer.push(arguments);}
  827. gtag('js', new Date());
  828. gtag('config', tarteaucitron.user.gtagUa);
  829. if (typeof tarteaucitron.user.gtagMore === 'function') {
  830. tarteaucitron.user.gtagMore();
  831. }
  832. });
  833. }
  834. };
  835. // google maps
  836. tarteaucitron.services.googlemaps = {
  837. "key": "googlemaps",
  838. "type": "api",
  839. "name": "Google Maps",
  840. "uri": "http://www.google.com/ads/preferences/",
  841. "needConsent": true,
  842. "cookies": [],
  843. "js": function () {
  844. "use strict";
  845. var mapOptions,
  846. map,
  847. uniqIds = [],
  848. i;
  849. if (tarteaucitron.user.mapscallback === undefined) {
  850. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  851. }
  852. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback);
  853. window.tac_googlemaps_callback = function () {
  854. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  855. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  856. uniqIds.push(uniqId);
  857. 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>';
  858. });
  859. for (i = 0; i < uniqIds.length; i += 1) {
  860. mapOptions = {
  861. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  862. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  863. };
  864. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  865. }
  866. };
  867. },
  868. "fallback": function () {
  869. "use strict";
  870. var id = 'googlemaps';
  871. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  872. }
  873. };
  874. // googlemaps search
  875. tarteaucitron.services.googlemapssearch = {
  876. "key": "googlemapssearch",
  877. "type": "api",
  878. "name": "Google Maps Seard API",
  879. "uri": "http://www.google.com/ads/preferences/",
  880. "needConsent": true,
  881. "cookies": ['nid'],
  882. "js": function () {
  883. "use strict";
  884. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  885. var width = x.getAttribute("width"),
  886. height = x.getAttribute("height"),
  887. // url = x.getAttribute("data-url");
  888. query = escape(x.getAttribute("data-search")),
  889. key = x.getAttribute("data-api-key");
  890. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  891. return '<iframe width="' + width +'" height="' + height + '" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
  892. });
  893. },
  894. "fallback": function () {
  895. "use strict";
  896. var id = 'googlemapssearch';
  897. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  898. elem.style.width = elem.getAttribute('width') + 'px';
  899. elem.style.height = elem.getAttribute('height') + 'px';
  900. return tarteaucitron.engage(id);
  901. });
  902. }
  903. };
  904. // google tag manager
  905. tarteaucitron.services.googletagmanager = {
  906. "key": "googletagmanager",
  907. "type": "api",
  908. "name": "Google Tag Manager",
  909. "uri": "http://www.google.com/ads/preferences/",
  910. "needConsent": true,
  911. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  912. "js": function () {
  913. "use strict";
  914. if (tarteaucitron.user.googletagmanagerId === undefined) {
  915. return;
  916. }
  917. window.dataLayer = window.dataLayer || [];
  918. window.dataLayer.push({
  919. 'gtm.start': new Date().getTime(),
  920. event: 'gtm.js'
  921. });
  922. tarteaucitron.addScript('//www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  923. }
  924. };
  925. // jsapi
  926. tarteaucitron.services.jsapi = {
  927. "key": "jsapi",
  928. "type": "api",
  929. "name": "Google jsapi",
  930. "uri": "http://www.google.com/policies/privacy/",
  931. "needConsent": true,
  932. "cookies": [],
  933. "js": function () {
  934. "use strict";
  935. tarteaucitron.addScript('//www.google.com/jsapi');
  936. }
  937. };
  938. // recaptcha
  939. tarteaucitron.services.recaptcha = {
  940. "key": "recaptcha",
  941. "type": "api",
  942. "name": "reCAPTCHA",
  943. "uri": "http://www.google.com/policies/privacy/",
  944. "needConsent": true,
  945. "cookies": ['nid'],
  946. "js": function () {
  947. "use strict";
  948. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
  949. }
  950. };
  951. // linkedin
  952. tarteaucitron.services.linkedin = {
  953. "key": "linkedin",
  954. "type": "social",
  955. "name": "Linkedin",
  956. "uri": "https://www.linkedin.com/legal/cookie_policy",
  957. "needConsent": true,
  958. "cookies": [],
  959. "js": function () {
  960. "use strict";
  961. tarteaucitron.fallback(['tacLinkedin'], '');
  962. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  963. if (tarteaucitron.isAjax === true) {
  964. if (typeof IN !== "undefined") {
  965. IN.parse();
  966. }
  967. }
  968. },
  969. "fallback": function () {
  970. "use strict";
  971. var id = 'linkedin';
  972. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  973. }
  974. };
  975. // mautic
  976. tarteaucitron.services.mautic = {
  977. "key": "mautic",
  978. "type": "analytic",
  979. "name": "Mautic",
  980. "uri": "https://www.mautic.org/privacy-policy/",
  981. "needConsent": true,
  982. "cookies": ['mtc_id', 'mtc_sid'],
  983. "js": function () {
  984. "use strict";
  985. if (tarteaucitron.user.mauticurl === undefined) {
  986. return;
  987. }
  988. window['MauticTrackingObject'] = 'mt';
  989. window['mt'] = window['mt'] || function() {
  990. (window['mt'].q = window['mt'].q || []).push(arguments);
  991. };
  992. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  993. mt('send', 'pageview');
  994. });
  995. }
  996. };
  997. // microsoftcampaignanalytics
  998. tarteaucitron.services.microsoftcampaignanalytics = {
  999. "key": "microsoftcampaignanalytics",
  1000. "type": "analytic",
  1001. "name": "Microsoft Campaign Analytics",
  1002. "uri": "https://privacy.microsoft.com/privacystatement/",
  1003. "needConsent": true,
  1004. "cookies": [],
  1005. "js": function () {
  1006. "use strict";
  1007. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1008. return;
  1009. }
  1010. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1011. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1012. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1013. });
  1014. }
  1015. };
  1016. // pinterest
  1017. tarteaucitron.services.pinterest = {
  1018. "key": "pinterest",
  1019. "type": "social",
  1020. "name": "Pinterest",
  1021. "uri": "https://about.pinterest.com/privacy-policy",
  1022. "needConsent": true,
  1023. "cookies": [],
  1024. "js": function () {
  1025. "use strict";
  1026. tarteaucitron.fallback(['tacPinterest'], '');
  1027. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1028. },
  1029. "fallback": function () {
  1030. "use strict";
  1031. var id = 'pinterest';
  1032. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1033. }
  1034. };
  1035. // prelinker
  1036. tarteaucitron.services.prelinker = {
  1037. "key": "prelinker",
  1038. "type": "ads",
  1039. "name": "Prelinker",
  1040. "uri": "http://www.prelinker.com/index/index/cgu/",
  1041. "needConsent": true,
  1042. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1043. "js": function () {
  1044. "use strict";
  1045. var uniqIds = [],
  1046. i,
  1047. uri;
  1048. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1049. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1050. uniqIds.push(uniqId);
  1051. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1052. });
  1053. for (i = 0; i < uniqIds.length; i += 1) {
  1054. uri = 'http://promo.easy-dating.org/banner/index?';
  1055. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1056. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1057. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1058. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1059. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1060. }
  1061. },
  1062. "fallback": function () {
  1063. "use strict";
  1064. var id = 'prelinker';
  1065. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1066. }
  1067. };
  1068. // prezi
  1069. tarteaucitron.services.prezi = {
  1070. "key": "prezi",
  1071. "type": "video",
  1072. "name": "Prezi",
  1073. "uri": "https://prezi.com/privacy-policy/",
  1074. "needConsent": true,
  1075. "cookies": [],
  1076. "js": function () {
  1077. "use strict";
  1078. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1079. var id = x.getAttribute("data-id"),
  1080. width = x.getAttribute("width"),
  1081. height = x.getAttribute("height"),
  1082. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1083. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1084. });
  1085. },
  1086. "fallback": function () {
  1087. "use strict";
  1088. var id = 'prezi';
  1089. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1090. elem.style.width = elem.getAttribute('width') + 'px';
  1091. elem.style.height = elem.getAttribute('height') + 'px';
  1092. return tarteaucitron.engage(id);
  1093. });
  1094. }
  1095. };
  1096. // pubdirecte
  1097. tarteaucitron.services.pubdirecte = {
  1098. "key": "pubdirecte",
  1099. "type": "ads",
  1100. "name": "Pubdirecte",
  1101. "uri": "http://pubdirecte.com/contact.php",
  1102. "needConsent": true,
  1103. "cookies": [],
  1104. "js": function () {
  1105. "use strict";
  1106. var uniqIds = [],
  1107. i,
  1108. uri;
  1109. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1110. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1111. uniqIds.push(uniqId);
  1112. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1113. });
  1114. for (i = 0; i < uniqIds.length; i += 1) {
  1115. uri = '//www.pubdirecte.com/script/banniere.php?';
  1116. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1117. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1118. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1119. }
  1120. },
  1121. "fallback": function () {
  1122. "use strict";
  1123. var id = 'pubdirecte';
  1124. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1125. }
  1126. };
  1127. // purechat
  1128. tarteaucitron.services.purechat = {
  1129. "key": "purechat",
  1130. "type": "support",
  1131. "name": "PureChat",
  1132. "uri": "https://www.purechat.com/privacy",
  1133. "needConsent": true,
  1134. "cookies": [],
  1135. "js": function () {
  1136. "use strict";
  1137. if (tarteaucitron.user.purechatId === undefined) {
  1138. return;
  1139. }
  1140. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1141. try {
  1142. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1143. } catch (e) {}
  1144. });
  1145. }
  1146. };
  1147. // shareaholic
  1148. tarteaucitron.services.shareaholic = {
  1149. "key": "shareaholic",
  1150. "type": "social",
  1151. "name": "Shareaholic",
  1152. "uri": "https://shareaholic.com/privacy/choices",
  1153. "needConsent": true,
  1154. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1155. "js": function () {
  1156. "use strict";
  1157. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1158. return;
  1159. }
  1160. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1161. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1162. try {
  1163. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1164. } catch (e) {}
  1165. });
  1166. },
  1167. "fallback": function () {
  1168. "use strict";
  1169. var id = 'shareaholic';
  1170. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1171. }
  1172. };
  1173. // shareasale
  1174. tarteaucitron.services.shareasale = {
  1175. "key": "shareasale",
  1176. "type": "ads",
  1177. "name": "ShareASale",
  1178. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1179. "needConsent": true,
  1180. "cookies": [],
  1181. "js": function () {
  1182. "use strict";
  1183. var uniqIds = [],
  1184. i,
  1185. uri;
  1186. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1187. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1188. uniqIds.push(uniqId);
  1189. 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>';
  1190. });
  1191. for (i = 0; i < uniqIds.length; i += 1) {
  1192. uri = 'https://shareasale.com/sale.cfm?';
  1193. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1194. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1195. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1196. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1197. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1198. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1199. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1200. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1201. }
  1202. },
  1203. "fallback": function () {
  1204. "use strict";
  1205. var id = 'shareasale';
  1206. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1207. }
  1208. };
  1209. // sharethis
  1210. tarteaucitron.services.sharethis = {
  1211. "key": "sharethis",
  1212. "type": "social",
  1213. "name": "ShareThis",
  1214. "uri": "http://www.sharethis.com/legal/privacy/",
  1215. "needConsent": true,
  1216. "cookies": ['__unam'],
  1217. "js": function () {
  1218. "use strict";
  1219. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1220. return;
  1221. }
  1222. var switchTo5x = true,
  1223. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1224. tarteaucitron.fallback(['tacSharethis'], '');
  1225. tarteaucitron.addScript(uri, '', function () {
  1226. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1227. });
  1228. if (tarteaucitron.isAjax === true) {
  1229. if (typeof stButtons !== "undefined") {
  1230. stButtons.locateElements();
  1231. }
  1232. }
  1233. },
  1234. "fallback": function () {
  1235. "use strict";
  1236. var id = 'sharethis';
  1237. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1238. }
  1239. };
  1240. // slideshare
  1241. tarteaucitron.services.slideshare = {
  1242. "key": "slideshare",
  1243. "type": "video",
  1244. "name": "SlideShare",
  1245. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1246. "needConsent": true,
  1247. "cookies": [],
  1248. "js": function () {
  1249. "use strict";
  1250. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1251. var id = x.getAttribute("data-id"),
  1252. width = x.getAttribute("width"),
  1253. height = x.getAttribute("height"),
  1254. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1255. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1256. });
  1257. },
  1258. "fallback": function () {
  1259. "use strict";
  1260. var id = 'slideshare';
  1261. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1262. elem.style.width = elem.getAttribute('width') + 'px';
  1263. elem.style.height = elem.getAttribute('height') + 'px';
  1264. return tarteaucitron.engage(id);
  1265. });
  1266. }
  1267. };
  1268. // statcounter
  1269. tarteaucitron.services.statcounter = {
  1270. "key": "statcounter",
  1271. "type": "analytic",
  1272. "name": "StatCounter",
  1273. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1274. "needConsent": true,
  1275. "cookies": ['sc_is_visitor_unique'],
  1276. "js": function () {
  1277. "use strict";
  1278. var uniqIds = [],
  1279. i,
  1280. uri = '//statcounter.com/counter/counter.js';
  1281. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1282. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1283. uniqIds.push(uniqId);
  1284. return '<div id="' + uniqId + '"></div>';
  1285. });
  1286. for (i = 0; i < uniqIds.length; i += 1) {
  1287. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1288. }
  1289. },
  1290. "fallback": function () {
  1291. "use strict";
  1292. var id = 'statcounter';
  1293. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1294. }
  1295. };
  1296. // timelinejs
  1297. tarteaucitron.services.timelinejs = {
  1298. "key": "timelinejs",
  1299. "type": "api",
  1300. "name": "Timeline JS",
  1301. "uri": "http://timeline.knightlab.com/#help",
  1302. "needConsent": true,
  1303. "cookies": [],
  1304. "js": function () {
  1305. "use strict";
  1306. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1307. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1308. width = x.getAttribute("width"),
  1309. height = x.getAttribute("height"),
  1310. lang = x.getAttribute("lang_2_letter"),
  1311. font = x.getAttribute("font"),
  1312. map = x.getAttribute("map"),
  1313. start_at_end = x.getAttribute("start_at_end"),
  1314. hash_bookmark = x.getAttribute("hash_bookmark"),
  1315. start_at_slide = x.getAttribute("start_at_slide"),
  1316. start_zoom = x.getAttribute("start_zoom"),
  1317. 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;
  1318. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1319. });
  1320. },
  1321. "fallback": function () {
  1322. "use strict";
  1323. var id = 'timelinejs';
  1324. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1325. elem.style.width = elem.getAttribute('width') + 'px';
  1326. elem.style.height = elem.getAttribute('height') + 'px';
  1327. return tarteaucitron.engage(id);
  1328. });
  1329. }
  1330. };
  1331. // typekit
  1332. tarteaucitron.services.typekit = {
  1333. "key": "typekit",
  1334. "type": "api",
  1335. "name": "Typekit (adobe)",
  1336. "uri": "http://www.adobe.com/fr/privacy.html",
  1337. "needConsent": true,
  1338. "cookies": [],
  1339. "js": function () {
  1340. "use strict";
  1341. if (tarteaucitron.user.typekitId === undefined) {
  1342. return;
  1343. }
  1344. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1345. try {
  1346. Typekit.load();
  1347. } catch (e) {}
  1348. });
  1349. }
  1350. };
  1351. // twenga
  1352. tarteaucitron.services.twenga = {
  1353. "key": "twenga",
  1354. "type": "ads",
  1355. "name": "Twenga",
  1356. "uri": "http://www.twenga.com/privacy.php",
  1357. "needConsent": true,
  1358. "cookies": [],
  1359. "js": function () {
  1360. "use strict";
  1361. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1362. return;
  1363. }
  1364. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1365. }
  1366. };
  1367. // twitter
  1368. tarteaucitron.services.twitter = {
  1369. "key": "twitter",
  1370. "type": "social",
  1371. "name": "Twitter",
  1372. "uri": "https://support.twitter.com/articles/20170514",
  1373. "needConsent": true,
  1374. "cookies": [],
  1375. "js": function () {
  1376. "use strict";
  1377. tarteaucitron.fallback(['tacTwitter'], '');
  1378. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1379. },
  1380. "fallback": function () {
  1381. "use strict";
  1382. var id = 'twitter';
  1383. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1384. }
  1385. };
  1386. // twitter embed
  1387. tarteaucitron.services.twitterembed = {
  1388. "key": "twitterembed",
  1389. "type": "social",
  1390. "name": "Twitter (cards)",
  1391. "uri": "https://support.twitter.com/articles/20170514",
  1392. "needConsent": true,
  1393. "cookies": [],
  1394. "js": function () {
  1395. "use strict";
  1396. var uniqIds = [],
  1397. i,
  1398. e,
  1399. html;
  1400. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1401. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1402. uniqIds.push(uniqId);
  1403. html = '<div id="' + uniqId + '" ';
  1404. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1405. html += 'theme="' + x.getAttribute('theme') + '" ';
  1406. html += 'cards="' + x.getAttribute('cards') + '" ';
  1407. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1408. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1409. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1410. html += '></div>';
  1411. return html;
  1412. });
  1413. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1414. for (i = 0; i < uniqIds.length; i += 1) {
  1415. e = document.getElementById(uniqIds[i]);
  1416. twttr.widgets.createTweet(
  1417. e.getAttribute('tweetid'),
  1418. e,
  1419. {
  1420. theme: e.getAttribute('theme'),
  1421. cards: e.getAttribute('cards'),
  1422. conversation: e.getAttribute('conversation'),
  1423. lang: tarteaucitron.getLanguage(),
  1424. dnt: true,
  1425. width: e.getAttribute('data-width'),
  1426. align: e.getAttribute('data-align')
  1427. }
  1428. );
  1429. }
  1430. });
  1431. },
  1432. "fallback": function () {
  1433. "use strict";
  1434. var id = 'twitterembed';
  1435. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1436. elem.style.width = elem.getAttribute('data-width') + 'px';
  1437. return tarteaucitron.engage(id);
  1438. });
  1439. }
  1440. };
  1441. // twitter timeline
  1442. tarteaucitron.services.twittertimeline = {
  1443. "key": "twittertimeline",
  1444. "type": "social",
  1445. "name": "Twitter (timelines)",
  1446. "uri": "https://support.twitter.com/articles/20170514",
  1447. "needConsent": true,
  1448. "cookies": [],
  1449. "js": function () {
  1450. "use strict";
  1451. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1452. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1453. },
  1454. "fallback": function () {
  1455. "use strict";
  1456. var id = 'twittertimeline';
  1457. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1458. }
  1459. };
  1460. // user voice
  1461. tarteaucitron.services.uservoice = {
  1462. "key": "uservoice",
  1463. "type": "support",
  1464. "name": "UserVoice",
  1465. "uri": "https://www.uservoice.com/privacy/",
  1466. "needConsent": true,
  1467. "cookies": [],
  1468. "js": function () {
  1469. "use strict";
  1470. if (tarteaucitron.user.userVoiceApi === undefined) {
  1471. return;
  1472. }
  1473. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1474. }
  1475. };
  1476. // vimeo
  1477. tarteaucitron.services.vimeo = {
  1478. "key": "vimeo",
  1479. "type": "video",
  1480. "name": "Vimeo",
  1481. "uri": "http://vimeo.com/privacy",
  1482. "needConsent": true,
  1483. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1484. "js": function () {
  1485. "use strict";
  1486. tarteaucitron.fallback(['vimeo_player'], function (x) {
  1487. var video_id = x.getAttribute("videoID"),
  1488. video_width = x.getAttribute("width"),
  1489. frame_width = 'width=',
  1490. video_height = x.getAttribute("height"),
  1491. frame_height = 'height=',
  1492. video_frame;
  1493. if (video_id === undefined) {
  1494. return "";
  1495. }
  1496. if (video_width !== undefined) {
  1497. frame_width += '"' + video_width + '" ';
  1498. } else {
  1499. frame_width += '"" ';
  1500. }
  1501. if (video_height !== undefined) {
  1502. frame_height += '"' + video_height + '" ';
  1503. } else {
  1504. frame_height += '"" ';
  1505. }
  1506. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  1507. return video_frame;
  1508. });
  1509. },
  1510. "fallback": function () {
  1511. "use strict";
  1512. var id = 'vimeo';
  1513. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  1514. elem.style.width = elem.getAttribute('width') + 'px';
  1515. elem.style.height = elem.getAttribute('height') + 'px';
  1516. return tarteaucitron.engage(id);
  1517. });
  1518. }
  1519. };
  1520. // visualrevenue
  1521. tarteaucitron.services.visualrevenue = {
  1522. "key": "visualrevenue",
  1523. "type": "analytic",
  1524. "name": "VisualRevenue",
  1525. "uri": "http://www.outbrain.com/legal/privacy-713/",
  1526. "needConsent": true,
  1527. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  1528. "js": function () {
  1529. "use strict";
  1530. if (tarteaucitron.user.visualrevenueId === undefined) {
  1531. return;
  1532. }
  1533. window._vrq = window._vrq || [];
  1534. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  1535. window._vrq.push(['automate', true]);
  1536. window._vrq.push(['track', function () {}]);
  1537. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  1538. }
  1539. };
  1540. // vshop
  1541. tarteaucitron.services.vshop = {
  1542. "key": "vshop",
  1543. "type": "ads",
  1544. "name": "vShop",
  1545. "uri": "http://vshop.fr/privacy-policy",
  1546. "needConsent": true,
  1547. "cookies": [],
  1548. "js": function () {
  1549. "use strict";
  1550. tarteaucitron.fallback(['vcashW'], '');
  1551. tarteaucitron.addScript('//vshop.fr/js/w.js');
  1552. },
  1553. "fallback": function () {
  1554. "use strict";
  1555. var id = 'vshop';
  1556. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  1557. }
  1558. };
  1559. // wysistat
  1560. tarteaucitron.services.wysistat = {
  1561. "key": "wysistat",
  1562. "type": "analytic",
  1563. "name": "Wysistat",
  1564. "uri": "http://wysistat.net/contact/",
  1565. "needConsent": true,
  1566. "cookies": ['Wysistat'],
  1567. "js": function () {
  1568. "use strict";
  1569. if (tarteaucitron.user.wysistat === undefined) {
  1570. return;
  1571. }
  1572. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  1573. 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);
  1574. });
  1575. }
  1576. };
  1577. // xiti
  1578. tarteaucitron.services.xiti = {
  1579. "key": "xiti",
  1580. "type": "analytic",
  1581. "name": "Xiti",
  1582. "uri": "http://www.atinternet.com/politique-du-respect-de-la-vie-privee/",
  1583. "needConsent": true,
  1584. "cookies": [],
  1585. "js": function () {
  1586. "use strict";
  1587. if (tarteaucitron.user.xitiId === undefined) {
  1588. return;
  1589. }
  1590. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  1591. Xt_r,
  1592. Xt_h,
  1593. Xt_i,
  1594. Xt_s,
  1595. div = document.createElement('div');
  1596. try {
  1597. Xt_r = top.document.referrer;
  1598. } catch (e) {
  1599. Xt_r = document.referrer;
  1600. }
  1601. Xt_h = new Date();
  1602. Xt_i = '<img style="display:none" border="0" alt="" ';
  1603. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  1604. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  1605. if (parseFloat(navigator.appVersion) >= 4) {
  1606. Xt_s = screen;
  1607. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  1608. }
  1609. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  1610. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  1611. if (typeof tarteaucitron.user.xitiMore === 'function') {
  1612. tarteaucitron.user.xitiMore();
  1613. }
  1614. }
  1615. };
  1616. // youtube
  1617. tarteaucitron.services.youtube = {
  1618. "key": "youtube",
  1619. "type": "video",
  1620. "name": "YouTube",
  1621. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1622. "needConsent": true,
  1623. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1624. "js": function () {
  1625. "use strict";
  1626. tarteaucitron.fallback(['youtube_player'], function (x) {
  1627. var video_id = x.getAttribute("videoID"),
  1628. video_width = x.getAttribute("width"),
  1629. frame_width = 'width=',
  1630. video_height = x.getAttribute("height"),
  1631. frame_height = 'height=',
  1632. video_frame,
  1633. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1634. if (video_id === undefined) {
  1635. return "";
  1636. }
  1637. if (video_width !== undefined) {
  1638. frame_width += '"' + video_width + '" ';
  1639. } else {
  1640. frame_width += '"" ';
  1641. }
  1642. if (video_height !== undefined) {
  1643. frame_height += '"' + video_height + '" ';
  1644. } else {
  1645. frame_height += '"" ';
  1646. }
  1647. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0"></iframe>';
  1648. return video_frame;
  1649. });
  1650. },
  1651. "fallback": function () {
  1652. "use strict";
  1653. var id = 'youtube';
  1654. tarteaucitron.fallback(['youtube_player'], function (elem) {
  1655. elem.style.width = elem.getAttribute('width') + 'px';
  1656. elem.style.height = elem.getAttribute('height') + 'px';
  1657. return tarteaucitron.engage(id);
  1658. });
  1659. }
  1660. };
  1661. // youtube playlist
  1662. tarteaucitron.services.youtubeplaylist = {
  1663. "key": "youtubeplaylist",
  1664. "type": "video",
  1665. "name": "YouTube (playlist)",
  1666. "uri": "https://www.google.fr/intl/fr/policies/privacy/",
  1667. "needConsent": true,
  1668. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  1669. "js": function () {
  1670. "use strict";
  1671. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  1672. var playlist_id = x.getAttribute("playlistID"),
  1673. video_width = x.getAttribute("width"),
  1674. frame_width = 'width=',
  1675. video_height = x.getAttribute("height"),
  1676. frame_height = 'height=',
  1677. video_frame,
  1678. params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay");
  1679. if (playlist_id === undefined) {
  1680. return "";
  1681. }
  1682. if (video_width !== undefined) {
  1683. frame_width += '"' + video_width + '" ';
  1684. } else {
  1685. frame_width += '"" ';
  1686. }
  1687. if (video_height !== undefined) {
  1688. frame_height += '"' + video_height + '" ';
  1689. } else {
  1690. frame_height += '"" ';
  1691. }
  1692. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" frameborder="0"></iframe>';
  1693. return video_frame;
  1694. });
  1695. },
  1696. "fallback": function () {
  1697. "use strict";
  1698. var id = 'youtubeplaylist';
  1699. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  1700. elem.style.width = elem.getAttribute('width') + 'px';
  1701. elem.style.height = elem.getAttribute('height') + 'px';
  1702. return tarteaucitron.engage(id);
  1703. });
  1704. }
  1705. };
  1706. // zopim
  1707. tarteaucitron.services.zopim = {
  1708. "key": "zopim",
  1709. "type": "support",
  1710. "name": "Zopim",
  1711. "uri": "https://www.zopim.com/privacy",
  1712. "needConsent": true,
  1713. "cookies": ['__zlcid', '__zprivacy'],
  1714. "js": function () {
  1715. "use strict";
  1716. if (tarteaucitron.user.zopimID === undefined) {
  1717. return;
  1718. }
  1719. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  1720. }
  1721. };
  1722. // xiti smartTag
  1723. tarteaucitron.services.xiti_smarttag = {
  1724. "key": "xiti_smarttag",
  1725. "type": "analytic",
  1726. "name": "Xiti (SmartTag)",
  1727. "uri": "https://www.atinternet.com/societe/protection-des-donnees/",
  1728. "needConsent": true,
  1729. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  1730. "js": function () {
  1731. "use strict";
  1732. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  1733. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  1734. } else {
  1735. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  1736. if (xitiSmarttagId === undefined) {
  1737. return;
  1738. }
  1739. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  1740. }
  1741. }
  1742. };
  1743. // facebook pixel
  1744. tarteaucitron.services.facebookpixel = {
  1745. "key": "facebookpixel",
  1746. "type": "ads",
  1747. "name": "Facebook Pixel",
  1748. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  1749. "needConsent": true,
  1750. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  1751. "js": function () {
  1752. "use strict";
  1753. var n;
  1754. if(window.fbq)return;
  1755. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  1756. if(!window._fbq)window._fbq=n;
  1757. n.push=n;
  1758. n.loaded=!0;
  1759. n.version='2.0';
  1760. n.queue=[];
  1761. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  1762. fbq('init', tarteaucitron.user.facebookpixelId);
  1763. fbq('track', 'PageView');
  1764. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  1765. tarteaucitron.user.facebookpixelMore();
  1766. }
  1767. }
  1768. };
  1769. // webmecanik
  1770. tarteaucitron.services.webmecanik = {
  1771. "key": "webmecanik",
  1772. "type": "analytic",
  1773. "name": "Webmecanik",
  1774. "uri": "https://webmecanik.com/tos",
  1775. "needConsent": true,
  1776. "cookies": ['mtc_id', 'mtc_sid'],
  1777. "js": function () {
  1778. "use strict";
  1779. if (tarteaucitron.user.webmecanikurl === undefined) {
  1780. return;
  1781. }
  1782. window['WebmecanikTrackingObject'] = 'mt';
  1783. window['mt'] = window['mt'] || function() {
  1784. (window['mt'].q = window['mt'].q || []).push(arguments);
  1785. };
  1786. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  1787. mt('send', 'pageview');
  1788. });
  1789. }
  1790. };