tarteaucitron.services.js 68 KB

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