tarteaucitron.services.js 67 KB

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