tarteaucitron.services.js 178 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893
  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 frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")),
  15. width = x.getAttribute("width"),
  16. height = x.getAttribute("height"),
  17. allowfullscreen = x.getAttribute("allowfullscreen"),
  18. url = x.getAttribute("data-url");
  19. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  20. });
  21. },
  22. "fallback": function () {
  23. "use strict";
  24. var id = 'iframe';
  25. tarteaucitron.fallback(['tac_iframe'], function (elem) {
  26. elem.style.width = elem.getAttribute('width') + 'px';
  27. elem.style.height = elem.getAttribute('height') + 'px';
  28. return tarteaucitron.engage(id);
  29. });
  30. }
  31. };
  32. // pinterestpixel
  33. tarteaucitron.services.pinterestpixel = {
  34. "key": "pinterestpixel",
  35. "type": "ads",
  36. "name": "Pinterest Pixel",
  37. "uri": "https://help.pinterest.com/fr/business/article/track-conversions-with-pinterest-tag",
  38. "needConsent": true,
  39. "cookies": ['_pinterest_sess', '_pinterest_ct', '_pinterest_ct_mw', '_pinterest_ct_rt', '_epik', '_derived_epik', '_pin_unauth', '_pinterest_ct_ua'],
  40. "js": function () {
  41. "use strict";
  42. if (tarteaucitron.user.pinterestpixelId === undefined) {
  43. return;
  44. }
  45. if (!window.pintrk) {
  46. window.pintrk = function () {
  47. window.pintrk.queue.push(Array.prototype.slice.call(arguments));
  48. };
  49. var n = window.pintrk;
  50. n.queue = [];
  51. n.version = "3.0";
  52. tarteaucitron.addScript('https://s.pinimg.com/ct/core.js', '', function () {
  53. window.pintrk('load', tarteaucitron.user.pinterestpixelId);
  54. window.pintrk('page');
  55. });
  56. }
  57. }
  58. };
  59. // elfsight
  60. tarteaucitron.services.elfsight = {
  61. "key": "elfsight",
  62. "type": "support",
  63. "name": "Elfsight",
  64. "uri": "https://elfsight.com/privacy-policy/",
  65. "needConsent": true,
  66. "cookies": ['__cfduid', '_p_hfp_client_id', 'session_id'],
  67. "js": function () {
  68. "use strict";
  69. tarteaucitron.addScript('https://apps.elfsight.com/p/platform.js');
  70. }
  71. };
  72. // plezi
  73. tarteaucitron.services.plezi = {
  74. "key": "plezi",
  75. "type": "analytic",
  76. "name": "Plezi",
  77. "uri": "https://www.plezi.co/fr/mentions-legales/",
  78. "needConsent": true,
  79. "cookies": [],
  80. "js": function () {
  81. "use strict";
  82. if (tarteaucitron.user.pleziTenant === undefined || tarteaucitron.user.pleziTw === undefined) {
  83. return;
  84. }
  85. tarteaucitron.addScript('https://app.plezi.co/scripts/ossleads_analytics.js?tenant=' + tarteaucitron.user.pleziTenant + '&tw=' + tarteaucitron.user.pleziTw);
  86. }
  87. };
  88. // smartsupp
  89. tarteaucitron.services.smartsupp = {
  90. "key": "smartsupp",
  91. "type": "support",
  92. "name": "Smartsupp",
  93. "uri": "https://www.smartsupp.com/help/privacy/",
  94. "needConsent": true,
  95. "cookies": ['ssupp.vid', 'ssupp.visits', 'AWSALB', 'AWSALBCORS'],
  96. "js": function () {
  97. "use strict";
  98. if (tarteaucitron.user.smartsuppKey === undefined) {
  99. return;
  100. }
  101. window._smartsupp = window._smartsupp || {};
  102. window._smartsupp.key = tarteaucitron.user.smartsuppKey;
  103. window.smartsupp = function () {
  104. window.smartsupp._.push(arguments)
  105. };
  106. window.smartsupp._ = [];
  107. tarteaucitron.addScript('https://www.smartsuppchat.com/loader.js');
  108. }
  109. };
  110. // sharpspring
  111. tarteaucitron.services.sharpspring = {
  112. "key": "sharpspring",
  113. "type": "analytic",
  114. "name": "SharpSpring",
  115. "uri": "https://sharpspring.com/legal/sharpspring-cookie-policy/",
  116. "needConsent": true,
  117. "cookies": ['koitk', '__ss', '__ss_tk', '__ss_referrer'],
  118. "js": function () {
  119. "use strict";
  120. if (tarteaucitron.user.ssId === undefined || tarteaucitron.user.ssAccount === undefined) {
  121. return;
  122. }
  123. window._ss = window._ss || [];
  124. window._ss.push(['_setDomain', 'https://' + tarteaucitron.user.ssId + '.marketingautomation.services/net']);
  125. window._ss.push(['_setAccount', tarteaucitron.user.ssAccount]);
  126. window._ss.push(['_trackPageView']);
  127. window._pa = window._pa || {};
  128. tarteaucitron.addScript('https://' + tarteaucitron.user.ssId + '.marketingautomation.services/client/ss.js');
  129. }
  130. };
  131. // pardot
  132. tarteaucitron.services.pardot = {
  133. "key": "pardot",
  134. "type": "analytic",
  135. "name": "Pardot",
  136. "uri": "https://www.salesforce.com/company/privacy/full_privacy/",
  137. "needConsent": true,
  138. "cookies": ['visitor_id'],
  139. "js": function () {
  140. "use strict";
  141. if (tarteaucitron.user.piAId === undefined || tarteaucitron.user.piCId === undefined) {
  142. return;
  143. }
  144. window.piAId = tarteaucitron.user.piAId;
  145. window.piCId = tarteaucitron.user.piCId;
  146. window.piHostname = 'pi.pardot.com';
  147. tarteaucitron.addScript('https://pi.pardot.com/pd.js');
  148. }
  149. };
  150. // Open Web Analytics
  151. tarteaucitron.services.openwebanalytics = {
  152. "key": "openwebanalytics",
  153. "type": "analytic",
  154. "name": "Open Web Analytics",
  155. "uri": "",
  156. "needConsent": true,
  157. "cookies": [],
  158. "js": function () {
  159. "use strict";
  160. if (tarteaucitron.user.openwebanalyticsId === undefined || tarteaucitron.user.openwebanalyticsHost === undefined) {
  161. return;
  162. }
  163. window.owa_baseUrl = tarteaucitron.user.openwebanalyticsHost;
  164. window.owa_cmds = window.owa_cmds || [];
  165. window.owa_cmds.push(['setSiteId', tarteaucitron.user.openwebanalyticsId]);
  166. window.owa_cmds.push(['trackPageView']);
  167. window.owa_cmds.push(['trackClicks']);
  168. tarteaucitron.addScript(window.owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js');
  169. }
  170. };
  171. // xandr universal pixel
  172. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/universal-pixel-overview.html
  173. tarteaucitron.services.xandr = {
  174. "key": "xandr",
  175. "type": "ads",
  176. "name": "Xandr (Universal)",
  177. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  178. "needConsent": true,
  179. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  180. "js": function () {
  181. "use strict";
  182. if (tarteaucitron.user.xandrId === undefined) {
  183. return;
  184. }
  185. if (!window.pixie) {
  186. var n = window.pixie = function (e, i, a) {
  187. n.actionQueue.push({
  188. action: e,
  189. actionValue: i,
  190. params: a
  191. })
  192. };
  193. n.actionQueue = [];
  194. }
  195. tarteaucitron.addScript('https://acdn.adnxs.com/dmp/up/pixie.js', '', function () {
  196. window.pixie('init', tarteaucitron.user.xandrId);
  197. window.pixie('event', 'PageView');
  198. });
  199. }
  200. };
  201. // xandr segment
  202. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/segment-pixels-advanced.html
  203. tarteaucitron.services.xandrsegment = {
  204. "key": "xandrsegment",
  205. "type": "ads",
  206. "name": "Xandr (Segment)",
  207. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  208. "needConsent": true,
  209. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  210. "js": function () {
  211. "use strict";
  212. var uniqIds = [],
  213. i,
  214. uri;
  215. tarteaucitron.fallback(['xandrsegment-canvas'], function (x) {
  216. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  217. uniqIds.push(uniqId);
  218. return '<div id="' + uniqId + '" xandrsegmentAdd="' + x.getAttribute('xandrsegmentAdd') + '" xandrsegmentAddCode="' + x.getAttribute('xandrsegmentAddCode') + '" xandrsegmentRemove="' + x.getAttribute('xandrsegmentRemove') + '" xandrsegmentRemoveCode="' + x.getAttribute('xandrsegmentRemoveCode') + '" xandrsegmentMember="' + x.getAttribute('xandrsegmentMember') + '" xandrsegmentRedir="' + x.getAttribute('xandrsegmentRedir') + '" xandrsegmentValue="' + x.getAttribute('xandrsegmentValue') + '" xandrsegmentOther="' + x.getAttribute('xandrsegmentOther') + '"></div>';
  219. });
  220. for (i = 0; i < uniqIds.length; i += 1) {
  221. uri = '//ib.adnxs.com/seg?t=2&';
  222. uri += 'add=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentAdd') + '&';
  223. uri += 'add_code=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentAddCode') + '&';
  224. uri += 'remove=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRemove') + '&';
  225. uri += 'remove_code=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRemoveCode') + '&';
  226. uri += 'member=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentMember') + '&';
  227. uri += 'redir=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentRedir') + '&';
  228. uri += 'value=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentValue') + '&';
  229. uri += 'other=' + document.getElementById(uniqIds[i]).getAttribute('xandrsegmentOther');
  230. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  231. }
  232. },
  233. "fallback": function () {
  234. "use strict";
  235. var id = 'xandrsegment';
  236. tarteaucitron.fallback(['xandrsegment-canvas'], tarteaucitron.engage(id));
  237. }
  238. };
  239. // xandr conversion
  240. // https://docs.xandr.com/bundle/invest_invest-standard/page/topics/working-with-conversion-pixels.html
  241. tarteaucitron.services.xandrconversion = {
  242. "key": "xandrconversion",
  243. "type": "ads",
  244. "name": "Xandr (Conversion)",
  245. "uri": "https://www.xandr.com/privacy/cookie-policy/",
  246. "needConsent": true,
  247. "cookies": ['uuid2', 'uids', 'sess', 'icu', 'anj', 'usersync'],
  248. "js": function () {
  249. "use strict";
  250. var uniqIds = [],
  251. i,
  252. uri;
  253. tarteaucitron.fallback(['xandrconversion-canvas'], function (x) {
  254. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  255. uniqIds.push(uniqId);
  256. return '<div id="' + uniqId + '" xandrconversionId="' + x.getAttribute('xandrconversionId') + '" xandrconversionSeg="' + x.getAttribute('xandrconversionSeg') + '" xandrconversionOrderId="' + x.getAttribute('xandrconversionOrderId') + '" xandrconversionValue="' + x.getAttribute('xandrconversionValue') + '" xandrconversionRedir="' + x.getAttribute('xandrconversionRedir') + '" xandrconversionOther="' + x.getAttribute('xandrconversionOther') + '"></div>';
  257. });
  258. for (i = 0; i < uniqIds.length; i += 1) {
  259. uri = '//ib.adnxs.com/px?t=2&';
  260. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionId') + '&';
  261. uri += 'seg=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionSeg') + '&';
  262. uri += 'order_id=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionOrderId') + '&';
  263. uri += 'value=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionValue') + '&';
  264. uri += 'redir=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionRedir') + '&';
  265. uri += 'other=' + document.getElementById(uniqIds[i]).getAttribute('xandrconversionOther');
  266. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  267. }
  268. },
  269. "fallback": function () {
  270. "use strict";
  271. var id = 'xandrconversion';
  272. tarteaucitron.fallback(['xandrconversion-canvas'], tarteaucitron.engage(id));
  273. }
  274. };
  275. // helloasso
  276. tarteaucitron.services.helloasso = {
  277. "key": "helloasso",
  278. "type": "api",
  279. "name": "HelloAsso",
  280. "uri": "https://www.helloasso.com/confidentialite",
  281. "needConsent": true,
  282. "cookies": [],
  283. "js": function () {
  284. "use strict";
  285. tarteaucitron.fallback(['tac_helloasso'], function (x) {
  286. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'HelloAsso iframe'),
  287. width = x.getAttribute("width"),
  288. height = x.getAttribute("height"),
  289. url = x.getAttribute("data-url"),
  290. allowfullscreen = x.getAttribute("allowfullscreen");
  291. return '<iframe title="' + frame_title + '" id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  292. });
  293. },
  294. "fallback": function () {
  295. "use strict";
  296. var id = 'helloasso';
  297. tarteaucitron.fallback(['tac_helloasso'], function (elem) {
  298. elem.style.width = elem.getAttribute('width') + 'px';
  299. elem.style.height = elem.getAttribute('height') + 'px';
  300. return tarteaucitron.engage(id);
  301. });
  302. }
  303. };
  304. // podcloud
  305. tarteaucitron.services.podcloud = {
  306. "key": "podcloud",
  307. "type": "video",
  308. "name": "podCloud",
  309. "uri": "https://podcloud.fr/privacy",
  310. "needConsent": true,
  311. "cookies": [],
  312. "js": function () {
  313. "use strict";
  314. tarteaucitron.fallback(['tac_podcloud'], function (x) {
  315. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'podCloud iframe'),
  316. width = x.getAttribute("width"),
  317. height = x.getAttribute("height"),
  318. url = x.getAttribute("data-url"),
  319. allowfullscreen = x.getAttribute("allowfullscreen");
  320. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  321. });
  322. },
  323. "fallback": function () {
  324. "use strict";
  325. var id = 'podcloud';
  326. tarteaucitron.fallback(['tac_podcloud'], function (elem) {
  327. elem.style.width = elem.getAttribute('width') + 'px';
  328. elem.style.height = elem.getAttribute('height') + 'px';
  329. return tarteaucitron.engage(id);
  330. });
  331. }
  332. };
  333. // facebookpost
  334. tarteaucitron.services.facebookpost = {
  335. "key": "facebookpost",
  336. "type": "social",
  337. "name": "Facebook (post)",
  338. "uri": "https://www.facebook.com/policy.php",
  339. "needConsent": true,
  340. "cookies": [],
  341. "js": function () {
  342. "use strict";
  343. tarteaucitron.fallback(['tac_facebookpost'], function (x) {
  344. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Facebook iframe'),
  345. width = x.getAttribute("width"),
  346. height = x.getAttribute("height"),
  347. url = x.getAttribute("data-url"),
  348. appId = x.getAttribute("data-appid"),
  349. allowfullscreen = x.getAttribute("allowfullscreen");
  350. return '<iframe title="' + frame_title + '" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&amp;width=' + width + '&amp;show_text=false&amp;appId=' + appId + '&amp;height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  351. });
  352. },
  353. "fallback": function () {
  354. "use strict";
  355. var id = 'facebookpost';
  356. tarteaucitron.fallback(['tac_facebookpost'], function (elem) {
  357. elem.style.width = elem.getAttribute('width') + 'px';
  358. elem.style.height = elem.getAttribute('height') + 'px';
  359. return tarteaucitron.engage(id);
  360. });
  361. }
  362. };
  363. // amplitude
  364. tarteaucitron.services.amplitude = {
  365. "key": "amplitude",
  366. "type": "analytic",
  367. "name": "Amplitude",
  368. "uri": "https://amplitude.com/privacy",
  369. "needConsent": true,
  370. "cookies": [],
  371. "js": function () {
  372. "use strict";
  373. if (tarteaucitron.user.amplitude === undefined) {
  374. return;
  375. }
  376. tarteaucitron.addScript('https://cdn.amplitude.com/libs/amplitude-5.8.0-min.gz.js', '', function () {
  377. window.amplitude = {
  378. _q: [],
  379. _iq: {}
  380. };
  381. function s(e, t) { e.prototype[t] = function () { this._q.push([t].concat(Array.prototype.slice.call(arguments, 0))); return this } }
  382. var o = function () { this._q = []; return this };
  383. var a = ["add", "append", "clearAll", "prepend", "set", "setOnce", "unset"];
  384. for (var u = 0; u < a.length; u++) { s(o, a[u]) }
  385. amplitude.Identify = o;
  386. var c = function () { this._q = []; return this };
  387. var l = ["setProductId", "setQuantity", "setPrice", "setRevenueType", "setEventProperties"];
  388. for (var p = 0; p < l.length; p++) { s(c, l[p]) }
  389. amplitude.Revenue = c;
  390. var d = ["init", "logEvent", "logRevenue", "setUserId", "setUserProperties", "setOptOut", "setVersionName", "setDomain", "setDeviceId", "enableTracking", "setGlobalUserProperties", "identify", "clearUserProperties", "setGroup", "logRevenueV2", "regenerateDeviceId", "groupIdentify", "onInit", "logEventWithTimestamp", "logEventWithGroups", "setSessionId", "resetSessionId"];
  391. function v(e) { function t(t) { e[t] = function () { e._q.push([t].concat(Array.prototype.slice.call(arguments, 0))) } } for (var n = 0; n < d.length; n++) { t(d[n]) } }
  392. v(amplitude);
  393. amplitude.getInstance = function (e) { e = (!e || e.length === 0 ? "$default_instance" : e).toLowerCase(); if (!amplitude._iq.hasOwnProperty(e)) { amplitude._iq[e] = { _q: [] }; v(amplitude._iq[e]) } return amplitude._iq[e] };
  394. amplitude.getInstance().init(tarteaucitron.user.amplitude);
  395. });
  396. }
  397. };
  398. // abtasty
  399. tarteaucitron.services.abtasty = {
  400. "key": "abtasty",
  401. "type": "api",
  402. "name": "ABTasty",
  403. "uri": "https://www.abtasty.com/terms-of-use/",
  404. "needConsent": true,
  405. "cookies": ['ABTasty', 'ABTastySession'],
  406. "js": function () {
  407. "use strict";
  408. if (tarteaucitron.user.abtastyID === undefined) {
  409. return;
  410. }
  411. tarteaucitron.addScript('//try.abtasty.com/' + tarteaucitron.user.abtastyID + '.js');
  412. }
  413. };
  414. // yandex metrica
  415. tarteaucitron.services.metrica = {
  416. "key": "metrica",
  417. "type": "analytic",
  418. "name": "Yandex Metrica",
  419. "uri": "https://yandex.com/legal/confidential/",
  420. "needConsent": true,
  421. "cookies": ['_ym_metrika_enabled', '_ym_isad', '_ym_uid', '_ym_d', 'yabs-sid', '_ym_debug', '_ym_mp2_substs', '_ym_hostIndex', '_ym_mp2_track', 'yandexuid', 'usst'],
  422. "js": function () {
  423. "use strict";
  424. if (tarteaucitron.user.yandexmetrica === undefined) {
  425. return;
  426. }
  427. tarteaucitron.addScript('https://mc.yandex.ru/metrika/tag.js', '', function () {
  428. (function (m, e, t, r, i, k, a) {
  429. m[i] = m[i] || function () { (m[i].a = m[i].a || []).push(arguments) };
  430. m[i].l = 1 * new Date(); k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
  431. })
  432. (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  433. ym(tarteaucitron.user.yandexmetrica, "init", {
  434. clickmap: true,
  435. trackLinks: true,
  436. accurateTrackBounce: true,
  437. webvisor: true,
  438. ecommerce: "dataLayer"
  439. });
  440. });
  441. }
  442. };
  443. // addthis
  444. tarteaucitron.services.addthis = {
  445. "key": "addthis",
  446. "type": "social",
  447. "name": "AddThis",
  448. "uri": "https://www.addthis.com/privacy/privacy-policy#publisher-visitors",
  449. "needConsent": true,
  450. "cookies": ['__atuvc', '__atuvs'],
  451. "js": function () {
  452. "use strict";
  453. if (tarteaucitron.user.addthisPubId === undefined) {
  454. return;
  455. }
  456. if (tarteaucitron.isAjax === true) {
  457. window.addthis = null;
  458. window._adr = null;
  459. window._atc = null;
  460. window._atd = null;
  461. window._ate = null;
  462. window._atr = null;
  463. window._atw = null;
  464. }
  465. tarteaucitron.fallback(['addthis_inline_share_toolbox'], '');
  466. tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
  467. },
  468. "fallback": function () {
  469. "use strict";
  470. var id = 'addthis';
  471. tarteaucitron.fallback(['addthis_inline_share_toolbox'], tarteaucitron.engage(id));
  472. }
  473. };
  474. // addtoanyfeed
  475. tarteaucitron.services.addtoanyfeed = {
  476. "key": "addtoanyfeed",
  477. "type": "social",
  478. "name": "AddToAny (feed)",
  479. "uri": "https://www.addtoany.com/privacy",
  480. "needConsent": true,
  481. "cookies": [],
  482. "js": function () {
  483. "use strict";
  484. if (tarteaucitron.user.addtoanyfeedUri === undefined) {
  485. return;
  486. }
  487. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  488. window.a2a_config = window.a2a_config || {};
  489. window.a2a_config.linkurl = tarteaucitron.user.addtoanyfeedUri;
  490. tarteaucitron.addScript('//static.addtoany.com/menu/feed.js');
  491. },
  492. "fallback": function () {
  493. "use strict";
  494. tarteaucitron.user.addtoanyfeedSubscribeLink = 'https://www.addtoany.com/subscribe?linkurl=' + tarteaucitron.user.addtoanyfeedUri;
  495. }
  496. };
  497. // addtoanyshare
  498. tarteaucitron.services.addtoanyshare = {
  499. "key": "addtoanyshare",
  500. "type": "social",
  501. "name": "AddToAny (share)",
  502. "uri": "https://www.addtoany.com/privacy",
  503. "needConsent": true,
  504. "cookies": [],
  505. "js": function () {
  506. "use strict";
  507. tarteaucitron.fallback(['tac_addtoanyshare'], function (elem) {
  508. elem.remove();
  509. }, true);
  510. tarteaucitron.addScript('//static.addtoany.com/menu/page.js');
  511. },
  512. "fallback": function () {
  513. "use strict";
  514. var id = 'addtoanyshare';
  515. tarteaucitron.fallback(['tac_addtoanyshare'], tarteaucitron.engage(id));
  516. }
  517. };
  518. // aduptech ads
  519. tarteaucitron.services.aduptech_ads = {
  520. "key": "aduptech_ads",
  521. "type": "ads",
  522. "name": "Ad Up Technology (ads)",
  523. "uri": "https://www.adup-tech.com/datenschutz",
  524. "needConsent": true,
  525. "cookies": [],
  526. "js": function () {
  527. "use strict";
  528. var IDENTIFIER = "aduptech_ads",
  529. API_URL = "https://s.d.adup-tech.com/jsapi";
  530. var elements = document.getElementsByClassName(IDENTIFIER);
  531. if (!elements || elements.length === 0) {
  532. return;
  533. }
  534. tarteaucitron.fallback([IDENTIFIER], "");
  535. tarteaucitron.addScript(API_URL, "", function () {
  536. for (var i = 0; i < elements.length; i++) {
  537. var element = elements[i];
  538. if (!element.getAttribute("id")) {
  539. element.setAttribute("id", IDENTIFIER + Math.random().toString(36).substr(2, 9));
  540. }
  541. window.uAd.embed(element.getAttribute("id"), {
  542. placementKey: element.getAttribute("placementKey"),
  543. responsive: Boolean(element.getAttribute("responsive")),
  544. lazy: Boolean(element.getAttribute("lazy")),
  545. adtest: Boolean(element.getAttribute("test")),
  546. query: element.getAttribute("query") || "",
  547. minCpc: element.getAttribute("minCpc") || "",
  548. pageUrl: element.getAttribute("pageUrl") || "",
  549. skip: element.getAttribute("skip") || ""
  550. });
  551. }
  552. });
  553. },
  554. "fallback": function () {
  555. "use strict";
  556. tarteaucitron.fallback(["aduptech_ads"], tarteaucitron.engage("aduptech_ads"));
  557. }
  558. };
  559. // aduptech conversion
  560. tarteaucitron.services.aduptech_conversion = {
  561. "key": "aduptech_conversion",
  562. "type": "ads",
  563. "name": "Ad Up Technology (conversion)",
  564. "uri": "https://www.adup-tech.com/datenschutz",
  565. "needConsent": true,
  566. "cookies": [],
  567. "js": function () {
  568. "use strict";
  569. var IDENTIFIER = "aduptech_conversion",
  570. CONVERSION_PIXEL_BASE_URL = "https://d.adup-tech.com/campaign/conversion";
  571. var elements = document.getElementsByClassName(IDENTIFIER);
  572. if (!elements || elements.length === 0) {
  573. return;
  574. }
  575. tarteaucitron.fallback([IDENTIFIER], "");
  576. for (var i = 0; i < elements.length; i++) {
  577. var element = elements[i];
  578. if (!element.getAttribute("advertiserId") || !element.getAttribute("conversionCode")) {
  579. continue;
  580. }
  581. var url = CONVERSION_PIXEL_BASE_URL +
  582. "/" + encodeURIComponent(element.getAttribute("advertiserId")) +
  583. "?t=" + encodeURIComponent(element.getAttribute("conversionCode"));
  584. if (element.getAttribute("price")) {
  585. url += "&price=" + encodeURIComponent(element.getAttribute("price"));
  586. }
  587. if (element.getAttribute("quantity")) {
  588. url += "&quantity=" + encodeURIComponent(element.getAttribute("quantity"));
  589. }
  590. if (element.getAttribute("total")) {
  591. url += "&total=" + encodeURIComponent(element.getAttribute("total"));
  592. }
  593. if (element.getAttribute("orderId")) {
  594. url += "&order_id=" + encodeURIComponent(element.getAttribute("orderId"));
  595. }
  596. if (element.getAttribute("itemNumber")) {
  597. url += "&item_number=" + encodeURIComponent(element.getAttribute("itemNumber"));
  598. }
  599. if (element.getAttribute("description")) {
  600. url += "&description=" + encodeURIComponent(element.getAttribute("description"));
  601. }
  602. (new Image()).src = url;
  603. }
  604. }
  605. };
  606. // aduptech retargeting
  607. tarteaucitron.services.aduptech_retargeting = {
  608. "key": "aduptech_retargeting",
  609. "type": "ads",
  610. "name": "Ad Up Technology (retargeting)",
  611. "uri": "https://www.adup-tech.com/datenschutz",
  612. "needConsent": true,
  613. "cookies": [],
  614. "js": function () {
  615. "use strict";
  616. var IDENTIFIER = "aduptech_retargeting",
  617. API_URL = "https://s.d.adup-tech.com/services/retargeting.js";
  618. var elements = document.getElementsByClassName(IDENTIFIER);
  619. if (!elements || elements.length === 0) {
  620. return;
  621. }
  622. tarteaucitron.fallback([IDENTIFIER], "");
  623. window.AdUpRetargeting = function (api) {
  624. for (var i = 0; i < elements.length; i++) {
  625. var element = elements[i];
  626. api.init();
  627. api.setAccount(element.getAttribute("account"));
  628. if (element.getAttribute("email")) {
  629. api.setEmail(element.getAttribute("email"));
  630. } else if (element.getAttribute("hashedEmail")) {
  631. api.setHashedEmail(element.getAttribute("hashedEmail"));
  632. }
  633. if (element.getAttribute("product")) {
  634. try {
  635. api.setProduct(JSON.parse(element.getAttribute("product")));
  636. } catch (e) {
  637. api.setProduct(element.getAttribute("product"));
  638. }
  639. }
  640. if (element.getAttribute("transaction")) {
  641. try {
  642. api.setTransaction(JSON.parse(element.getAttribute("transaction")));
  643. } catch (e) {
  644. api.setTransaction(element.getAttribute("transaction"));
  645. }
  646. }
  647. if (element.getAttribute("demarkUser")) {
  648. api.setDemarkUser();
  649. } else if (element.getAttribute("demarkProducts")) {
  650. api.setDemarkProducts();
  651. }
  652. if (element.getAttribute("conversionCode")) {
  653. api.setConversionCode(element.getAttribute("conversionCode"));
  654. }
  655. if (element.getAttribute("device")) {
  656. var setter = "set" + element.getAttribute("device").charAt(0).toUpperCase() + element.getAttribute("device").slice(1);
  657. if (typeof api[setter] === 'function') {
  658. api[setter]();
  659. }
  660. }
  661. if (element.getAttribute("track")) {
  662. var tracker = "track" + element.getAttribute("track").charAt(0).toUpperCase() + element.getAttribute("track").slice(1);
  663. if (typeof api[tracker] === "function") {
  664. api[tracker]();
  665. } else {
  666. api.trackHomepage();
  667. }
  668. }
  669. };
  670. };
  671. tarteaucitron.addScript(API_URL);
  672. }
  673. };
  674. // alexa
  675. tarteaucitron.services.alexa = {
  676. "key": "alexa",
  677. "type": "analytic",
  678. "name": "Alexa",
  679. "uri": "https://www.alexa.com/help/privacy",
  680. "needConsent": true,
  681. "cookies": ['__asc', '__auc'],
  682. "js": function () {
  683. "use strict";
  684. if (tarteaucitron.user.alexaAccountID === undefined) {
  685. return;
  686. }
  687. window._atrk_opts = {
  688. atrk_acct: tarteaucitron.user.alexaAccountID,
  689. domain: window.location.hostname.match(/[^\.]*\.[^.]*$/)[0],
  690. dynamic: true
  691. };
  692. tarteaucitron.addScript('https://d31qbv1cthcecs.cloudfront.net/atrk.js');
  693. }
  694. };
  695. // amazon
  696. tarteaucitron.services.amazon = {
  697. "key": "amazon",
  698. "type": "ads",
  699. "name": "Amazon",
  700. "uri": "https://www.amazon.com/gp/help/customer/display.html/ref=help_search_1-1?ie=UTF8&nodeId=201909010&qid=1544617177&sr=1-1",
  701. "needConsent": true,
  702. "cookies": [],
  703. "js": function () {
  704. "use strict";
  705. tarteaucitron.fallback(['amazon_product'], function (x) {
  706. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Amazon iframe'),
  707. amazonId = x.getAttribute("amazonid"),
  708. productId = x.getAttribute("productid"),
  709. 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',
  710. iframe = '<iframe title="' + frame_title + '" style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" src="' + url + '"></iframe>';
  711. return iframe;
  712. });
  713. },
  714. "fallback": function () {
  715. "use strict";
  716. var id = 'amazon';
  717. tarteaucitron.fallback(['amazon_product'], tarteaucitron.engage(id));
  718. }
  719. };
  720. // calameo
  721. tarteaucitron.services.calameo = {
  722. "key": "calameo",
  723. "type": "video",
  724. "name": "Calameo",
  725. "uri": "https://fr.calameo.com/privacy",
  726. "needConsent": true,
  727. "cookies": [],
  728. "js": function () {
  729. "use strict";
  730. tarteaucitron.fallback(['calameo-canvas'], function (x) {
  731. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Calameo iframe'),
  732. id = x.getAttribute("data-id"),
  733. width = x.getAttribute("width"),
  734. height = x.getAttribute("height"),
  735. url = '//v.calameo.com/?bkcode=' + id,
  736. allowfullscreen = x.getAttribute("allowfullscreen");
  737. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  738. });
  739. },
  740. "fallback": function () {
  741. "use strict";
  742. var id = 'calameo';
  743. tarteaucitron.fallback(['calameo-canvas'], function (elem) {
  744. elem.style.width = elem.getAttribute('width') + 'px';
  745. elem.style.height = elem.getAttribute('height') + 'px';
  746. return tarteaucitron.engage(id);
  747. });
  748. }
  749. };
  750. // clicky
  751. tarteaucitron.services.clicky = {
  752. "key": "clicky",
  753. "type": "analytic",
  754. "name": "Clicky",
  755. "uri": "https://clicky.com/terms",
  756. "needConsent": true,
  757. "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],
  758. "js": function () {
  759. "use strict";
  760. if (tarteaucitron.user.clickyId === undefined) {
  761. return;
  762. }
  763. tarteaucitron.addScript('//static.getclicky.com/js', '', function () {
  764. if (typeof clicky.init === 'function') {
  765. clicky.init(tarteaucitron.user.clickyId);
  766. }
  767. if (typeof tarteaucitron.user.clickyMore === 'function') {
  768. tarteaucitron.user.clickyMore();
  769. }
  770. });
  771. }
  772. };
  773. // clicmanager
  774. tarteaucitron.services.clicmanager = {
  775. "key": "clicmanager",
  776. "type": "ads",
  777. "name": "Clicmanager",
  778. "uri": "http://www.clicmanager.fr/infos_legales.php",
  779. "needConsent": true,
  780. "cookies": [],
  781. "js": function () {
  782. "use strict";
  783. var uniqIds = [],
  784. i,
  785. uri;
  786. tarteaucitron.fallback(['clicmanager-canvas'], function (x) {
  787. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  788. uniqIds.push(uniqId);
  789. return '<div id="' + uniqId + '" c="' + x.getAttribute('c') + '" s="' + x.getAttribute('s') + '" t="' + x.getAttribute('t') + '"></div>';
  790. });
  791. for (i = 0; i < uniqIds.length; i += 1) {
  792. uri = '//ads.clicmanager.fr/exe.php?';
  793. uri += 'c=' + document.getElementById(uniqIds[i]).getAttribute('c') + '&';
  794. uri += 's=' + document.getElementById(uniqIds[i]).getAttribute('s') + '&';
  795. uri += 't=' + document.getElementById(uniqIds[i]).getAttribute('t');
  796. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  797. }
  798. },
  799. "fallback": function () {
  800. "use strict";
  801. var id = 'clicmanager';
  802. tarteaucitron.fallback(['clicmanager-canvas'], tarteaucitron.engage(id));
  803. }
  804. };
  805. // compteur
  806. tarteaucitron.services.compteur = {
  807. "key": "compteur",
  808. "type": "analytic",
  809. "name": "Compteur.fr",
  810. "uri": "https://www.compteur.fr/help_privacy_policy.htm",
  811. "needConsent": true,
  812. "cookies": [],
  813. "js": function () {
  814. "use strict";
  815. if (tarteaucitron.user.compteurID === undefined) {
  816. return;
  817. }
  818. tarteaucitron.addScript('https://server2.compteur.fr/log7.js', '', function () { wtslog7(tarteaucitron.user.compteurID, 1); });
  819. }
  820. };
  821. // contentsquare
  822. tarteaucitron.services.contentsquare = {
  823. "key": "contentsquare",
  824. "type": "api",
  825. "name": "ContentSquare",
  826. "uri": "https://docs.contentsquare.com/uxa-en/#collected-data",
  827. "needConsent": true,
  828. "cookies": ['_cs_id', '_cs_s', '_cs_vars', '_cs_ex', '_cs_c', '_cs_optout'],
  829. "js": function () {
  830. "use strict";
  831. if (tarteaucitron.user.contentsquareID === undefined) {
  832. return;
  833. }
  834. tarteaucitron.addScript('//t.contentsquare.net/uxa/' + tarteaucitron.user.contentsquareID + '.js');
  835. }
  836. };
  837. // crazyegg
  838. tarteaucitron.services.crazyegg = {
  839. "key": "crazyegg",
  840. "type": "analytic",
  841. "name": "Crazy Egg",
  842. "uri": "https://www.crazyegg.com/privacy",
  843. "needConsent": true,
  844. "cookies": [],
  845. "js": function () {
  846. "use strict";
  847. if (tarteaucitron.user.crazyeggId === undefined) {
  848. return;
  849. }
  850. tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
  851. }
  852. };
  853. // clarity
  854. tarteaucitron.services.clarity = {
  855. "key": "clarity",
  856. "type": "analytic",
  857. "name": "Clarity",
  858. "uri": "https://clarity.microsoft.com/",
  859. "needConsent": true,
  860. "cookies": [],
  861. "js": function () {
  862. "use strict";
  863. window["clarity"] = window["clarity"] || function () { (window["clarity"].q = window["clarity"].q || []).push(arguments) };
  864. tarteaucitron.addScript('https://www.clarity.ms/tag/' + tarteaucitron.user.clarity);
  865. }
  866. };
  867. // criteo
  868. tarteaucitron.services.criteo = {
  869. "key": "criteo",
  870. "type": "ads",
  871. "name": "Criteo",
  872. "uri": "http://www.criteo.com/privacy/",
  873. "needConsent": true,
  874. "cookies": [],
  875. "js": function () {
  876. "use strict";
  877. document.MAX_ct0 = '';
  878. var uniqIds = [],
  879. i,
  880. uri;
  881. tarteaucitron.fallback(['criteo-canvas'], function (x) {
  882. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  883. uniqIds.push(uniqId);
  884. return '<div id="' + uniqId + '" zoneid="' + x.getAttribute('zoneid') + '"></div>';
  885. });
  886. for (i = 0; i < uniqIds.length; i += 1) {
  887. uri = '//cas.criteo.com/delivery/ajs.php?';
  888. uri += 'zoneid=' + document.getElementById(uniqIds[i]).getAttribute('zoneid');
  889. uri += '&nodis=1&cb=' + Math.floor(Math.random() * 99999999999);
  890. uri += '&loc=' + encodeURI(window.location);
  891. uri += (document.MAX_used !== ',') ? '&exclude=' + document.MAX_used : '';
  892. uri += (document.charset !== undefined ? '&charset=' + document.charset : '');
  893. uri += (document.characterSet !== undefined ? '&charset=' + document.characterSet : '');
  894. uri += (document.referrer !== undefined) ? '&referer=' + encodeURI(document.referrer) : '';
  895. uri += (document.context !== undefined) ? '&context=' + encodeURI(document.context) : '';
  896. uri += ((document.MAX_ct0 !== undefined) && (document.MAX_ct0.substring(0, 4) === 'http')) ? '&ct0=' + encodeURI(document.MAX_ct0) : '';
  897. uri += (document.mmm_fo !== undefined) ? '&mmm_fo=1' : '';
  898. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  899. }
  900. },
  901. "fallback": function () {
  902. "use strict";
  903. var id = 'criteo';
  904. tarteaucitron.fallback(['criteo-canvas'], tarteaucitron.engage(id));
  905. }
  906. };
  907. // artetv
  908. tarteaucitron.services.artetv = {
  909. "key": "artetv",
  910. "type": "video",
  911. "name": "Arte.tv",
  912. "uri": "https://www.arte.tv/sites/fr/corporate/donnees-personnelles/",
  913. "needConsent": true,
  914. "cookies": [],
  915. "js": function () {
  916. "use strict";
  917. tarteaucitron.fallback(['artetv_player'], function (x) {
  918. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Arte.tv iframe'),
  919. video_json = x.getAttribute("json"),
  920. video_width = x.getAttribute("width"),
  921. video_height = x.getAttribute("height"),
  922. video_frame,
  923. video_allowfullscreen = x.getAttribute("allowfullscreen");
  924. if (video_json === undefined) {
  925. return "";
  926. }
  927. video_frame = '<iframe title="' + frame_title + '" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" ' + (video_allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  928. return video_frame;
  929. });
  930. },
  931. "fallback": function () {
  932. "use strict";
  933. var id = 'artetv';
  934. tarteaucitron.fallback(['artetv_player'], function (elem) {
  935. elem.style.width = elem.getAttribute('width') + 'px';
  936. elem.style.height = elem.getAttribute('height') + 'px';
  937. return tarteaucitron.engage(id);
  938. });
  939. }
  940. };
  941. // dailymotion
  942. tarteaucitron.services.dailymotion = {
  943. "key": "dailymotion",
  944. "type": "video",
  945. "name": "Dailymotion",
  946. "uri": "https://www.dailymotion.com/legal/privacy",
  947. "needConsent": true,
  948. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  949. "js": function () {
  950. "use strict";
  951. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  952. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Dailymotion iframe'),
  953. video_id = tarteaucitron.getElemAttr(x, "videoID"),
  954. video_width = tarteaucitron.getElemAttr(x, "width"),
  955. frame_width = 'width=',
  956. video_height = tarteaucitron.getElemAttr(x, "height"),
  957. frame_height = 'height=',
  958. video_frame,
  959. embed_type = tarteaucitron.getElemAttr(x, "embedType"),
  960. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  961. params = 'info=' + tarteaucitron.getElemAttr(x, "showinfo") + '&autoPlay=' + tarteaucitron.getElemAttr(x, "autoplay");
  962. if (video_id === undefined) {
  963. return "";
  964. }
  965. if (video_width !== undefined) {
  966. frame_width += '"' + video_width + '" ';
  967. } else {
  968. frame_width += '"" ';
  969. }
  970. if (video_height !== undefined) {
  971. frame_height += '"' + video_height + '" ';
  972. } else {
  973. frame_height += '"" ';
  974. }
  975. if (embed_type === undefined || !['video', 'playlist'].includes(embed_type)) {
  976. embed_type = "video";
  977. }
  978. video_frame = '<iframe title="' + frame_title + '" src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  979. return video_frame;
  980. });
  981. },
  982. "fallback": function () {
  983. "use strict";
  984. var id = 'dailymotion';
  985. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  986. elem.style.width = elem.getAttribute('width') + 'px';
  987. elem.style.height = elem.getAttribute('height') + 'px';
  988. return tarteaucitron.engage(id);
  989. });
  990. }
  991. };
  992. // dating affiliation
  993. tarteaucitron.services.datingaffiliation = {
  994. "key": "datingaffiliation",
  995. "type": "ads",
  996. "name": "Dating Affiliation",
  997. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  998. "needConsent": true,
  999. "cookies": [],
  1000. "js": function () {
  1001. "use strict";
  1002. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  1003. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dating Affiliation iframe'),
  1004. comfrom = x.getAttribute("data-comfrom"),
  1005. r = x.getAttribute("data-r"),
  1006. p = x.getAttribute("data-p"),
  1007. cf0 = x.getAttribute("data-cf0"),
  1008. langue = x.getAttribute("data-langue"),
  1009. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  1010. cf2 = x.getAttribute("data-cf2"),
  1011. cfsa2 = x.getAttribute("data-cfsa2"),
  1012. width = x.getAttribute("width"),
  1013. height = x.getAttribute("height"),
  1014. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  1015. return '<iframe title="' + frame_title + '" src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
  1016. });
  1017. },
  1018. "fallback": function () {
  1019. "use strict";
  1020. var id = 'datingaffiliation';
  1021. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  1022. elem.style.width = elem.getAttribute('width') + 'px';
  1023. elem.style.height = elem.getAttribute('height') + 'px';
  1024. return tarteaucitron.engage(id);
  1025. });
  1026. }
  1027. };
  1028. // dating affiliation popup
  1029. tarteaucitron.services.datingaffiliationpopup = {
  1030. "key": "datingaffiliationpopup",
  1031. "type": "ads",
  1032. "name": "Dating Affiliation (Pop Up)",
  1033. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  1034. "needConsent": true,
  1035. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  1036. "js": function () {
  1037. "use strict";
  1038. var uniqIds = [],
  1039. i,
  1040. uri;
  1041. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  1042. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1043. uniqIds.push(uniqId);
  1044. 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>';
  1045. });
  1046. for (i = 0; i < uniqIds.length; i += 1) {
  1047. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  1048. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  1049. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  1050. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  1051. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  1052. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  1053. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  1054. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  1055. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  1056. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  1057. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  1058. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  1059. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  1060. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  1061. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  1062. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  1063. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  1064. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  1065. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  1066. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  1067. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  1068. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1069. }
  1070. },
  1071. "fallback": function () {
  1072. "use strict";
  1073. var id = 'datingaffiliationpopup';
  1074. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  1075. }
  1076. };
  1077. // deezer
  1078. tarteaucitron.services.deezer = {
  1079. "key": "deezer",
  1080. "type": "video",
  1081. "name": "Deezer",
  1082. "uri": "https://www.deezer.com/legal/personal-datas",
  1083. "needConsent": true,
  1084. "cookies": [],
  1085. "js": function () {
  1086. "use strict";
  1087. tarteaucitron.fallback(['deezer_player'], function (x) {
  1088. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Deezer iframe'),
  1089. deezer_id = x.getAttribute("deezerID"),
  1090. deezer_width = x.getAttribute("width"),
  1091. frame_width = 'width=',
  1092. deezer_height = x.getAttribute("height"),
  1093. frame_height = 'height=',
  1094. deezer_frame,
  1095. embed_theme = x.getAttribute("theme"),
  1096. embed_type = x.getAttribute("embedType"),
  1097. radius = x.getAttribute("radius"),
  1098. tracklist = x.getAttribute("tracklist"),
  1099. allowfullscreen = x.getAttribute("allowfullscreen"),
  1100. params;
  1101. if (deezer_id === undefined) {
  1102. return "";
  1103. }
  1104. if (deezer_width !== undefined) {
  1105. frame_width += '"' + deezer_width + '" ';
  1106. } else {
  1107. frame_width += '"" ';
  1108. }
  1109. if (deezer_height !== undefined) {
  1110. frame_height += '"' + deezer_height + '" ';
  1111. } else {
  1112. frame_height += '"" ';
  1113. }
  1114. if (embed_theme === undefined || !['auto', 'light', 'dark'].includes(embed_theme)) {
  1115. embed_theme = "auto";
  1116. }
  1117. if (embed_type === undefined || !['album', 'track', 'playlist'].includes(embed_type)) {
  1118. embed_type = "album";
  1119. }
  1120. if (radius === undefined || !['true', 'false'].includes(radius)) {
  1121. radius = "true";
  1122. }
  1123. if (tracklist === undefined || !['true', 'false'].includes(tracklist)) {
  1124. tracklist = "true";
  1125. }
  1126. params = 'tracklist=' + tracklist + '&radius=' + radius;
  1127. deezer_frame = '<iframe title="' + frame_title + '" src="//widget.deezer.com/widget/' + embed_theme + '/' + embed_type + '/' + deezer_id + '?' + params + '" ' + frame_width + frame_height + ' ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  1128. return deezer_frame;
  1129. });
  1130. },
  1131. "fallback": function () {
  1132. "use strict";
  1133. var id = 'deezer';
  1134. tarteaucitron.fallback(['deezer_player'], function (elem) {
  1135. elem.style.width = elem.getAttribute('width') + 'px';
  1136. elem.style.height = elem.getAttribute('height') + 'px';
  1137. return tarteaucitron.engage(id);
  1138. });
  1139. }
  1140. };
  1141. // leadforensics
  1142. tarteaucitron.services.leadforensics = {
  1143. "key": "leadforensics",
  1144. "type": "analytic",
  1145. "name": "LeadForensics",
  1146. "uri": "https://www.leadforensics.com/privacy-policy/",
  1147. "needConsent": true,
  1148. "cookies": ['trackalyzer'],
  1149. "js": function () {
  1150. "use strict";
  1151. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  1152. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  1153. return;
  1154. }
  1155. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  1156. (function () {
  1157. var sf14g = document.createElement('script'); sf14g.async = true;
  1158. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  1159. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  1160. })();
  1161. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  1162. }
  1163. };
  1164. // disqus
  1165. tarteaucitron.services.disqus = {
  1166. "key": "disqus",
  1167. "type": "comment",
  1168. "name": "Disqus",
  1169. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  1170. "needConsent": true,
  1171. "cookies": [],
  1172. "js": function () {
  1173. "use strict";
  1174. if (tarteaucitron.user.disqusShortname === undefined) {
  1175. return;
  1176. }
  1177. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  1178. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  1179. },
  1180. "fallback": function () {
  1181. "use strict";
  1182. var id = 'disqus';
  1183. if (document.getElementById('disqus_thread')) {
  1184. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  1185. }
  1186. }
  1187. };
  1188. // ekomi
  1189. tarteaucitron.services.ekomi = {
  1190. "key": "ekomi",
  1191. "type": "social",
  1192. "name": "eKomi",
  1193. "uri": "http://www.ekomi-us.com/us/privacy/",
  1194. "needConsent": true,
  1195. "cookies": [],
  1196. "js": function () {
  1197. "use strict";
  1198. if (tarteaucitron.user.ekomiCertId === undefined) {
  1199. return;
  1200. }
  1201. window.eKomiIntegrationConfig = [
  1202. { certId: tarteaucitron.user.ekomiCertId }
  1203. ];
  1204. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  1205. }
  1206. };
  1207. // etracker
  1208. tarteaucitron.services.etracker = {
  1209. "key": "etracker",
  1210. "type": "analytic",
  1211. "name": "eTracker",
  1212. "uri": "https://www.etracker.com/en/data-protection.html",
  1213. "needConsent": true,
  1214. "cookies": [],
  1215. "js": function () {
  1216. "use strict";
  1217. if (tarteaucitron.user.etracker === undefined) {
  1218. return;
  1219. }
  1220. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () { }, true, "data-secure-code", tarteaucitron.user.etracker);
  1221. }
  1222. };
  1223. // facebook
  1224. tarteaucitron.services.facebook = {
  1225. "key": "facebook",
  1226. "type": "social",
  1227. "name": "Facebook",
  1228. "uri": "https://www.facebook.com/policy.php",
  1229. "needConsent": true,
  1230. "cookies": ['xs', 'sb', 'fr', 'datr', 'dpr', 'c_user'],
  1231. "js": function () {
  1232. "use strict";
  1233. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  1234. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1235. if (tarteaucitron.isAjax === true) {
  1236. if (typeof FB !== "undefined") {
  1237. FB.XFBML.parse();
  1238. }
  1239. }
  1240. },
  1241. "fallback": function () {
  1242. "use strict";
  1243. var id = 'facebook';
  1244. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  1245. }
  1246. };
  1247. // facebooklikebox
  1248. tarteaucitron.services.facebooklikebox = {
  1249. "key": "facebooklikebox",
  1250. "type": "social",
  1251. "name": "Facebook (like box)",
  1252. "uri": "https://www.facebook.com/policy.php",
  1253. "needConsent": true,
  1254. "cookies": [],
  1255. "js": function () {
  1256. "use strict";
  1257. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  1258. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  1259. if (tarteaucitron.isAjax === true) {
  1260. if (typeof FB !== "undefined") {
  1261. FB.XFBML.parse();
  1262. }
  1263. }
  1264. },
  1265. "fallback": function () {
  1266. "use strict";
  1267. var id = 'facebooklikebox';
  1268. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  1269. }
  1270. };
  1271. // facebookcomment
  1272. tarteaucitron.services.facebookcomment = {
  1273. "key": "facebookcomment",
  1274. "type": "comment",
  1275. "name": "Facebook (commentaire)",
  1276. "uri": "https://www.facebook.com/policy.php",
  1277. "needConsent": true,
  1278. "cookies": [],
  1279. "js": function () {
  1280. "use strict";
  1281. tarteaucitron.fallback(['fb-comments'], '');
  1282. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1283. if (tarteaucitron.isAjax === true) {
  1284. if (typeof FB !== "undefined") {
  1285. FB.XFBML.parse();
  1286. }
  1287. }
  1288. },
  1289. "fallback": function () {
  1290. "use strict";
  1291. var id = 'facebookcomment';
  1292. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  1293. }
  1294. };
  1295. // ferank
  1296. tarteaucitron.services.ferank = {
  1297. "key": "ferank",
  1298. "type": "analytic",
  1299. "name": "FERank",
  1300. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  1301. "needConsent": false,
  1302. "cookies": [],
  1303. "js": function () {
  1304. "use strict";
  1305. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  1306. if (typeof tarteaucitron.user.ferankMore === 'function') {
  1307. tarteaucitron.user.ferankMore();
  1308. }
  1309. });
  1310. }
  1311. };
  1312. // pingdom
  1313. tarteaucitron.services.pingdom = {
  1314. "key": "pingdom",
  1315. "type": "api",
  1316. "name": "Pingdom",
  1317. "uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud",
  1318. "needConsent": true,
  1319. "cookies": [],
  1320. "js": function () {
  1321. "use strict";
  1322. if (tarteaucitron.user.pingdomId === undefined) {
  1323. return;
  1324. }
  1325. window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]];
  1326. tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js');
  1327. }
  1328. };
  1329. // simpleanalytics
  1330. tarteaucitron.services.simpleanalytics = {
  1331. "key": "simpleanalytics",
  1332. "type": "analytic",
  1333. "name": "Simple Analytics",
  1334. "uri": "https://docs.simpleanalytics.com/what-we-collect",
  1335. "needConsent": false,
  1336. "cookies": [],
  1337. "js": function () {
  1338. "use strict";
  1339. tarteaucitron.addScript('https://scripts.simpleanalyticscdn.com/latest.js');
  1340. }
  1341. };
  1342. // stonly
  1343. tarteaucitron.services.stonly = {
  1344. "key": "stonly",
  1345. "type": "api",
  1346. "name": "Stonly",
  1347. "uri": "https://stonly.com/privacy",
  1348. "needConsent": true,
  1349. "cookies": [],
  1350. "js": function () {
  1351. "use strict";
  1352. if (tarteaucitron.user.stonlyId === undefined) {
  1353. return;
  1354. }
  1355. window.STONLY_WID = tarteaucitron.user.stonlyId;
  1356. window.StonlyWidget || ((window.w = window.StonlyWidget = function () {
  1357. window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
  1358. }).queue = []);
  1359. tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
  1360. }
  1361. };
  1362. // stripe
  1363. /*tarteaucitron.services.stripe = {
  1364. "key": "stripe",
  1365. "type": "api",
  1366. "name": "Stripe",
  1367. "uri": "https://stripe.com/cookies-policy/legal",
  1368. "needConsent": true,
  1369. "cookies": [],
  1370. "js": function () {
  1371. "use strict";
  1372. tarteaucitron.addScript('https://js.stripe.com/v3/');
  1373. }
  1374. };*/
  1375. // ferank pub
  1376. tarteaucitron.services.ferankpub = {
  1377. "key": "ferankpub",
  1378. "type": "ads",
  1379. "name": "FERank (pub)",
  1380. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  1381. "needConsent": false,
  1382. "cookies": [],
  1383. "js": function () {
  1384. "use strict";
  1385. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  1386. if (tarteaucitron.isAjax === true) {
  1387. if (typeof ferankReady === 'function') {
  1388. ferankReady();
  1389. }
  1390. }
  1391. },
  1392. "fallback": function () {
  1393. "use strict";
  1394. var id = 'ferankpub';
  1395. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  1396. }
  1397. };
  1398. // get+
  1399. tarteaucitron.services.getplus = {
  1400. "key": "getplus",
  1401. "type": "analytic",
  1402. "name": "Get+",
  1403. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  1404. "needConsent": true,
  1405. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  1406. "js": function () {
  1407. "use strict";
  1408. if (tarteaucitron.user.getplusId === undefined) {
  1409. return;
  1410. }
  1411. window.webleads_site_ids = window.webleads_site_ids || [];
  1412. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  1413. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  1414. }
  1415. };
  1416. // google+
  1417. tarteaucitron.services.gplus = {
  1418. "key": "gplus",
  1419. "type": "social",
  1420. "name": "Google+",
  1421. "uri": "https://policies.google.com/privacy",
  1422. "needConsent": true,
  1423. "cookies": [],
  1424. "js": function () {
  1425. "use strict";
  1426. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1427. },
  1428. "fallback": function () {
  1429. "use strict";
  1430. var id = 'gplus';
  1431. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  1432. }
  1433. };
  1434. // google+ badge
  1435. tarteaucitron.services.gplusbadge = {
  1436. "key": "gplusbadge",
  1437. "type": "social",
  1438. "name": "Google+ (badge)",
  1439. "uri": "https://policies.google.com/privacy",
  1440. "needConsent": true,
  1441. "cookies": [],
  1442. "js": function () {
  1443. "use strict";
  1444. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1445. },
  1446. "fallback": function () {
  1447. "use strict";
  1448. var id = 'gplusbadge';
  1449. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  1450. }
  1451. };
  1452. // google adsense
  1453. tarteaucitron.services.adsense = {
  1454. "key": "adsense",
  1455. "type": "ads",
  1456. "name": "Google Adsense",
  1457. "uri": "https://adssettings.google.com/",
  1458. "needConsent": true,
  1459. "readmoreLink": "https://policies.google.com/technologies/partner-sites",
  1460. "cookies": ['__gads'],
  1461. "js": function () {
  1462. "use strict";
  1463. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  1464. },
  1465. "fallback": function () {
  1466. "use strict";
  1467. var id = 'adsense';
  1468. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  1469. }
  1470. };
  1471. // google partners badge
  1472. tarteaucitron.services.googlepartners = {
  1473. "key": "googlepartners",
  1474. "type": "ads",
  1475. "name": "Google Partners Badge",
  1476. "uri": "https://adssettings.google.com/",
  1477. "needConsent": true,
  1478. "cookies": [],
  1479. "js": function () {
  1480. "use strict";
  1481. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1482. },
  1483. "fallback": function () {
  1484. "use strict";
  1485. var id = 'googlepartners';
  1486. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  1487. }
  1488. };
  1489. // google adsense search (form)
  1490. tarteaucitron.services.adsensesearchform = {
  1491. "key": "adsensesearchform",
  1492. "type": "ads",
  1493. "name": "Google Adsense Search (form)",
  1494. "uri": "https://adssettings.google.com/",
  1495. "needConsent": true,
  1496. "cookies": [],
  1497. "js": function () {
  1498. "use strict";
  1499. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  1500. }
  1501. };
  1502. // google adsense search (result)
  1503. tarteaucitron.services.adsensesearchresult = {
  1504. "key": "adsensesearchresult",
  1505. "type": "ads",
  1506. "name": "Google Adsense Search (result)",
  1507. "uri": "https://adssettings.google.com/",
  1508. "needConsent": true,
  1509. "cookies": [],
  1510. "js": function () {
  1511. "use strict";
  1512. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  1513. return;
  1514. }
  1515. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  1516. },
  1517. "fallback": function () {
  1518. "use strict";
  1519. var id = 'adsensesearchresult';
  1520. if (document.getElementById('gcse_searchresults')) {
  1521. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  1522. }
  1523. }
  1524. };
  1525. // googleadwordsconversion
  1526. tarteaucitron.services.googleadwordsconversion = {
  1527. "key": "googleadwordsconversion",
  1528. "type": "ads",
  1529. "name": "Google Adwords (conversion)",
  1530. "uri": "https://www.google.com/settings/ads",
  1531. "needConsent": true,
  1532. "cookies": [],
  1533. "js": function () {
  1534. "use strict";
  1535. if (tarteaucitron.user.adwordsconversionId === undefined) {
  1536. return;
  1537. }
  1538. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1539. window.google_trackConversion({
  1540. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1541. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1542. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1543. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1544. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1545. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1546. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1547. google_custom_params: {
  1548. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1549. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1550. }
  1551. });
  1552. });
  1553. }
  1554. };
  1555. // googleadwordsremarketing
  1556. tarteaucitron.services.googleadwordsremarketing = {
  1557. "key": "googleadwordsremarketing",
  1558. "type": "ads",
  1559. "name": "Google Adwords (remarketing)",
  1560. "uri": "https://www.google.com/settings/ads",
  1561. "needConsent": true,
  1562. "cookies": [],
  1563. "js": function () {
  1564. "use strict";
  1565. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1566. return;
  1567. }
  1568. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1569. window.google_trackConversion({
  1570. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1571. google_remarketing_only: true
  1572. });
  1573. });
  1574. }
  1575. };
  1576. // google analytics (old)
  1577. tarteaucitron.services.gajs = {
  1578. "key": "gajs",
  1579. "type": "analytic",
  1580. "name": "Google Analytics (ga.js)",
  1581. "uri": "https://policies.google.com/privacy",
  1582. "needConsent": true,
  1583. "cookies": (function () {
  1584. var googleIdentifier = tarteaucitron.user.gajsUa,
  1585. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1586. tagGCookie = '_ga_' + googleIdentifier;
  1587. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1588. tagGCookie = tagGCookie.replace(/G-/g, '');
  1589. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1590. })(),
  1591. "js": function () {
  1592. "use strict";
  1593. window._gaq = window._gaq || [];
  1594. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1595. if (tarteaucitron.user.gajsAnonymizeIp) {
  1596. window._gaq.push(['_gat._anonymizeIp']);
  1597. }
  1598. if (tarteaucitron.user.gajsPageView) {
  1599. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1600. } else {
  1601. window._gaq.push(['_trackPageview']);
  1602. }
  1603. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1604. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1605. tarteaucitron.user.gajsMore();
  1606. }
  1607. });
  1608. }
  1609. };
  1610. // google analytics
  1611. tarteaucitron.services.analytics = {
  1612. "key": "analytics",
  1613. "type": "analytic",
  1614. "name": "Google Analytics (universal)",
  1615. "uri": "https://policies.google.com/privacy",
  1616. "needConsent": true,
  1617. "cookies": (function () {
  1618. var googleIdentifier = tarteaucitron.user.analyticsUa,
  1619. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1620. tagGCookie = '_ga_' + googleIdentifier;
  1621. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1622. tagGCookie = tagGCookie.replace(/G-/g, '');
  1623. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1624. })(),
  1625. "js": function () {
  1626. "use strict";
  1627. window.GoogleAnalyticsObject = 'ga';
  1628. window.ga = window.ga || function () {
  1629. window.ga.q = window.ga.q || [];
  1630. window.ga.q.push(arguments);
  1631. };
  1632. window.ga.l = new Date();
  1633. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1634. var uaCreate = { 'cookieExpires': 34128000 };
  1635. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1636. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1637. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1638. ga('set', 'anonymizeIp', true);
  1639. }
  1640. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1641. tarteaucitron.user.analyticsPrepare();
  1642. }
  1643. if (tarteaucitron.user.analyticsPageView) {
  1644. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1645. } else {
  1646. ga('send', 'pageview');
  1647. }
  1648. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1649. tarteaucitron.user.analyticsMore();
  1650. }
  1651. });
  1652. }
  1653. };
  1654. // google analytics
  1655. tarteaucitron.services.gtag = {
  1656. "key": "gtag",
  1657. "type": "analytic",
  1658. "name": "Google Analytics (gtag.js)",
  1659. "uri": "https://policies.google.com/privacy",
  1660. "needConsent": true,
  1661. "cookies": (function () {
  1662. var googleIdentifier = tarteaucitron.user.gtagUa,
  1663. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1664. tagGCookie = '_ga_' + googleIdentifier;
  1665. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1666. tagGCookie = tagGCookie.replace(/G-/g, '');
  1667. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie];
  1668. })(),
  1669. "js": function () {
  1670. "use strict";
  1671. window.dataLayer = window.dataLayer || [];
  1672. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1673. window.gtag = function gtag() { dataLayer.push(arguments); }
  1674. gtag('js', new Date());
  1675. if (tarteaucitron.user.gtagCrossdomain) {
  1676. /**
  1677. * https://support.google.com/analytics/answer/7476333?hl=en
  1678. * https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain
  1679. */
  1680. gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true }, { linker: { domains: tarteaucitron.user.gtagCrossdomain, } });
  1681. } else {
  1682. gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true });
  1683. }
  1684. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1685. tarteaucitron.user.gtagMore();
  1686. }
  1687. });
  1688. }
  1689. };
  1690. tarteaucitron.services.firebase = {
  1691. "key": "firebase",
  1692. "type": "analytic",
  1693. "name": "Firebase",
  1694. "uri": "https://firebase.google.com/support/privacy",
  1695. "needConsent": true,
  1696. "cookies": (function () {
  1697. var googleIdentifier = tarteaucitron.user.firebaseMeasurementId,
  1698. tagGCookie = '_ga_' + googleIdentifier;
  1699. tagGCookie = tagGCookie.replace(/G-/g, '');
  1700. return ['_ga', tagGCookie];
  1701. })(),
  1702. "js": function () {
  1703. "use strict";
  1704. if (tarteaucitron.user.firebaseApiKey === undefined) {
  1705. return;
  1706. }
  1707. tarteaucitron.addScript('https://www.gstatic.com/firebasejs/8.6.2/firebase-app.js', '', function () {
  1708. tarteaucitron.addScript('https://www.gstatic.com/firebasejs/8.6.2/firebase-analytics.js', '', function () {
  1709. var firebaseConfig = {
  1710. apiKey: tarteaucitron.user.firebaseApiKey,
  1711. authDomain: tarteaucitron.user.firebaseAuthDomain,
  1712. databaseURL: tarteaucitron.user.firebaseDatabaseUrl,
  1713. projectId: tarteaucitron.user.firebaseProjectId,
  1714. storageBucket: tarteaucitron.user.firebaseStorageBucket,
  1715. appId: tarteaucitron.user.firebaseAppId,
  1716. measurementId: tarteaucitron.user.firebaseMeasurementId,
  1717. };
  1718. firebase.initializeApp(firebaseConfig);
  1719. firebase.analytics();
  1720. });
  1721. });
  1722. }
  1723. };
  1724. // genially
  1725. tarteaucitron.services.genially = {
  1726. "key": "genially",
  1727. "type": "api",
  1728. "name": "genially",
  1729. "uri": "https://www.genial.ly/cookies",
  1730. "needConsent": true,
  1731. "cookies": ['_gat', '_ga', '_gid'],
  1732. "js": function () {
  1733. "use strict";
  1734. tarteaucitron.fallback(['tac_genially'], function (x) {
  1735. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'genially iframe'),
  1736. width = x.getAttribute("width"),
  1737. height = x.getAttribute("height"),
  1738. geniallyid = x.getAttribute("geniallyid"),
  1739. allowfullscreen = x.getAttribute("allowfullscreen");
  1740. return '<div style="position: relative; padding-bottom: 109.00%; padding-top: 0; height: 0;"><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" title="' + frame_title + '" src="https://view.genial.ly/' + geniallyid + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe></div>';
  1741. });
  1742. },
  1743. "fallback": function () {
  1744. "use strict";
  1745. var id = 'genially';
  1746. tarteaucitron.fallback(['tac_genially'], function (elem) {
  1747. elem.style.width = elem.getAttribute('width') + 'px';
  1748. elem.style.height = elem.getAttribute('height') + 'px';
  1749. return tarteaucitron.engage(id);
  1750. });
  1751. }
  1752. };
  1753. // google maps
  1754. tarteaucitron.services.googlemaps = {
  1755. "key": "googlemaps",
  1756. "type": "api",
  1757. "name": "Google Maps",
  1758. "uri": "https://policies.google.com/privacy",
  1759. "needConsent": true,
  1760. "cookies": [],
  1761. "js": function () {
  1762. "use strict";
  1763. var mapOptions,
  1764. map,
  1765. uniqIds = [],
  1766. i;
  1767. if (tarteaucitron.user.mapscallback === undefined) {
  1768. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1769. }
  1770. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1771. var googleMapsLibraries = '';
  1772. if (tarteaucitron.user.googlemapsLibraries) {
  1773. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1774. }
  1775. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback=' + tarteaucitron.user.mapscallback + googleMapsLibraries);
  1776. window.tac_googlemaps_callback = function () {
  1777. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1778. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1779. uniqIds.push(uniqId);
  1780. 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>';
  1781. });
  1782. var i;
  1783. for (i = 0; i < uniqIds.length; i += 1) {
  1784. mapOptions = {
  1785. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1786. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1787. };
  1788. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1789. new google.maps.Marker({ position: { lat: parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), lng: parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10) }, map: map });
  1790. }
  1791. };
  1792. },
  1793. "fallback": function () {
  1794. "use strict";
  1795. var id = 'googlemaps';
  1796. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1797. }
  1798. };
  1799. // googlemaps search
  1800. tarteaucitron.services.googlemapssearch = {
  1801. "key": "googlemapssearch",
  1802. "type": "api",
  1803. "name": "Google Maps Search API",
  1804. "uri": "https://policies.google.com/privacy",
  1805. "needConsent": true,
  1806. "cookies": ['nid'],
  1807. "js": function () {
  1808. "use strict";
  1809. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1810. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google search iframe'),
  1811. width = x.getAttribute("width"),
  1812. height = x.getAttribute("height"),
  1813. // url = x.getAttribute("data-url");
  1814. query = escape(x.getAttribute("data-search")),
  1815. key = x.getAttribute("data-api-key");
  1816. return '<iframe title="' + frame_title + '" width="' + width + '" height="' + height + '" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=' + query + '&key=' + key + '" allowfullscreen></iframe> '
  1817. });
  1818. },
  1819. "fallback": function () {
  1820. "use strict";
  1821. var id = 'googlemapssearch';
  1822. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1823. elem.style.width = elem.getAttribute('width') + 'px';
  1824. elem.style.height = elem.getAttribute('height') + 'px';
  1825. return tarteaucitron.engage(id);
  1826. });
  1827. }
  1828. };
  1829. // googlemaps embed iframe
  1830. tarteaucitron.services.googlemapsembed = {
  1831. "key": "googlemapsembed",
  1832. "type": "api",
  1833. "name": "Google Maps Embed",
  1834. "uri": "https://policies.google.com/privacy",
  1835. "needConsent": true,
  1836. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1837. "js": function () {
  1838. "use strict";
  1839. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1840. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google maps iframe'),
  1841. width = tarteaucitron.getElemWidth(x),
  1842. height = tarteaucitron.getElemHeight(x),
  1843. url = x.getAttribute("data-url");
  1844. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1845. });
  1846. },
  1847. "fallback": function () {
  1848. "use strict";
  1849. var id = 'googlemapsembed';
  1850. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1851. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1852. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1853. return tarteaucitron.engage(id);
  1854. });
  1855. }
  1856. };
  1857. // google tag manager
  1858. tarteaucitron.services.googletagmanager = {
  1859. "key": "googletagmanager",
  1860. "type": "api",
  1861. "name": "Google Tag Manager",
  1862. "uri": "https://policies.google.com/privacy",
  1863. "needConsent": true,
  1864. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1865. "js": function () {
  1866. "use strict";
  1867. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1868. return;
  1869. }
  1870. window.dataLayer = window.dataLayer || [];
  1871. window.dataLayer.push({
  1872. 'gtm.start': new Date().getTime(),
  1873. event: 'gtm.js'
  1874. });
  1875. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1876. }
  1877. };
  1878. // google tag manager multiple
  1879. tarteaucitron.services.multiplegoogletagmanager = {
  1880. "key": "multiplegoogletagmanager",
  1881. "type": "api",
  1882. "name": "Google Tag Manager",
  1883. "uri": "https://policies.google.com/privacy",
  1884. "needConsent": true,
  1885. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1886. "js": function () {
  1887. "use strict";
  1888. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1889. return;
  1890. }
  1891. window.dataLayer = window.dataLayer || [];
  1892. window.dataLayer.push({
  1893. 'gtm.start': new Date().getTime(),
  1894. event: 'gtm.js'
  1895. });
  1896. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1897. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1898. });
  1899. }
  1900. };
  1901. // google webfonts
  1902. tarteaucitron.services.googlefonts = {
  1903. "key": "googlefonts",
  1904. "type": "api",
  1905. "name": "Google Webfonts",
  1906. "uri": "https://policies.google.com/privacy",
  1907. "needConsent": true,
  1908. "cookies": [],
  1909. "js": function () {
  1910. "use strict";
  1911. if (tarteaucitron.user.googleFonts === undefined) {
  1912. return;
  1913. }
  1914. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1915. WebFont.load({
  1916. google: {
  1917. families: tarteaucitron.user.googleFonts
  1918. }
  1919. });
  1920. });
  1921. }
  1922. };
  1923. // hubspot
  1924. tarteaucitron.services.hubspot = {
  1925. "key": "hubspot",
  1926. "type": "analytic",
  1927. "name": "Hubspot",
  1928. "uri": "https://legal.hubspot.com/privacy-policy",
  1929. "needConsent": true,
  1930. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1931. "js": function () {
  1932. "use strict";
  1933. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1934. }
  1935. };
  1936. // instagram
  1937. tarteaucitron.services.instagram = {
  1938. "key": "instagram",
  1939. "type": "social",
  1940. "name": "Instagram",
  1941. "uri": "https://www.instagram.com/legal/privacy/",
  1942. "needConsent": true,
  1943. "cookies": ['shbts', 'sessionid', 'csrftoken', 'rur', 'shbid', 'mid', 'ds_usr_id', 'ig_did', 'ig_cb', 'datr'],
  1944. "js": function () {
  1945. "use strict";
  1946. tarteaucitron.fallback(['instagram_post'], function (x) {
  1947. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
  1948. post_id = x.getAttribute('postId'),
  1949. post_permalink = x.getAttribute('data-instgrm-permalink'),
  1950. embed_width = x.getAttribute('width'),
  1951. embed_height = x.getAttribute('height'),
  1952. frame_width,
  1953. frame_height,
  1954. post_frame;
  1955. if (post_permalink != null) {
  1956. tarteaucitron.addScript('//www.instagram.com/embed.js', 'instagram-embed');
  1957. return '';
  1958. }
  1959. if (post_id === undefined) {
  1960. return "";
  1961. }
  1962. if (embed_width !== undefined) {
  1963. frame_width = 'width="' + embed_width + '" ';
  1964. } else {
  1965. frame_width = '"" ';
  1966. }
  1967. if (embed_height !== undefined) {
  1968. frame_height = 'height="' + embed_height + '" ';
  1969. } else {
  1970. frame_height = '"" ';
  1971. }
  1972. post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
  1973. return post_frame;
  1974. });
  1975. },
  1976. "fallback": function () {
  1977. "use strict";
  1978. var id = 'instagram';
  1979. tarteaucitron.fallback(['instagram_post'], function (elem) {
  1980. elem.style.width = elem.getAttribute('width') + 'px';
  1981. elem.style.height = elem.getAttribute('height') + 'px';
  1982. return tarteaucitron.engage(id);
  1983. });
  1984. }
  1985. };
  1986. // jsapi
  1987. tarteaucitron.services.jsapi = {
  1988. "key": "jsapi",
  1989. "type": "api",
  1990. "name": "Google jsapi",
  1991. "uri": "https://policies.google.com/privacy",
  1992. "needConsent": true,
  1993. "cookies": [],
  1994. "js": function () {
  1995. "use strict";
  1996. tarteaucitron.addScript('//www.google.com/jsapi');
  1997. }
  1998. };
  1999. // twitterwidgetsapi
  2000. tarteaucitron.services.twitterwidgetsapi = {
  2001. "key": "twitterwidgetsapi",
  2002. "type": "api",
  2003. "name": "Twitter Widgets API",
  2004. "uri": "https://support.twitter.com/articles/20170514",
  2005. "needConsent": true,
  2006. "cookies": [],
  2007. "js": function () {
  2008. "use strict";
  2009. tarteaucitron.fallback(['tacTwitterAPI'], '');
  2010. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2011. },
  2012. "fallback": function () {
  2013. "use strict";
  2014. var id = 'twitterwidgetsapi';
  2015. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  2016. }
  2017. };
  2018. // recaptcha
  2019. tarteaucitron.services.recaptcha = {
  2020. "key": "recaptcha",
  2021. "type": "api",
  2022. "name": "reCAPTCHA",
  2023. "uri": "https://policies.google.com/privacy",
  2024. "needConsent": true,
  2025. "cookies": ['nid'],
  2026. "js": function () {
  2027. "use strict";
  2028. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function () { };
  2029. tarteaucitron.fallback(['g-recaptcha'], '');
  2030. if (tarteaucitron.user.recaptchaapi === undefined) {
  2031. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  2032. } else {
  2033. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
  2034. }
  2035. },
  2036. "fallback": function () {
  2037. "use strict";
  2038. var id = 'recaptcha';
  2039. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  2040. }
  2041. };
  2042. // linkedin
  2043. tarteaucitron.services.linkedin = {
  2044. "key": "linkedin",
  2045. "type": "social",
  2046. "name": "Linkedin",
  2047. "uri": "https://www.linkedin.com/legal/cookie_policy",
  2048. "needConsent": true,
  2049. "cookies": [],
  2050. "js": function () {
  2051. "use strict";
  2052. tarteaucitron.fallback(['tacLinkedin'], '');
  2053. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  2054. if (tarteaucitron.isAjax === true) {
  2055. if (typeof IN !== "undefined") {
  2056. IN.parse();
  2057. }
  2058. }
  2059. },
  2060. "fallback": function () {
  2061. "use strict";
  2062. var id = 'linkedin';
  2063. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  2064. }
  2065. };
  2066. // mautic
  2067. tarteaucitron.services.mautic = {
  2068. "key": "mautic",
  2069. "type": "analytic",
  2070. "name": "Mautic",
  2071. "uri": "https://www.mautic.org/privacy-policy/",
  2072. "needConsent": true,
  2073. "cookies": ['mtc_id', 'mtc_sid'],
  2074. "js": function () {
  2075. "use strict";
  2076. if (tarteaucitron.user.mauticurl === undefined) {
  2077. return;
  2078. }
  2079. window.MauticTrackingObject = 'mt';
  2080. window.mt = window.mt || function () {
  2081. window.mt.q = window.mt.q || [];
  2082. window.mt.q.push(arguments);
  2083. };
  2084. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function () {
  2085. mt('send', 'pageview');
  2086. });
  2087. }
  2088. };
  2089. // microsoftcampaignanalytics
  2090. tarteaucitron.services.microsoftcampaignanalytics = {
  2091. "key": "microsoftcampaignanalytics",
  2092. "type": "analytic",
  2093. "name": "Microsoft Campaign Analytics",
  2094. "uri": "https://privacy.microsoft.com/privacystatement/",
  2095. "needConsent": true,
  2096. "cookies": [],
  2097. "js": function () {
  2098. "use strict";
  2099. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  2100. return;
  2101. }
  2102. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  2103. window.mstag = { loadTag: function () { }, time: (new Date()).getTime() };
  2104. window.mstag.loadTag("analytics", { dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId });
  2105. });
  2106. }
  2107. };
  2108. // onesignal
  2109. tarteaucitron.services.onesignal = {
  2110. "key": "onesignal",
  2111. "type": "api",
  2112. "name": "OneSignal",
  2113. "uri": "https://onesignal.com/privacy_policy",
  2114. "needConsent": true,
  2115. "cookies": [],
  2116. "js": function () {
  2117. "use strict";
  2118. if (tarteaucitron.user.onesignalAppId === undefined) {
  2119. return;
  2120. }
  2121. window.OneSignal = window.OneSignal || [];
  2122. window.OneSignal.push(function () {
  2123. window.OneSignal.init({
  2124. appId: tarteaucitron.user.onesignalAppId,
  2125. });
  2126. });
  2127. tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
  2128. }
  2129. };
  2130. // pinterest
  2131. tarteaucitron.services.pinterest = {
  2132. "key": "pinterest",
  2133. "type": "social",
  2134. "name": "Pinterest",
  2135. "uri": "https://about.pinterest.com/privacy-policy",
  2136. "needConsent": true,
  2137. "cookies": [],
  2138. "js": function () {
  2139. "use strict";
  2140. tarteaucitron.fallback(['tacPinterest'], '');
  2141. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  2142. },
  2143. "fallback": function () {
  2144. "use strict";
  2145. var id = 'pinterest';
  2146. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  2147. }
  2148. };
  2149. // prelinker
  2150. tarteaucitron.services.prelinker = {
  2151. "key": "prelinker",
  2152. "type": "ads",
  2153. "name": "Prelinker",
  2154. "uri": "http://www.prelinker.com/index/index/cgu/",
  2155. "needConsent": true,
  2156. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  2157. "js": function () {
  2158. "use strict";
  2159. var uniqIds = [],
  2160. i,
  2161. uri;
  2162. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  2163. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2164. uniqIds.push(uniqId);
  2165. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  2166. });
  2167. for (i = 0; i < uniqIds.length; i += 1) {
  2168. uri = 'http://promo.easy-dating.org/banner/index?';
  2169. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  2170. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  2171. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  2172. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  2173. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2174. }
  2175. },
  2176. "fallback": function () {
  2177. "use strict";
  2178. var id = 'prelinker';
  2179. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  2180. }
  2181. };
  2182. // prezi
  2183. tarteaucitron.services.prezi = {
  2184. "key": "prezi",
  2185. "type": "video",
  2186. "name": "Prezi",
  2187. "uri": "https://prezi.com/privacy-policy/",
  2188. "needConsent": true,
  2189. "cookies": [],
  2190. "js": function () {
  2191. "use strict";
  2192. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  2193. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Prezi iframe'),
  2194. id = x.getAttribute("data-id"),
  2195. width = x.getAttribute("width"),
  2196. height = x.getAttribute("height"),
  2197. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  2198. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2199. });
  2200. },
  2201. "fallback": function () {
  2202. "use strict";
  2203. var id = 'prezi';
  2204. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  2205. elem.style.width = elem.getAttribute('width') + 'px';
  2206. elem.style.height = elem.getAttribute('height') + 'px';
  2207. return tarteaucitron.engage(id);
  2208. });
  2209. }
  2210. };
  2211. // pubdirecte
  2212. tarteaucitron.services.pubdirecte = {
  2213. "key": "pubdirecte",
  2214. "type": "ads",
  2215. "name": "Pubdirecte",
  2216. "uri": "http://pubdirecte.com/contact.php",
  2217. "needConsent": true,
  2218. "cookies": [],
  2219. "js": function () {
  2220. "use strict";
  2221. var uniqIds = [],
  2222. i,
  2223. uri;
  2224. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  2225. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2226. uniqIds.push(uniqId);
  2227. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  2228. });
  2229. for (i = 0; i < uniqIds.length; i += 1) {
  2230. uri = '//www.pubdirecte.com/script/banniere.php?';
  2231. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  2232. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  2233. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2234. }
  2235. },
  2236. "fallback": function () {
  2237. "use strict";
  2238. var id = 'pubdirecte';
  2239. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  2240. }
  2241. };
  2242. // purechat
  2243. tarteaucitron.services.purechat = {
  2244. "key": "purechat",
  2245. "type": "support",
  2246. "name": "PureChat",
  2247. "uri": "https://www.purechat.com/privacy",
  2248. "needConsent": true,
  2249. "cookies": [],
  2250. "js": function () {
  2251. "use strict";
  2252. if (tarteaucitron.user.purechatId === undefined) {
  2253. return;
  2254. }
  2255. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  2256. try {
  2257. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  2258. } catch (e) { }
  2259. });
  2260. }
  2261. };
  2262. // Intercom
  2263. tarteaucitron.services.intercomChat = {
  2264. "key": "intercomChat",
  2265. "type": "support",
  2266. "name": "Intercom",
  2267. "uri": "https://www.intercom.com/",
  2268. "needConsent": true,
  2269. "cookies": [
  2270. "intercom-id-" + tarteaucitron.user.intercomKey,
  2271. "intercom-session-" + tarteaucitron.user.intercomKey,
  2272. ],
  2273. "readmoreLink": "https://www.intercom.com/legal/privacy",
  2274. "js": function () {
  2275. window.intercomSettings = {
  2276. app_id: tarteaucitron.user.intercomKey,
  2277. };
  2278. var w = window;
  2279. var ic = w.Intercom;
  2280. if (typeof ic === "function") {
  2281. ic("reattach_activator");
  2282. ic("update", w.intercomSettings);
  2283. } else {
  2284. var i = function () {
  2285. i.c(arguments);
  2286. };
  2287. i.q = [];
  2288. i.c = function (args) {
  2289. i.q.push(args);
  2290. };
  2291. w.Intercom = i;
  2292. tarteaucitron.addScript(
  2293. "https://widget.intercom.io/widget/" + tarteaucitron.user.intercomKey,
  2294. "",
  2295. function () {
  2296. // Execute callback if function `intercomChatEnable`
  2297. // is defined
  2298. if (typeof intercomChatEnable === 'function') {
  2299. intercomChatEnable()
  2300. }
  2301. }
  2302. );
  2303. }
  2304. },
  2305. "fallback": function () {
  2306. "use strict";
  2307. var id = "intercomChat";
  2308. tarteaucitron.fallback(
  2309. ["intercom-chat"],
  2310. function () {
  2311. // Execute callback if function `intercomChatDisable`
  2312. // is defined
  2313. if (typeof intercomChatDisable === 'function') {
  2314. intercomChatDisable()
  2315. }
  2316. return tarteaucitron.engage(id)
  2317. }
  2318. );
  2319. },
  2320. };
  2321. // rumbletalk
  2322. tarteaucitron.services.rumbletalk = {
  2323. "key": "rumbletalk",
  2324. "type": "social",
  2325. "name": "RumbleTalk",
  2326. "needConsent": true,
  2327. "cookies": ['AWSALB'],
  2328. "js": function () {
  2329. "use strict";
  2330. if (tarteaucitron.user.rumbletalkid === undefined) {
  2331. return;
  2332. }
  2333. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  2334. tarteaucitron.fallback(['rumbletalk'], function (x) {
  2335. var width = tarteaucitron.getElemWidth(x),
  2336. height = tarteaucitron.getElemHeight(x),
  2337. id = x.getAttribute("data-id");
  2338. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  2339. });
  2340. },
  2341. "fallback": function () {
  2342. "use strict";
  2343. var id = 'rumbletalk';
  2344. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  2345. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  2346. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  2347. return tarteaucitron.engage(id);
  2348. });
  2349. }
  2350. };
  2351. // shareaholic
  2352. tarteaucitron.services.shareaholic = {
  2353. "key": "shareaholic",
  2354. "type": "social",
  2355. "name": "Shareaholic",
  2356. "uri": "https://shareaholic.com/privacy/choices",
  2357. "needConsent": true,
  2358. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  2359. "js": function () {
  2360. "use strict";
  2361. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  2362. return;
  2363. }
  2364. tarteaucitron.fallback(['shareaholic-canvas'], '');
  2365. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  2366. try {
  2367. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  2368. } catch (e) { }
  2369. });
  2370. },
  2371. "fallback": function () {
  2372. "use strict";
  2373. var id = 'shareaholic';
  2374. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  2375. }
  2376. };
  2377. // shareasale
  2378. tarteaucitron.services.shareasale = {
  2379. "key": "shareasale",
  2380. "type": "ads",
  2381. "name": "ShareASale",
  2382. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  2383. "needConsent": true,
  2384. "cookies": [],
  2385. "js": function () {
  2386. "use strict";
  2387. var uniqIds = [],
  2388. i,
  2389. uri;
  2390. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  2391. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2392. uniqIds.push(uniqId);
  2393. 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>';
  2394. });
  2395. for (i = 0; i < uniqIds.length; i += 1) {
  2396. uri = 'https://shareasale.com/sale.cfm?';
  2397. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  2398. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  2399. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  2400. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  2401. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  2402. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  2403. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  2404. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  2405. }
  2406. },
  2407. "fallback": function () {
  2408. "use strict";
  2409. var id = 'shareasale';
  2410. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  2411. }
  2412. };
  2413. // sharethis
  2414. tarteaucitron.services.sharethis = {
  2415. "key": "sharethis",
  2416. "type": "social",
  2417. "name": "ShareThis",
  2418. "uri": "http://www.sharethis.com/legal/privacy/",
  2419. "needConsent": true,
  2420. "cookies": ['__unam'],
  2421. "js": function () {
  2422. "use strict";
  2423. if (tarteaucitron.user.sharethisPublisher === undefined) {
  2424. return;
  2425. }
  2426. var switchTo5x = true,
  2427. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  2428. tarteaucitron.fallback(['tacSharethis'], '');
  2429. tarteaucitron.addScript(uri, '', function () {
  2430. stLight.options({ publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false });
  2431. });
  2432. if (tarteaucitron.isAjax === true) {
  2433. if (typeof stButtons !== "undefined") {
  2434. stButtons.locateElements();
  2435. }
  2436. }
  2437. },
  2438. "fallback": function () {
  2439. "use strict";
  2440. var id = 'sharethis';
  2441. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  2442. }
  2443. };
  2444. // slideshare
  2445. tarteaucitron.services.slideshare = {
  2446. "key": "slideshare",
  2447. "type": "video",
  2448. "name": "SlideShare",
  2449. "uri": "https://www.linkedin.com/legal/privacy-policy",
  2450. "needConsent": true,
  2451. "cookies": [],
  2452. "js": function () {
  2453. "use strict";
  2454. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  2455. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Slideshare iframe'),
  2456. id = x.getAttribute("data-id"),
  2457. width = x.getAttribute("width"),
  2458. height = x.getAttribute("height"),
  2459. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  2460. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2461. });
  2462. },
  2463. "fallback": function () {
  2464. "use strict";
  2465. var id = 'slideshare';
  2466. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  2467. elem.style.width = elem.getAttribute('width') + 'px';
  2468. elem.style.height = elem.getAttribute('height') + 'px';
  2469. return tarteaucitron.engage(id);
  2470. });
  2471. }
  2472. };
  2473. // soundcloud
  2474. tarteaucitron.services.soundcloud = {
  2475. key: 'soundcloud',
  2476. type: 'video',
  2477. name: 'SoundCloud',
  2478. needConsent: true,
  2479. cookies: ['sc_anonymous_id', 'sclocale'],
  2480. js: function () {
  2481. "use strict";
  2482. tarteaucitron.fallback(['soundcloud_player'], function (x) {
  2483. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Soundcloud iframe'),
  2484. player_height = x.getAttribute('data-height'),
  2485. frame_height = 'height="' + player_height + '" ',
  2486. playable_id = x.getAttribute('data-playable-id'),
  2487. playable_type = x.getAttribute('data-playable-type'),
  2488. playable_url = x.getAttribute('data-playable-url'),
  2489. color = x.getAttribute('data-color'),
  2490. autoplay = x.getAttribute('data-auto-play'),
  2491. hideRelated = x.getAttribute('data-hide-related'),
  2492. showComments = x.getAttribute('data-show-comments'),
  2493. showUser = x.getAttribute('data-show-user'),
  2494. showReposts = x.getAttribute('data-show-reposts'),
  2495. showTeaser = x.getAttribute('data-show-teaser'),
  2496. visual = x.getAttribute('data-visual'),
  2497. artwork = x.getAttribute('data-artwork');
  2498. var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
  2499. if (playable_id === undefined && playable_url === undefined) {
  2500. return "";
  2501. }
  2502. // Allow to embed from API results (playable_type + playable_id)
  2503. var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
  2504. // Or from raw URL from Soundcloud website
  2505. if (playable_url && playable_url.length > 0) qs = '?url=' + escape(playable_url);
  2506. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2507. if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
  2508. if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
  2509. if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
  2510. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2511. if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
  2512. if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
  2513. if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
  2514. if (visual && visual.length > 0) qs += '&visual=' + visual;
  2515. if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
  2516. return '<iframe title="' + frame_title + '" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
  2517. });
  2518. },
  2519. fallback: function () {
  2520. "use strict";
  2521. tarteaucitron.fallback(['soundcloud_player'], function (elem) {
  2522. elem.style.height = elem.getAttribute('data-height') + 'px';
  2523. return tarteaucitron.engage('soundcloud');
  2524. });
  2525. }
  2526. };
  2527. // spotify
  2528. tarteaucitron.services.spotify = {
  2529. "key": "spotify",
  2530. "type": "video",
  2531. "name": "Spotify",
  2532. "uri": "https://www.spotify.com/us/legal/privacy-policy/",
  2533. "needConsent": true,
  2534. "cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
  2535. "js": function () {
  2536. "use strict";
  2537. tarteaucitron.fallback(['spotify_player'], function (x) {
  2538. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Spotify iframe'),
  2539. spotify_id = x.getAttribute("spotifyID"),
  2540. spotify_width = x.getAttribute("width"),
  2541. frame_width = 'width=',
  2542. spotify_height = x.getAttribute("height"),
  2543. frame_height = 'height=',
  2544. spotify_frame;
  2545. if (spotify_id === undefined) {
  2546. return "";
  2547. }
  2548. if (spotify_width !== undefined) {
  2549. frame_width += '"' + spotify_width + '" ';
  2550. } else {
  2551. frame_width += '"" ';
  2552. }
  2553. if (spotify_height !== undefined) {
  2554. frame_height += '"' + spotify_height + '" ';
  2555. } else {
  2556. frame_height += '"" ';
  2557. }
  2558. spotify_frame = '<iframe title="' + frame_title + '" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  2559. return spotify_frame;
  2560. });
  2561. },
  2562. "fallback": function () {
  2563. "use strict";
  2564. var id = 'spotify';
  2565. tarteaucitron.fallback(['spotify_player'], function (elem) {
  2566. elem.style.width = elem.getAttribute('width') + 'px';
  2567. elem.style.height = elem.getAttribute('height') + 'px';
  2568. return tarteaucitron.engage(id);
  2569. });
  2570. }
  2571. };
  2572. // statcounter
  2573. tarteaucitron.services.statcounter = {
  2574. "key": "statcounter",
  2575. "type": "analytic",
  2576. "name": "StatCounter",
  2577. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  2578. "needConsent": true,
  2579. "cookies": ['sc_is_visitor_unique'],
  2580. "js": function () {
  2581. "use strict";
  2582. var uniqIds = [],
  2583. i,
  2584. uri = '//statcounter.com/counter/counter.js';
  2585. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  2586. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2587. uniqIds.push(uniqId);
  2588. return '<div id="' + uniqId + '"></div>';
  2589. });
  2590. for (i = 0; i < uniqIds.length; i += 1) {
  2591. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2592. }
  2593. },
  2594. "fallback": function () {
  2595. "use strict";
  2596. var id = 'statcounter';
  2597. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  2598. }
  2599. };
  2600. // timelinejs
  2601. tarteaucitron.services.timelinejs = {
  2602. "key": "timelinejs",
  2603. "type": "api",
  2604. "name": "Timeline JS",
  2605. "uri": "http://timeline.knightlab.com/#help",
  2606. "needConsent": true,
  2607. "cookies": [],
  2608. "js": function () {
  2609. "use strict";
  2610. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  2611. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Twitter iframe'),
  2612. spreadsheet_id = x.getAttribute("spreadsheet_id"),
  2613. width = x.getAttribute("width"),
  2614. height = x.getAttribute("height"),
  2615. lang = x.getAttribute("lang_2_letter"),
  2616. font = x.getAttribute("font"),
  2617. map = x.getAttribute("map"),
  2618. start_at_end = x.getAttribute("start_at_end"),
  2619. hash_bookmark = x.getAttribute("hash_bookmark"),
  2620. start_at_slide = x.getAttribute("start_at_slide"),
  2621. start_zoom = x.getAttribute("start_zoom"),
  2622. 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;
  2623. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
  2624. });
  2625. },
  2626. "fallback": function () {
  2627. "use strict";
  2628. var id = 'timelinejs';
  2629. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  2630. elem.style.width = elem.getAttribute('width') + 'px';
  2631. elem.style.height = elem.getAttribute('height') + 'px';
  2632. return tarteaucitron.engage(id);
  2633. });
  2634. }
  2635. };
  2636. // tagcommander
  2637. tarteaucitron.services.tagcommander = {
  2638. "key": "tagcommander",
  2639. "type": "api",
  2640. "name": "TagCommander",
  2641. "uri": "https://www.commandersact.com/en/privacy/",
  2642. "needConsent": true,
  2643. "cookies": [],
  2644. "js": function () {
  2645. "use strict";
  2646. if (tarteaucitron.user.tagcommanderid === undefined) {
  2647. return;
  2648. }
  2649. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  2650. }
  2651. };
  2652. // typekit
  2653. tarteaucitron.services.typekit = {
  2654. "key": "typekit",
  2655. "type": "api",
  2656. "name": "Typekit (adobe)",
  2657. "uri": "https://www.adobe.com/privacy.html",
  2658. "needConsent": true,
  2659. "cookies": [],
  2660. "js": function () {
  2661. "use strict";
  2662. if (tarteaucitron.user.typekitId === undefined) {
  2663. return;
  2664. }
  2665. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  2666. try {
  2667. Typekit.load();
  2668. } catch (e) { }
  2669. });
  2670. }
  2671. };
  2672. // twenga
  2673. tarteaucitron.services.twenga = {
  2674. "key": "twenga",
  2675. "type": "ads",
  2676. "name": "Twenga",
  2677. "uri": "http://www.twenga.com/privacy.php",
  2678. "needConsent": true,
  2679. "cookies": [],
  2680. "js": function () {
  2681. "use strict";
  2682. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  2683. return;
  2684. }
  2685. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  2686. }
  2687. };
  2688. // twitter
  2689. tarteaucitron.services.twitter = {
  2690. "key": "twitter",
  2691. "type": "social",
  2692. "name": "Twitter",
  2693. "uri": "https://support.twitter.com/articles/20170514",
  2694. "needConsent": true,
  2695. "cookies": [],
  2696. "js": function () {
  2697. "use strict";
  2698. tarteaucitron.fallback(['tacTwitter'], '');
  2699. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2700. },
  2701. "fallback": function () {
  2702. "use strict";
  2703. var id = 'twitter';
  2704. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  2705. }
  2706. };
  2707. // twitter embed
  2708. tarteaucitron.services.twitterembed = {
  2709. "key": "twitterembed",
  2710. "type": "social",
  2711. "name": "Twitter (cards)",
  2712. "uri": "https://support.twitter.com/articles/20170514",
  2713. "needConsent": true,
  2714. "cookies": [],
  2715. "js": function () {
  2716. "use strict";
  2717. var uniqIds = [],
  2718. i,
  2719. e,
  2720. html;
  2721. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  2722. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2723. uniqIds.push(uniqId);
  2724. html = '<div id="' + uniqId + '" ';
  2725. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  2726. html += 'theme="' + x.getAttribute('theme') + '" ';
  2727. html += 'cards="' + x.getAttribute('cards') + '" ';
  2728. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  2729. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  2730. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  2731. html += '></div>';
  2732. return html;
  2733. });
  2734. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  2735. var i;
  2736. for (i = 0; i < uniqIds.length; i += 1) {
  2737. e = document.getElementById(uniqIds[i]);
  2738. twttr.widgets.createTweet(
  2739. e.getAttribute('tweetid'),
  2740. e,
  2741. {
  2742. theme: e.getAttribute('theme'),
  2743. cards: e.getAttribute('cards'),
  2744. conversation: e.getAttribute('conversation'),
  2745. lang: tarteaucitron.getLanguage(),
  2746. dnt: true,
  2747. width: e.getAttribute('data-width'),
  2748. align: e.getAttribute('data-align')
  2749. }
  2750. );
  2751. }
  2752. });
  2753. },
  2754. "fallback": function () {
  2755. "use strict";
  2756. var id = 'twitterembed';
  2757. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  2758. elem.style.width = elem.getAttribute('data-width') + 'px';
  2759. return tarteaucitron.engage(id);
  2760. });
  2761. }
  2762. };
  2763. // twitter timeline
  2764. tarteaucitron.services.twittertimeline = {
  2765. "key": "twittertimeline",
  2766. "type": "social",
  2767. "name": "Twitter (timelines)",
  2768. "uri": "https://support.twitter.com/articles/20170514",
  2769. "needConsent": true,
  2770. "cookies": [],
  2771. "js": function () {
  2772. "use strict";
  2773. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  2774. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2775. },
  2776. "fallback": function () {
  2777. "use strict";
  2778. var id = 'twittertimeline';
  2779. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  2780. }
  2781. };
  2782. // twitter universal website tag
  2783. tarteaucitron.services.twitteruwt = {
  2784. "key": "twitteruwt",
  2785. "type": "analytic",
  2786. "name": "Twitter Universal Website Tag",
  2787. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  2788. "needConsent": true,
  2789. "cookies": [],
  2790. "js": function () {
  2791. "use strict";
  2792. window.twq = function () {
  2793. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  2794. }
  2795. window.twq.version = '1.1';
  2796. window.twq.queue = [];
  2797. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  2798. window.twq('init', tarteaucitron.user.twitteruwtId);
  2799. window.twq('track', 'PageView');
  2800. });
  2801. }
  2802. };
  2803. // user voice
  2804. tarteaucitron.services.uservoice = {
  2805. "key": "uservoice",
  2806. "type": "support",
  2807. "name": "UserVoice",
  2808. "uri": "https://www.uservoice.com/privacy/",
  2809. "needConsent": true,
  2810. "cookies": [],
  2811. "js": function () {
  2812. "use strict";
  2813. if (tarteaucitron.user.userVoiceApi === undefined) {
  2814. return;
  2815. }
  2816. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  2817. }
  2818. };
  2819. // vimeo
  2820. tarteaucitron.services.vimeo = {
  2821. "key": "vimeo",
  2822. "type": "video",
  2823. "name": "Vimeo",
  2824. "uri": "https://vimeo.com/privacy",
  2825. "needConsent": true,
  2826. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  2827. "js": function () {
  2828. "use strict";
  2829. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2830. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "data-title") || tarteaucitron.getElemAttr(x, "title") || 'Vimeo iframe'),
  2831. video_width = tarteaucitron.getElemAttr(x, "data-width") || tarteaucitron.getElemAttr(x, "width"),
  2832. frame_width = 'width=',
  2833. video_height = tarteaucitron.getElemAttr(x, "data-height") || tarteaucitron.getElemAttr(x, "height"),
  2834. frame_height = 'height=',
  2835. video_id = tarteaucitron.getElemAttr(x, "data-videoID") || tarteaucitron.getElemAttr(x, "videoID"),
  2836. video_allowfullscreen = tarteaucitron.getElemAttr(x, "data-allowfullscreen"),
  2837. video_autopause = tarteaucitron.getElemAttr(x, "data-autopause") || '',
  2838. video_autoplay = tarteaucitron.getElemAttr(x, "data-autoplay") || tarteaucitron.getElemAttr(x, "autoplay") || '',
  2839. video_background = tarteaucitron.getElemAttr(x, "data-background") || '',
  2840. video_byline = tarteaucitron.getElemAttr(x, "data-byline") || tarteaucitron.getElemAttr(x, "byline") || '',
  2841. video_color = tarteaucitron.getElemAttr(x, "data-color") || '',
  2842. video_controls = tarteaucitron.getElemAttr(x, "data-controls") || '',
  2843. video_loop = tarteaucitron.getElemAttr(x, "data-loop") || tarteaucitron.getElemAttr(x, "loop") || '',
  2844. video_maxheight = tarteaucitron.getElemAttr(x, "data-maxheight") || '',
  2845. video_maxwidth = tarteaucitron.getElemAttr(x, "data-maxwidth") || '',
  2846. video_muted = tarteaucitron.getElemAttr(x, "data-muted") || '',
  2847. video_playsinline = tarteaucitron.getElemAttr(x, "data-playsinline") || '',
  2848. video_portrait = tarteaucitron.getElemAttr(x, "data-portrait") || tarteaucitron.getElemAttr(x, "portrait") || '',
  2849. video_speed = tarteaucitron.getElemAttr(x, "data-speed") || '',
  2850. video_title = tarteaucitron.getElemAttr(x, "data-title") || tarteaucitron.getElemAttr(x, "title") || '',
  2851. video_transparent = tarteaucitron.getElemAttr(x, "data-transparent") || '',
  2852. video_frame;
  2853. if (video_id === undefined) {
  2854. return "";
  2855. }
  2856. if (video_width !== undefined) {
  2857. frame_width += '"' + video_width + '" ';
  2858. } else {
  2859. frame_width += '"" ';
  2860. }
  2861. if (video_height !== undefined) {
  2862. frame_height += '"' + video_height + '" ';
  2863. } else {
  2864. frame_height += '"" ';
  2865. }
  2866. var video_qs = "?";
  2867. if (video_title.length > 0) {
  2868. video_qs += "title=" + video_title;
  2869. }
  2870. if (video_byline.length > 0) {
  2871. if (video_qs.length > 0) {
  2872. video_qs += "&";
  2873. }
  2874. video_qs += "byline=" + video_byline;
  2875. }
  2876. if (video_portrait.length > 0) {
  2877. if (video_qs.length > 0) {
  2878. video_qs += "&";
  2879. }
  2880. video_qs += "portrait=" + video_portrait;
  2881. }
  2882. if (video_loop.length > 0) {
  2883. if (video_qs.length > 0) {
  2884. video_qs += "&";
  2885. }
  2886. video_qs += "loop=" + video_loop;
  2887. }
  2888. if (video_autoplay.length > 0) {
  2889. if (video_qs.length > 0) {
  2890. video_qs += "&";
  2891. }
  2892. video_qs += "autoplay=" + video_autoplay;
  2893. }
  2894. if (video_autopause.length > 0) {
  2895. if (video_qs.length > 0) {
  2896. video_qs += "&";
  2897. }
  2898. video_qs += "autopause=" + video_autopause;
  2899. }
  2900. if (video_background.length > 0) {
  2901. if (video_qs.length > 0) {
  2902. video_qs += "&";
  2903. }
  2904. video_qs += "background=" + video_background;
  2905. }
  2906. if (video_color.length > 0) {
  2907. if (video_qs.length > 0) {
  2908. video_qs += "&";
  2909. }
  2910. video_qs += "color=" + video_color;
  2911. }
  2912. if (video_controls.length > 0) {
  2913. if (video_qs.length > 0) {
  2914. video_qs += "&";
  2915. }
  2916. video_qs += "controls=" + video_controls;
  2917. }
  2918. if (video_maxheight.length > 0) {
  2919. if (video_qs.length > 0) {
  2920. video_qs += "&";
  2921. }
  2922. video_qs += "maxheight=" + video_maxheight;
  2923. }
  2924. if (video_maxwidth.length > 0) {
  2925. if (video_qs.length > 0) {
  2926. video_qs += "&";
  2927. }
  2928. video_qs += "maxwidth=" + video_maxwidth;
  2929. }
  2930. if (video_muted.length > 0) {
  2931. if (video_qs.length > 0) {
  2932. video_qs += "&";
  2933. }
  2934. video_qs += "muted=" + video_muted;
  2935. }
  2936. if (video_playsinline.length > 0) {
  2937. if (video_qs.length > 0) {
  2938. video_qs += "&";
  2939. }
  2940. video_qs += "playsinline=" + video_playsinline;
  2941. }
  2942. if (video_speed.length > 0) {
  2943. if (video_qs.length > 0) {
  2944. video_qs += "&";
  2945. }
  2946. video_qs += "speed=" + video_speed;
  2947. }
  2948. if (video_transparent.length > 0) {
  2949. if (video_qs.length > 0) {
  2950. video_qs += "&";
  2951. }
  2952. video_qs += "transparent=" + video_transparent;
  2953. }
  2954. if (video_qs === "?") {
  2955. video_qs = "";
  2956. }
  2957. video_frame = '<iframe title="' + frame_title + '" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + (video_allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  2958. return video_frame;
  2959. });
  2960. },
  2961. "fallback": function () {
  2962. "use strict";
  2963. var id = 'vimeo';
  2964. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2965. elem.style.width = elem.getAttribute('width') + 'px';
  2966. elem.style.height = elem.getAttribute('height') + 'px';
  2967. return tarteaucitron.engage(id);
  2968. });
  2969. }
  2970. };
  2971. // visualrevenue
  2972. tarteaucitron.services.visualrevenue = {
  2973. "key": "visualrevenue",
  2974. "type": "analytic",
  2975. "name": "VisualRevenue",
  2976. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2977. "needConsent": true,
  2978. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2979. "js": function () {
  2980. "use strict";
  2981. if (tarteaucitron.user.visualrevenueId === undefined) {
  2982. return;
  2983. }
  2984. window._vrq = window._vrq || [];
  2985. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2986. window._vrq.push(['automate', true]);
  2987. window._vrq.push(['track', function () { }]);
  2988. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2989. }
  2990. };
  2991. // verizon dot tag
  2992. tarteaucitron.services.verizondottag = {
  2993. "key": "verizondottag",
  2994. "type": "analytic",
  2995. "name": "Verizon Dot Tag",
  2996. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2997. "needConsent": true,
  2998. "cookies": [],
  2999. "js": function () {
  3000. "use strict";
  3001. window.dotq = window.dotq || [];
  3002. window.dotq.push({
  3003. 'projectId': tarteaucitron.user.verizondottagProjectId,
  3004. 'properties': { 'pixelId': tarteaucitron.user.verizondottagPixelId }
  3005. });
  3006. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  3007. //const items = window.dotq;
  3008. window.dotq = [];
  3009. window.dotq.push = function (item) {
  3010. YAHOO.ywa.I13N.fireBeacon([item])
  3011. };
  3012. YAHOO.ywa.I13N.fireBeacon(items)
  3013. });
  3014. }
  3015. };
  3016. // vshop
  3017. tarteaucitron.services.vshop = {
  3018. "key": "vshop",
  3019. "type": "ads",
  3020. "name": "vShop",
  3021. "uri": "http://vshop.fr/privacy-policy",
  3022. "needConsent": true,
  3023. "cookies": [],
  3024. "js": function () {
  3025. "use strict";
  3026. tarteaucitron.fallback(['vcashW'], '');
  3027. tarteaucitron.addScript('//vshop.fr/js/w.js');
  3028. },
  3029. "fallback": function () {
  3030. "use strict";
  3031. var id = 'vshop';
  3032. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  3033. }
  3034. };
  3035. // wysistat
  3036. tarteaucitron.services.wysistat = {
  3037. "key": "wysistat",
  3038. "type": "analytic",
  3039. "name": "Wysistat",
  3040. "uri": "http://wysistat.net/contact/",
  3041. "needConsent": true,
  3042. "cookies": ['Wysistat'],
  3043. "js": function () {
  3044. "use strict";
  3045. if (tarteaucitron.user.wysistat === undefined) {
  3046. return;
  3047. }
  3048. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  3049. 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);
  3050. });
  3051. }
  3052. };
  3053. // xiti
  3054. tarteaucitron.services.xiti = {
  3055. "key": "xiti",
  3056. "type": "analytic",
  3057. "name": "Xiti",
  3058. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3059. "needConsent": true,
  3060. "cookies": [],
  3061. "js": function () {
  3062. "use strict";
  3063. if (tarteaucitron.user.xitiId === undefined) {
  3064. return;
  3065. }
  3066. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  3067. Xt_r,
  3068. Xt_h,
  3069. Xt_i,
  3070. Xt_s,
  3071. div = document.createElement('div');
  3072. try {
  3073. Xt_r = top.document.referrer;
  3074. } catch (e) {
  3075. Xt_r = document.referrer;
  3076. }
  3077. Xt_h = new Date();
  3078. Xt_i = '<img style="display:none" border="0" alt="" ';
  3079. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  3080. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  3081. if (parseFloat(navigator.appVersion) >= 4) {
  3082. Xt_s = screen;
  3083. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  3084. }
  3085. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  3086. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  3087. if (typeof tarteaucitron.user.xitiMore === 'function') {
  3088. tarteaucitron.user.xitiMore();
  3089. }
  3090. }
  3091. };
  3092. // AT Internet
  3093. tarteaucitron.services.atinternet = {
  3094. "key": "atinternet",
  3095. "type": "analytic",
  3096. "name": "AT Internet (privacy by design)",
  3097. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3098. "needConsent": true,
  3099. "safeanalytic": false,
  3100. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  3101. "js": function () {
  3102. "use strict";
  3103. if (tarteaucitron.user.atLibUrl === undefined) {
  3104. return;
  3105. }
  3106. if (tarteaucitron.user.atinternetAlreadyLoaded !== undefined) {
  3107. return;
  3108. }
  3109. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3110. window.tag = new ATInternet.Tracker.Tag();
  3111. if (typeof tarteaucitron.user.atMore === 'function') {
  3112. tarteaucitron.user.atMore();
  3113. }
  3114. if (typeof window.tag.privacy !== 'undefined') {
  3115. window.tag.privacy.setVisitorOptin();
  3116. }
  3117. if (tarteaucitron.user.atinternetSendData !== false) {
  3118. window.tag.page.send();
  3119. }
  3120. });
  3121. },
  3122. "fallback": function () {
  3123. "use strict";
  3124. if (tarteaucitron.user.atLibUrl === undefined) {
  3125. return;
  3126. }
  3127. tarteaucitron.user.atinternetAlreadyLoaded = true;
  3128. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3129. window.tag = new ATInternet.Tracker.Tag();
  3130. if (typeof tarteaucitron.user.atMore === 'function') {
  3131. tarteaucitron.user.atMore();
  3132. }
  3133. if (typeof window.tag.privacy !== 'undefined') {
  3134. var visitorMode = window.tag.privacy.getVisitorMode();
  3135. if (visitorMode !== null && visitorMode.name !== undefined && visitorMode.name == "optout") {
  3136. window.tag.privacy.setVisitorOptout();
  3137. } else {
  3138. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  3139. }
  3140. }
  3141. if (tarteaucitron.user.atinternetSendData !== false) {
  3142. window.tag.page.send();
  3143. }
  3144. });
  3145. }
  3146. };
  3147. // AT Internet
  3148. tarteaucitron.services.atinternethightrack = {
  3149. "key": "atinternethightrack",
  3150. "type": "analytic",
  3151. "name": "AT Internet",
  3152. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3153. "needConsent": true,
  3154. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  3155. "js": function () {
  3156. "use strict";
  3157. if (tarteaucitron.user.atLibUrl === undefined) {
  3158. return;
  3159. }
  3160. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3161. var tag = new ATInternet.Tracker.Tag();
  3162. if (typeof tarteaucitron.user.atMore === 'function') {
  3163. tarteaucitron.user.atMore();
  3164. }
  3165. })
  3166. }
  3167. };
  3168. // youtube
  3169. tarteaucitron.services.youtube = {
  3170. "key": "youtube",
  3171. "type": "video",
  3172. "name": "YouTube",
  3173. "uri": "https://policies.google.com/privacy",
  3174. "needConsent": true,
  3175. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3176. "js": function () {
  3177. "use strict";
  3178. tarteaucitron.fallback(['youtube_player'], function (x) {
  3179. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Youtube iframe'),
  3180. video_id = tarteaucitron.getElemAttr(x, "videoID"),
  3181. srcdoc = tarteaucitron.getElemAttr(x, "srcdoc"),
  3182. loading = tarteaucitron.getElemAttr(x, "loading"),
  3183. video_width = tarteaucitron.getElemAttr(x, "width"),
  3184. frame_width = 'width=',
  3185. video_height = tarteaucitron.getElemAttr(x, "height"),
  3186. frame_height = 'height=',
  3187. video_frame,
  3188. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  3189. attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "loop"],
  3190. params = attrs.filter(function (a) {
  3191. return tarteaucitron.getElemAttr(x, a) !== null;
  3192. }).map(function (a) {
  3193. return a + "=" + tarteaucitron.getElemAttr(x, a);
  3194. }).join("&");
  3195. if(tarteaucitron.getElemAttr(x, "loop") == 1) {
  3196. params = params + "&playlist=" + video_id;
  3197. }
  3198. if (video_id === undefined) {
  3199. return "";
  3200. }
  3201. if (video_width !== undefined) {
  3202. frame_width += '"' + video_width + '" ';
  3203. } else {
  3204. frame_width += '"" ';
  3205. }
  3206. if (video_height !== undefined) {
  3207. frame_height += '"' + video_height + '" ';
  3208. } else {
  3209. frame_height += '"" ';
  3210. }
  3211. if (srcdoc !== undefined && srcdoc !== null && srcdoc !== "") {
  3212. srcdoc = 'srcdoc="' + srcdoc + '" ';
  3213. } else {
  3214. srcdoc = '';
  3215. }
  3216. if (loading !== undefined && loading !== null && loading !== "") {
  3217. loading = 'loading ';
  3218. } else {
  3219. loading = '';
  3220. }
  3221. video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '"' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + ' ' + srcdoc + ' ' + loading + '></iframe>';
  3222. return video_frame;
  3223. });
  3224. },
  3225. "fallback": function () {
  3226. "use strict";
  3227. var id = 'youtube';
  3228. tarteaucitron.fallback(['youtube_player'], function (elem) {
  3229. elem.style.width = elem.getAttribute('width') + 'px';
  3230. elem.style.height = elem.getAttribute('height') + 'px';
  3231. return tarteaucitron.engage(id);
  3232. });
  3233. }
  3234. };
  3235. // youtube playlist
  3236. tarteaucitron.services.youtubeplaylist = {
  3237. "key": "youtubeplaylist",
  3238. "type": "video",
  3239. "name": "YouTube (playlist)",
  3240. "uri": "https://policies.google.com/privacy",
  3241. "needConsent": true,
  3242. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3243. "js": function () {
  3244. "use strict";
  3245. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  3246. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Youtube iframe'),
  3247. playlist_id = tarteaucitron.getElemAttr(x, "playlistID"),
  3248. video_width = tarteaucitron.getElemAttr(x, "width"),
  3249. frame_width = 'width=',
  3250. video_height = tarteaucitron.getElemAttr(x, "height"),
  3251. frame_height = 'height=',
  3252. video_frame,
  3253. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  3254. params = 'theme=' + tarteaucitron.getElemAttr(x, "theme") + '&rel=' + tarteaucitron.getElemAttr(x, "rel") + '&controls=' + tarteaucitron.getElemAttr(x, "controls") + '&showinfo=' + tarteaucitron.getElemAttr(x, "showinfo") + '&autoplay=' + tarteaucitron.getElemAttr(x, "autoplay") + '&mute=' + tarteaucitron.getElemAttr(x, "mute");
  3255. if (playlist_id === undefined) {
  3256. return "";
  3257. }
  3258. if (video_width !== undefined) {
  3259. frame_width += '"' + video_width + '" ';
  3260. } else {
  3261. frame_width += '"" ';
  3262. }
  3263. if (video_height !== undefined) {
  3264. frame_height += '"' + video_height + '" ';
  3265. } else {
  3266. frame_height += '"" ';
  3267. }
  3268. video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '"' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  3269. return video_frame;
  3270. });
  3271. },
  3272. "fallback": function () {
  3273. "use strict";
  3274. var id = 'youtubeplaylist';
  3275. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  3276. elem.style.width = elem.getAttribute('width') + 'px';
  3277. elem.style.height = elem.getAttribute('height') + 'px';
  3278. return tarteaucitron.engage(id);
  3279. });
  3280. }
  3281. };
  3282. // zopim
  3283. tarteaucitron.services.zopim = {
  3284. "key": "zopim",
  3285. "type": "support",
  3286. "name": "Zopim",
  3287. "uri": "https://www.zopim.com/privacy",
  3288. "needConsent": true,
  3289. "cookies": ['__zlcid', '__zprivacy'],
  3290. "js": function () {
  3291. "use strict";
  3292. if (tarteaucitron.user.zopimID === undefined) {
  3293. return;
  3294. }
  3295. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  3296. }
  3297. };
  3298. // kameleoon
  3299. tarteaucitron.services.kameleoon = {
  3300. "key": "kameleoon",
  3301. "type": "analytic",
  3302. "name": "Kameleoon",
  3303. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  3304. "needConsent": true,
  3305. "cookies": [],
  3306. "js": function () {
  3307. "use strict";
  3308. if (tarteaucitron.user.kameleoon !== undefined) {
  3309. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  3310. }
  3311. }
  3312. };
  3313. // linkedin insight
  3314. tarteaucitron.services.linkedininsighttag = {
  3315. "key": "linkedininsighttag",
  3316. "type": "ads",
  3317. "name": "Linkedin Insight",
  3318. "uri": "https://www.linkedin.com/legal/cookie_policy",
  3319. "needConsent": true,
  3320. "cookies": [],
  3321. "js": function () {
  3322. "use strict";
  3323. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  3324. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  3325. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  3326. }
  3327. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  3328. }
  3329. };
  3330. // xiti smartTag
  3331. tarteaucitron.services.xiti_smarttag = {
  3332. "key": "xiti_smarttag",
  3333. "type": "analytic",
  3334. "name": "Xiti (SmartTag)",
  3335. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3336. "needConsent": true,
  3337. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "attvtreman", "attvtsession"],
  3338. "js": function () {
  3339. "use strict";
  3340. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  3341. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  3342. } else {
  3343. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  3344. if (xitiSmarttagId === undefined) {
  3345. return;
  3346. }
  3347. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  3348. }
  3349. }
  3350. };
  3351. // facebook pixel
  3352. tarteaucitron.services.facebookpixel = {
  3353. "key": "facebookpixel",
  3354. "type": "ads",
  3355. "name": "Facebook Pixel",
  3356. "uri": "https://www.facebook.com/policy.php",
  3357. "needConsent": true,
  3358. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src', '_fbq'],
  3359. "js": function () {
  3360. "use strict";
  3361. var n;
  3362. if (window.fbq) return;
  3363. n = window.fbq = function () { n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) };
  3364. if (!window._fbq) window._fbq = n;
  3365. n.push = n;
  3366. n.loaded = !0;
  3367. n.version = '2.0';
  3368. n.queue = [];
  3369. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  3370. fbq('init', tarteaucitron.user.facebookpixelId);
  3371. fbq('track', 'PageView');
  3372. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  3373. tarteaucitron.user.facebookpixelMore();
  3374. }
  3375. }
  3376. };
  3377. //Issuu
  3378. tarteaucitron.services.issuu = {
  3379. "key": "issuu",
  3380. "type": "other",
  3381. "name": "Issuu",
  3382. "uri": "https://issuu.com/legal/privacy",
  3383. "needConsent": true,
  3384. "cookies": ['__qca', 'iutk', 'mc'],
  3385. "js": function () {
  3386. "use strict";
  3387. tarteaucitron.fallback(['issuu_player'], function (x) {
  3388. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Issuu iframe'),
  3389. issuu_id = x.getAttribute("issuuID"),
  3390. issuu_width = x.getAttribute("width"),
  3391. frame_width = 'width=',
  3392. issuu_height = x.getAttribute("height"),
  3393. frame_height = 'height=',
  3394. issuu_frame,
  3395. issuu_embed;
  3396. if (issuu_id === undefined) {
  3397. return "";
  3398. }
  3399. if (issuu_width !== undefined) {
  3400. frame_width += '"' + issuu_width + '" ';
  3401. } else {
  3402. frame_width += '"" ';
  3403. }
  3404. if (issuu_height !== undefined) {
  3405. frame_height += '"' + issuu_height + '" ';
  3406. } else {
  3407. frame_height += '"" ';
  3408. }
  3409. if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
  3410. issuu_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
  3411. return issuu_frame;
  3412. });
  3413. },
  3414. "fallback": function () {
  3415. "use strict";
  3416. var id = 'issuu';
  3417. tarteaucitron.fallback(['issuu_player'], function (elem) {
  3418. elem.style.width = elem.getAttribute('width') + 'px';
  3419. elem.style.height = elem.getAttribute('height') + 'px';
  3420. return tarteaucitron.engage(id);
  3421. });
  3422. }
  3423. };
  3424. // webmecanik
  3425. tarteaucitron.services.webmecanik = {
  3426. "key": "webmecanik",
  3427. "type": "analytic",
  3428. "name": "Webmecanik",
  3429. "uri": "https://webmecanik.com/tos",
  3430. "needConsent": true,
  3431. "cookies": ['mtc_id', 'mtc_sid'],
  3432. "js": function () {
  3433. "use strict";
  3434. if (tarteaucitron.user.webmecanikurl === undefined) {
  3435. return;
  3436. }
  3437. window.MauticTrackingObject = 'mt';
  3438. window.mt = window.mt || function () {
  3439. window.mt.q = window.mt.q || [];
  3440. window.mt.q.push(arguments);
  3441. };
  3442. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function () {
  3443. mt('send', 'pageview');
  3444. });
  3445. }
  3446. };
  3447. // google analytics multiple
  3448. tarteaucitron.services.multiplegtag = {
  3449. "key": "multiplegtag",
  3450. "type": "analytic",
  3451. "name": "Google Analytics (gtag.js)",
  3452. "uri": "https://support.google.com/analytics/answer/6004245",
  3453. "needConsent": true,
  3454. "cookies": (function () {
  3455. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  3456. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3457. tarteaucitron.user.multiplegtagUa.forEach(function (ua) {
  3458. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  3459. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  3460. });
  3461. }
  3462. return cookies;
  3463. })(),
  3464. "js": function () {
  3465. "use strict";
  3466. window.dataLayer = window.dataLayer || [];
  3467. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3468. tarteaucitron.user.multiplegtagUa.forEach(function (ua) {
  3469. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  3470. window.gtag = function gtag() { dataLayer.push(arguments); }
  3471. gtag('js', new Date());
  3472. gtag('config', ua, { 'anonymize_ip': true });
  3473. });
  3474. });
  3475. }
  3476. }
  3477. };
  3478. // Koban
  3479. tarteaucitron.services.koban = {
  3480. "key": "koban",
  3481. "type": "analytic",
  3482. "name": "Koban",
  3483. "uri": "https://koban.cloud/tos",
  3484. "needConsent": true,
  3485. "cookies": ['kbntrk'],
  3486. "js": function () {
  3487. "use strict";
  3488. if (tarteaucitron.user.kobanurl === undefined) {
  3489. return;
  3490. }
  3491. if (tarteaucitron.user.kobanapi === undefined) {
  3492. return;
  3493. }
  3494. window.KobanObject = 'kb';
  3495. window.kb = window.kb || function () {
  3496. window.kb.q = window.kb.q || [];
  3497. window.kb.q.push(arguments);
  3498. };
  3499. window.kb.l = new Date();
  3500. kb('reg', tarteaucitron.user.kobanapi);
  3501. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function () {
  3502. });
  3503. }
  3504. };
  3505. // matomo
  3506. /*
  3507. 1. Set the following variable before the initialization :
  3508. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  3509. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  3510. 2. Push the service :
  3511. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  3512. 3. HTML
  3513. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3514. */
  3515. tarteaucitron.services.matomo = {
  3516. "key": "matomo",
  3517. "type": "analytic",
  3518. "name": "Matomo (privacy by design)",
  3519. "uri": "https://matomo.org/faq/general/faq_146/",
  3520. "needConsent": false,
  3521. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3522. "js": function () {
  3523. "use strict";
  3524. if (tarteaucitron.user.matomoId === undefined) {
  3525. return;
  3526. }
  3527. window._paq = window._paq || [];
  3528. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3529. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3530. window._paq.push(["setDoNotTrack", 1]);
  3531. window._paq.push(["trackPageView"]);
  3532. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3533. window._paq.push(["enableLinkTracking"]);
  3534. window._paq.push([function () {
  3535. var self = this;
  3536. function getOriginalVisitorCookieTimeout() {
  3537. var now = new Date(),
  3538. nowTs = Math.round(now.getTime() / 1000),
  3539. visitorInfo = self.getVisitorInfo();
  3540. var createTs = parseInt(visitorInfo[2]);
  3541. var cookieTimeout = 33696000; // 13 mois en secondes
  3542. var originalTimeout = createTs + cookieTimeout - nowTs;
  3543. return originalTimeout;
  3544. }
  3545. this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
  3546. }]);
  3547. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3548. // waiting for piwik to be ready to check first party cookies
  3549. var interval = setInterval(function () {
  3550. if (typeof Piwik === 'undefined') return
  3551. clearInterval(interval)
  3552. // make piwik/matomo cookie accessible by getting tracker
  3553. Piwik.getTracker();
  3554. // looping throught cookies
  3555. var theCookies = document.cookie.split(';');
  3556. for (var i = 1; i <= theCookies.length; i++) {
  3557. var cookie = theCookies[i - 1].split('=');
  3558. var cookieName = cookie[0].trim();
  3559. // if cookie starts like a piwik one, register it
  3560. if (cookieName.indexOf('_pk_') === 0) {
  3561. tarteaucitron.services.matomo.cookies.push(cookieName);
  3562. }
  3563. }
  3564. }, 100)
  3565. }
  3566. };
  3567. tarteaucitron.services.matomohightrack = {
  3568. "key": "matomohightrack",
  3569. "type": "analytic",
  3570. "name": "Matomo",
  3571. "uri": "https://matomo.org/faq/general/faq_146/",
  3572. "needConsent": false,
  3573. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3574. "js": function () {
  3575. "use strict";
  3576. if (tarteaucitron.user.matomoId === undefined) {
  3577. return;
  3578. }
  3579. window._paq = window._paq || [];
  3580. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3581. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3582. window._paq.push(["trackPageView"]);
  3583. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3584. window._paq.push(["enableLinkTracking"]);
  3585. window._paq.push([function () {
  3586. var self = this;
  3587. }]);
  3588. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3589. // waiting for piwik to be ready to check first party cookies
  3590. var interval = setInterval(function () {
  3591. if (typeof Piwik === 'undefined') return
  3592. clearInterval(interval)
  3593. Piwik.getTracker();
  3594. var theCookies = document.cookie.split(';');
  3595. for (var i = 1; i <= theCookies.length; i++) {
  3596. var cookie = theCookies[i - 1].split('=');
  3597. var cookieName = cookie[0].trim();
  3598. if (cookieName.indexOf('_pk_') === 0) {
  3599. tarteaucitron.services.matomo.cookies.push(cookieName);
  3600. }
  3601. }
  3602. }, 100)
  3603. }
  3604. };
  3605. // Hotjar
  3606. /*
  3607. 1. Set the following variable before the initialization :
  3608. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  3609. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  3610. 2. Push the service :
  3611. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  3612. 3. HTML
  3613. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3614. */
  3615. tarteaucitron.services.hotjar = {
  3616. "key": "hotjar",
  3617. "type": "analytic",
  3618. "name": "Hotjar",
  3619. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  3620. "needConsent": true,
  3621. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage", "_hjAbsoluteSessionInProgress", "_hjIncludeInPageviewSample", "_hjid"],
  3622. "js": function () {
  3623. "use strict";
  3624. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  3625. return;
  3626. }
  3627. window.hj = window.hj || function () {
  3628. (window.hj.q = window.hj.q || []).push(arguments)
  3629. };
  3630. window._hjSettings = {
  3631. hjid: tarteaucitron.user.hotjarId,
  3632. hjsv: tarteaucitron.user.HotjarSv
  3633. };
  3634. var uri = 'https://static.hotjar.com/c/hotjar-';
  3635. var extension = '.js?sv=';
  3636. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  3637. }
  3638. };
  3639. // bing ads universal event tracking
  3640. tarteaucitron.services.bingads = {
  3641. 'key': 'bingads',
  3642. 'type': 'ads',
  3643. 'name': 'Bing Ads Universal Event Tracking',
  3644. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  3645. 'needConsent': true,
  3646. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  3647. 'js': function () {
  3648. 'use strict';
  3649. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  3650. window.uetq = window.uetq || [];
  3651. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  3652. var bingadsCreate = { ti: tarteaucitron.user.bingadsID };
  3653. if ('bingadsStoreCookies' in tarteaucitron.user) {
  3654. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  3655. }
  3656. bingadsCreate.q = window.uetq;
  3657. window.uetq = new UET(bingadsCreate);
  3658. window.uetq.push('pageLoad');
  3659. if (typeof tarteaucitron.user.bingadsMore === 'function') {
  3660. tarteaucitron.user.bingadsMore();
  3661. }
  3662. });
  3663. }
  3664. };
  3665. //Matterport
  3666. tarteaucitron.services.matterport = {
  3667. "key": "matterport",
  3668. "type": "other",
  3669. "name": "Matterport",
  3670. "uri": "https://matterport.com/es/legal/privacy-policy/",
  3671. "needConsent": true,
  3672. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  3673. "js": function () {
  3674. "use strict";
  3675. tarteaucitron.fallback(['matterport'], function (x) {
  3676. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Matterport iframe'),
  3677. matterport_id = x.getAttribute("matterportID"),
  3678. matterport_width = x.getAttribute("width"),
  3679. frame_width = 'width=',
  3680. matterport_height = x.getAttribute("height"),
  3681. frame_height = 'height=',
  3682. matterport_parameters = x.getAttribute("parameters"),
  3683. matterport_allowfullscreen = x.getAttribute('allowfullscreen'),
  3684. matterport_frame;
  3685. if (matterport_id === undefined) {
  3686. return "";
  3687. }
  3688. if (matterport_width !== undefined) {
  3689. frame_width += '"' + matterport_width + '" ';
  3690. } else {
  3691. frame_width += '"" ';
  3692. }
  3693. if (matterport_height !== undefined) {
  3694. frame_height += '"' + matterport_height + '" ';
  3695. } else {
  3696. frame_height += '"" ';
  3697. }
  3698. if (matterport_parameters === undefined) {
  3699. return "";
  3700. }
  3701. matterport_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '"' + (matterport_allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  3702. return matterport_frame;
  3703. });
  3704. },
  3705. "fallback": function () {
  3706. "use strict";
  3707. var id = 'matterport';
  3708. tarteaucitron.fallback(['matterport'], function (elem) {
  3709. elem.style.width = elem.getAttribute('width') + 'px';
  3710. elem.style.height = elem.getAttribute('height') + 'px';
  3711. return tarteaucitron.engage(id);
  3712. });
  3713. }
  3714. };
  3715. // Adform
  3716. tarteaucitron.services.adform = {
  3717. "key": "adform",
  3718. "type": "ads",
  3719. "name": "Adform",
  3720. "uri": "https://site.adform.com/privacy-center/overview/",
  3721. "needConsent": true,
  3722. "cookies": [],
  3723. "js": function () {
  3724. "use strict";
  3725. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  3726. return;
  3727. }
  3728. window._adftrack = {
  3729. pm: tarteaucitron.user.adformpm,
  3730. divider: encodeURIComponent('|'),
  3731. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  3732. };
  3733. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  3734. }
  3735. };
  3736. // Active Campaign
  3737. tarteaucitron.services.activecampaign = {
  3738. "key": "activecampaign",
  3739. "type": "ads",
  3740. "name": "Active Campaign",
  3741. "uri": "https://www.activecampaign.com/privacy-policy/",
  3742. "needConsent": true,
  3743. "cookies": [],
  3744. "js": function () {
  3745. "use strict";
  3746. if (tarteaucitron.user.actid === undefined) {
  3747. return;
  3748. }
  3749. window.trackcmp_email = '';
  3750. tarteaucitron.addScript('https://trackcmp.net/visit?actid=' + tarteaucitron.user.actid + '&e=' + encodeURIComponent(trackcmp_email) + '&r=' + encodeURIComponent(document.referrer) + '&u=' + encodeURIComponent(window.location.href));
  3751. }
  3752. };
  3753. // tawk.to
  3754. tarteaucitron.services.tawkto = {
  3755. "key": "tawkto",
  3756. "type": "support",
  3757. "name": "Tawk.to chat",
  3758. "uri": "https://www.tawk.to/data-protection/",
  3759. "needConsent": true,
  3760. "cookies": [],
  3761. "js": function () {
  3762. "use strict";
  3763. if (tarteaucitron.user.tawktoId === undefined) {
  3764. return;
  3765. }
  3766. window.Tawk_API = window.Tawk_API || {};
  3767. window.Tawk_LoadStart = new Date();
  3768. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  3769. }
  3770. };
  3771. // getquanty
  3772. tarteaucitron.services.getquanty = {
  3773. "key": "getquanty",
  3774. "type": "analytic",
  3775. "name": "GetQuanty",
  3776. "uri": "https://www.getquanty.com/mentions-legales/",
  3777. "needConsent": true,
  3778. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid', 'cluid', 'eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  3779. "js": function () {
  3780. "use strict";
  3781. if (tarteaucitron.user.getguanty === undefined) {
  3782. return;
  3783. }
  3784. if (tarteaucitron.user.getquantyAlreadyLoaded !== undefined) {
  3785. return;
  3786. }
  3787. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&consent=1');
  3788. },
  3789. "fallback": function () {
  3790. "use strict";
  3791. if (tarteaucitron.user.getguanty === undefined) {
  3792. return;
  3793. }
  3794. tarteaucitron.user.getquantyAlreadyLoaded = true;
  3795. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&notrack=1');
  3796. }
  3797. };
  3798. // emolytics
  3799. tarteaucitron.services.emolytics = {
  3800. "key": "emolytics",
  3801. "type": "analytic",
  3802. "name": "Emolytics",
  3803. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  3804. "needConsent": true,
  3805. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  3806. "js": function () {
  3807. "use strict";
  3808. if (tarteaucitron.user.emolyticsID === undefined) {
  3809. return;
  3810. }
  3811. var scriptEmolytics = document.createElement('script');
  3812. scriptEmolytics.text = 'var getsmily_id="' + tarteaucitron.user.emolyticsID + '";';
  3813. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  3814. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  3815. }
  3816. };
  3817. // youtubeapi
  3818. tarteaucitron.services.youtubeapi = {
  3819. "key": "youtubeapi",
  3820. "type": "video",
  3821. "name": "Youtube (Js API)",
  3822. "uri": "https://policies.google.com/privacy",
  3823. "needConsent": true,
  3824. "cookies": [],
  3825. "js": function () {
  3826. "use strict";
  3827. tarteaucitron.addScript('https://www.youtube.com/player_api');
  3828. }
  3829. };
  3830. // Facil'ITI
  3831. tarteaucitron.services.faciliti = {
  3832. "key": "faciliti",
  3833. "type": "other",
  3834. "name": "Facil'ITI",
  3835. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  3836. "needConsent": true,
  3837. "cookies": ['FACIL_ITI_LS'],
  3838. "js": function () {
  3839. "use strict";
  3840. if (tarteaucitron.user.facilitiID === undefined) {
  3841. return;
  3842. }
  3843. (function (w, d, s, f) {
  3844. w[f] = w[f] || { conf: function () { (w[f].data = w[f].data || []).push(arguments); } };
  3845. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  3846. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  3847. }(window, document, 'script', 'FACIL_ITI'));
  3848. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  3849. }
  3850. };
  3851. // userlike
  3852. tarteaucitron.services.userlike = {
  3853. "key": "userlike",
  3854. "type": "support",
  3855. "name": "Userlike",
  3856. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  3857. "needConsent": true,
  3858. "cookies": ['uslk_s', 'uslk_e'],
  3859. "js": function () {
  3860. "use strict";
  3861. if (tarteaucitron.user.userlikeKey === undefined) {
  3862. return;
  3863. }
  3864. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  3865. }
  3866. };
  3867. // adobeanalytics
  3868. tarteaucitron.services.adobeanalytics = {
  3869. "key": "adobeanalytics",
  3870. "type": "analytic",
  3871. "name": "Adobe Analytics",
  3872. "uri": "https://www.adobe.com/privacy/policy.html",
  3873. "needConsent": true,
  3874. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  3875. "js": function () {
  3876. "use strict";
  3877. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  3878. return;
  3879. }
  3880. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  3881. }
  3882. };
  3883. // woopra customer journey analytics
  3884. tarteaucitron.services.woopra = {
  3885. 'key': 'woopra',
  3886. 'type': 'analytic',
  3887. 'name': 'Woopra Customer Journey Analytics',
  3888. 'uri': 'https://www.woopra.com/privacy',
  3889. 'needConsent': true,
  3890. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  3891. 'js': function () {
  3892. 'use strict';
  3893. //var w = tarteaucitron.user.woopraDomain;
  3894. //window[w] = window[w] || [];
  3895. (function () {
  3896. var t, i, e, n = window, o = document, a = arguments, s = "script", r = ["config", "track", "identify", "visit", "push", "call", "trackForm", "trackClick"], c = function () { var t, i = this; for (i._e = [], t = 0; r.length > t; t++)(function (t) { i[t] = function () { return i._e.push([t].concat(Array.prototype.slice.call(arguments, 0))), i } })(r[t]) }; for (n._w = n._w || {}, t = 0; a.length > t; t++)n._w[a[t]] = n[a[t]] = n[a[t]] || new c; i = o.createElement(s), i.async = 1, i.src = "//static.woopra.com/js/w.js", e = o.getElementsByTagName(s)[0], e.parentNode.insertBefore(i, e)
  3897. })("woopra");
  3898. woopra.config({
  3899. domain: tarteaucitron.user.woopraDomain
  3900. });
  3901. woopra.track();
  3902. }
  3903. };
  3904. // ausha
  3905. tarteaucitron.services.ausha = {
  3906. key: "ausha",
  3907. type: "video",
  3908. name: "Ausha",
  3909. uri: "https://www.ausha.co/protection-personal-data/",
  3910. needConsent: true,
  3911. cookies: [],
  3912. js: function () {
  3913. "use strict";
  3914. tarteaucitron.fallback(['ausha_player'], function (x) {
  3915. var player_height = x.getAttribute('data-height'),
  3916. podcast_id = x.getAttribute('data-podcast-id'),
  3917. player_id = x.getAttribute('data-player-id'),
  3918. playlist = x.getAttribute('data-playlist'),
  3919. color = x.getAttribute('data-color');
  3920. if (podcast_id === undefined) {
  3921. return "";
  3922. }
  3923. var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3';
  3924. if (playlist && playlist.length > 0) src += '&playlist=' + playlist;
  3925. if (color && color.length > 0) src += '&color=' + color.replace('#', '%23');
  3926. if (player_id && player_id.length > 0) src += '&playerId=' + player_id;
  3927. return '<iframe id="' + player_id + '" loading="lazy" width="100%" height="' + player_height + '" scrolling="no" frameborder="no" src="' + src + '"></iframe>';
  3928. });
  3929. tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player');
  3930. },
  3931. fallback: function () {
  3932. "use strict";
  3933. tarteaucitron.fallback(['ausha_player'], function (elem) {
  3934. elem.style.height = elem.getAttribute('data-height') + 'px';
  3935. return tarteaucitron.engage('ausha');
  3936. });
  3937. }
  3938. };
  3939. // visiblee
  3940. tarteaucitron.services.visiblee = {
  3941. key: "visiblee",
  3942. type: "analytic",
  3943. name: "Visiblee",
  3944. uri: "http://confidentiality.visiblee.io/fr/confidentialite",
  3945. needConsent: true,
  3946. cookies: ["visitor_v2", tarteaucitron.user.visibleedomain, "check", "campaign_ref_" + tarteaucitron.user.visibleedomain, "reload_" + tarteaucitron.user.visibleedomain],
  3947. js: function () {
  3948. "use strict";
  3949. if (tarteaucitron.user.visibleeclientid === undefined) {
  3950. return;
  3951. }
  3952. tarteaucitron.addScript('//www.link-page.info/tracking_' + tarteaucitron.user.visibleeclientid + '.js', 'visiblee');
  3953. }
  3954. };
  3955. // bandcamp
  3956. tarteaucitron.services.bandcamp = {
  3957. key: "bandcamp",
  3958. type: "video",
  3959. name: "Bandcamp",
  3960. uri: "https://bandcamp.com",
  3961. readmoreLink: "https://bandcamp.com/privacy",
  3962. needConsent: true,
  3963. cookies: ['client_id', 'BACKENDID', '_comm_playlist'],
  3964. js: function () {
  3965. "use strict";
  3966. tarteaucitron.fallback(['bandcamp_player'], function (x) {
  3967. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Bandcamp iframe'),
  3968. album_id = x.getAttribute("albumID"),
  3969. bandcamp_width = x.getAttribute("width"),
  3970. frame_width = 'width=',
  3971. bandcamp_height = x.getAttribute("height"),
  3972. frame_height = 'height=',
  3973. attrs = ["size", "bgcol", "linkcol", "artwork", "minimal", "tracklist", "package", "transparent"],
  3974. params = attrs.filter(function (a) {
  3975. return x.getAttribute(a) !== null;
  3976. }).map(function (a) {
  3977. if (a && a.length > 0) return a + "=" + x.getAttribute(a);
  3978. }).join("/");
  3979. if (album_id === null) {
  3980. return "";
  3981. }
  3982. if (bandcamp_width !== null || bandcamp_width !== "") {
  3983. frame_width += '"' + bandcamp_width + '" ';
  3984. } else {
  3985. frame_width += '"" ';
  3986. }
  3987. if (bandcamp_height !== null || bandcamp_height !== "") {
  3988. frame_height += '"' + bandcamp_height + '" ';
  3989. } else {
  3990. frame_height += '"" ';
  3991. }
  3992. var src = 'https://bandcamp.com/EmbeddedPlayer/album=' + album_id + '/' + params;
  3993. return '<iframe title="' + frame_title + '"' + frame_width + frame_height + 'src="' + src + '" frameborder="0" allowfullscreen seamless></iframe>';
  3994. });
  3995. },
  3996. fallback: function () {
  3997. "use strict";
  3998. tarteaucitron.fallback(['bandcamp_player'], function (elem) {
  3999. elem.style.width = elem.getAttribute('width');
  4000. elem.style.height = elem.getAttribute('height');
  4001. return tarteaucitron.engage('bandcamp');
  4002. });
  4003. }
  4004. };
  4005. // Discord Widget
  4006. tarteaucitron.services.discord = {
  4007. "key": "discord",
  4008. "type": "social",
  4009. "name": "Discord (Server Widget)",
  4010. "needConsent": true,
  4011. "cookies": ["__cfruid", "__dcfduid", "_ga", "_gcl_au", "OptanonConsent", "locale", "_gid"],
  4012. "uri": "https://discord.com/privacy",
  4013. "js": function () {
  4014. "use strict";
  4015. tarteaucitron.fallback(['discord_widget'], function (x) {
  4016. var id = x.getAttribute("guildID"),
  4017. width = x.getAttribute("width"),
  4018. height = x.getAttribute("height")
  4019. var widgetURL = "https://discord.com/widget?id=" + id;
  4020. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\"></iframe>";
  4021. });
  4022. },
  4023. "fallback": function () {
  4024. "use strict";
  4025. var id = 'discord';
  4026. tarteaucitron.fallback(['discord_widget'], function (elem) {
  4027. elem.style.width = elem.getAttribute('width') + 'px';
  4028. elem.style.height = elem.getAttribute('height') + 'px';
  4029. return tarteaucitron.engage(id);
  4030. });
  4031. }
  4032. };
  4033. // Google Maps
  4034. tarteaucitron.services.maps_noapi = {
  4035. "key": "maps_noapi",
  4036. "type": "other",
  4037. "name": "Google Maps",
  4038. "needConsent": true,
  4039. "cookies": ["NID", "OGPC", "1P_JAR", "CONSENT"],
  4040. "uri": "https://policies.google.com/privacy",
  4041. "js": function () {
  4042. "use strict";
  4043. tarteaucitron.fallback(['googlemaps_embed'], function (x) {
  4044. var id = x.getAttribute("id"),
  4045. width = x.getAttribute("width"),
  4046. height = x.getAttribute("height")
  4047. var widgetURL = "https://google.com/maps/embed?pb=" + id;
  4048. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>";
  4049. });
  4050. },
  4051. "fallback": function () {
  4052. "use strict";
  4053. var id = 'maps_noapi';
  4054. tarteaucitron.fallback(['googlemaps_embed'], function (elem) {
  4055. elem.style.width = elem.getAttribute('width') + 'px';
  4056. elem.style.height = elem.getAttribute('height') + 'px';
  4057. return tarteaucitron.engage(id);
  4058. });
  4059. }
  4060. };
  4061. // hCaptcha
  4062. tarteaucitron.services.hcaptcha = {
  4063. "key": "hcaptcha",
  4064. "type": "other",
  4065. "name": "hCaptcha",
  4066. "needConsent": true,
  4067. "cookies": [],
  4068. "uri": "https://www.hcaptcha.com/privacy",
  4069. "js": function () {
  4070. "use strict";
  4071. tarteaucitron.fallback(["h-captcha"], '');
  4072. tarteaucitron.addScript("https://hcaptcha.com/1/api.js", "hcaptcha")
  4073. },
  4074. "fallback": function () {
  4075. "use strict";
  4076. var id = "hcaptcha";
  4077. tarteaucitron.fallback(["h-captcha"], tarteaucitron.engage(id));
  4078. }
  4079. };
  4080. // France Culture
  4081. tarteaucitron.services.fculture = {
  4082. "key": "fculture",
  4083. "type": "video",
  4084. "name": "France Culture",
  4085. "needConsent": true,
  4086. "cookies": ["_gid", "didomi_token", "outbrain_cid_fetch", "xtvrn", "xtant", "YSC", "ABTasty", "xtan", "ABTastySession", "xtidc", "_ga", "VISITOR_INFO1_LIVE", "euconsent-v2", "v1st", "dmvk", "ts", "VISITOR_INFO1_LIVE", "YSC"],
  4087. "uri": "https://www.radiofrance.com/politique-d-utilisation-des-cookies-sur-les-sites-internet-du-groupe-radio-france",
  4088. "js": function () {
  4089. "use strict";
  4090. tarteaucitron.fallback(['fculture_embed'], function (x) {
  4091. var id = x.getAttribute('id'),
  4092. width = x.getAttribute('width'),
  4093. height = x.getAttribute('height');
  4094. return "<iframe src=\"https://www.franceculture.fr/player/export-reecouter?content=" + id + "\" height=\"" + height + "\" width=\"" + width + "\"></iframe>"
  4095. });
  4096. },
  4097. "fallback": function () {
  4098. "use strict";
  4099. var id = "fculture";
  4100. tarteaucitron.fallback(["fculture_embed"], tarteaucitron.engage(id));
  4101. }
  4102. };
  4103. // Acast
  4104. tarteaucitron.services.acast = {
  4105. "key": "acast",
  4106. "type": "video",
  4107. "name": "Acast",
  4108. "needConsent": true,
  4109. "cookies": ["intercom-id-ayi0335i", "intercom-session-ayi0335i"],
  4110. "uri": "https://www.acast.com/en/privacy",
  4111. "js": function () {
  4112. "use strict";
  4113. tarteaucitron.fallback(['acast_embed'], function (x) {
  4114. var id = x.getAttribute('id1'),
  4115. id2 = x.getAttribute('id2'),
  4116. width = x.getAttribute('width'),
  4117. height = x.getAttribute('height'),
  4118. seek = x.getAttribute('seek');
  4119. var widgetURL = "https://embed.acast.com/" + id + "/" + id2 + "?seek=" + seek;
  4120. return "<iframe title=\"Embed Player\" width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\" scrolling=\"no\" frameBorder=\"0\" style=\"border: none; overflow: hidden;\"></iframe>";
  4121. });
  4122. },
  4123. "fallback": function () {
  4124. "use strict";
  4125. var id = "acast";
  4126. tarteaucitron.fallback(["acast_embed"], tarteaucitron.engage(id));
  4127. }
  4128. };
  4129. // Mixcloud
  4130. tarteaucitron.services.mixcloud = {
  4131. "key": "mixcloud",
  4132. "type": "video",
  4133. "name": "Mixcloud",
  4134. "needConsent": true,
  4135. "cookies": ["UID", "_gat", "__stripe_mid", "_gid", "_ga", "c", "csrftoken", "__stripe_sid", "mx_t"],
  4136. "uri": "https://www.mixcloud.com/privacy/",
  4137. "js": function () {
  4138. "use strict";
  4139. tarteaucitron.fallback(['mixcloud_embed'], function (x) {
  4140. var id = x.getAttribute('id'),
  4141. hidecover = x.getAttribute('hidecover'),
  4142. mini = x.getAttribute('mini'),
  4143. light = x.getAttribute('light'),
  4144. width = x.getAttribute('width'),
  4145. height = x.getAttribute('height');
  4146. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://www.mixcloud.com/widget/iframe/?hide_cover=" + hidecover + "&mini=" + mini + "&light=" + light + "&feed=" + id + "\" frameborder=\"0\" ></iframe>";
  4147. });
  4148. },
  4149. "fallback": function () {
  4150. "use strict";
  4151. var id = "mixcloud";
  4152. tarteaucitron.fallback(["mixcloud_embed"], tarteaucitron.engage(id));
  4153. }
  4154. };
  4155. // Google Agenda
  4156. tarteaucitron.services.gagenda = {
  4157. "key": "gagenda",
  4158. "type": "other",
  4159. "name": "Google Agenda",
  4160. "needConsent": true,
  4161. "cookies": ["CONSENT", "NID"],
  4162. "uri": "https://policies.google.com/privacy",
  4163. "js": function () {
  4164. "use strict";
  4165. tarteaucitron.fallback(['gagenda_embed'], function (x) {
  4166. var calendar_data = x.getAttribute('data'),
  4167. width = x.getAttribute('width'),
  4168. height = x.getAttribute('height');
  4169. return "<iframe loarding=\"lazy\" width=\"" + width + "\" height=\"" + height + "\" src=\"https://www.google.com/calendar/embed?" + calendar_data + "\" frameborder=\"0\" scrolling=\"no\" style=\"border-width:0\"></iframe>";
  4170. });
  4171. },
  4172. "fallback": function () {
  4173. "use strict";
  4174. var id = "gagenda";
  4175. tarteaucitron.fallback(["gagenda_embed"], tarteaucitron.engage(id));
  4176. }
  4177. };
  4178. // Google Docs
  4179. tarteaucitron.services.gdocs = {
  4180. "key": "gdocs",
  4181. "type": "other",
  4182. "name": "Google Docs",
  4183. "needConsent": true,
  4184. "cookies": ["CONSENT", "NID"],
  4185. "uri": "https://policies.google.com/privacy",
  4186. "js": function () {
  4187. "use strict";
  4188. tarteaucitron.fallback(['gdocs_embed'], function (x) {
  4189. var id = x.getAttribute('id'),
  4190. width = x.getAttribute('width'),
  4191. height = x.getAttribute('height');
  4192. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/document/d/e/" + id + "/pub?embedded=true\"></iframe>";
  4193. });
  4194. },
  4195. "fallback": function () {
  4196. "use strict";
  4197. var id = "gdocs";
  4198. tarteaucitron.fallback(["gdocs_embed"], tarteaucitron.engage(id));
  4199. }
  4200. };
  4201. // Google Sheets
  4202. tarteaucitron.services.gsheets = {
  4203. "key": "gsheets",
  4204. "type": "other",
  4205. "name": "Google Sheets",
  4206. "needConsent": true,
  4207. "cookies": ["CONSENT", "NID"],
  4208. "uri": "https://policies.google.com/privacy",
  4209. "js": function () {
  4210. "use strict";
  4211. tarteaucitron.fallback(['gsheets_embed'], function (x) {
  4212. var id = x.getAttribute('id'),
  4213. width = x.getAttribute('width'),
  4214. height = x.getAttribute('height'),
  4215. headers = x.getAttribute('headers');
  4216. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/spreadsheets/d/e/" + id + "/pubhtml?widget=true&amp;headers=" + headers + "\"></iframe>";
  4217. });
  4218. },
  4219. "fallback": function () {
  4220. "use strict";
  4221. var id = "gsheets";
  4222. tarteaucitron.fallback(["gsheets_embed"], tarteaucitron.engage(id));
  4223. }
  4224. };
  4225. // Google Slides
  4226. tarteaucitron.services.gslides = {
  4227. "key": "gslides",
  4228. "type": "other",
  4229. "name": "Google Slides",
  4230. "needConsent": true,
  4231. "cookies": ["CONSENT", "NID"],
  4232. "uri": "https://policies.google.com/privacy",
  4233. "js": function () {
  4234. "use strict";
  4235. tarteaucitron.fallback(['gslides_embed'], function (x) {
  4236. var id = x.getAttribute('id'),
  4237. width = x.getAttribute('width'),
  4238. height = x.getAttribute('height'),
  4239. autostart = x.getAttribute('autostart'),
  4240. loop = x.getAttribute('loop'),
  4241. delay = x.getAttribute('delay');
  4242. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/presentation/d/e/" + id + "/embed?start=" + autostart + "&loop=" + loop + "&delayms=" + delay + "\" frameborder=\"0\" allowfullscreen=\"true\" mozallowfullscreen=\"true\" webkitallowfullscreen=\"true\"></iframe>";
  4243. });
  4244. },
  4245. "fallback": function () {
  4246. "use strict";
  4247. var id = "gslides";
  4248. tarteaucitron.fallback(["gslides_embed"], tarteaucitron.engage(id));
  4249. }
  4250. };
  4251. // Google Forms
  4252. tarteaucitron.services.gforms = {
  4253. "key": "gforms",
  4254. "type": "other",
  4255. "name": "Google Forms",
  4256. "needConsent": true,
  4257. "cookies": ["CONSENT", "NID"],
  4258. "uri": "https://policies.google.com/privacy",
  4259. "js": function () {
  4260. "use strict";
  4261. tarteaucitron.fallback(['gforms_embed'], function (x) {
  4262. var id = x.getAttribute('id'),
  4263. width = x.getAttribute('width'),
  4264. height = x.getAttribute('height');
  4265. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/forms/d/e/" + id + "/viewform?embedded=true\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>";
  4266. });
  4267. },
  4268. "fallback": function () {
  4269. "use strict";
  4270. var id = "gforms";
  4271. tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id));
  4272. }
  4273. };
  4274. // Google Optimize
  4275. tarteaucitron.services.goptimize = {
  4276. "key": "goptimize",
  4277. "type": "other",
  4278. "name": "Google Optimize",
  4279. "needConsent": true,
  4280. "cookies": ["CONSENT", "NID"],
  4281. "uri": "https://policies.google.com/privacy",
  4282. "js": function () {
  4283. "use strict";
  4284. if (tarteaucitron.user.goptimize === undefined) {
  4285. return;
  4286. }
  4287. tarteaucitron.addScript('https://www.googleoptimize.com/optimize.js?id=' + tarteaucitron.user.goptimize);
  4288. }
  4289. };
  4290. // Marketo munchkin
  4291. tarteaucitron.services.marketomunchkin = {
  4292. "key": "marketomunchkin",
  4293. "type": "api",
  4294. "name": "Marketo munchkin",
  4295. "uri": "https://documents.marketo.com/legal/cookies",
  4296. "needConsent": true,
  4297. "cookies": ['OptAnon', '_mkto_trk'],
  4298. "js": function () {
  4299. "use strict";
  4300. if (tarteaucitron.user.marketomunchkinkey === undefined) {
  4301. return;
  4302. }
  4303. var didInit = false;
  4304. function initMunchkin() {
  4305. if (didInit === false) {
  4306. didInit = true;
  4307. Munchkin.init(tarteaucitron.user.marketomunchkinkey);
  4308. }
  4309. }
  4310. var s = document.createElement('script');
  4311. s.type = 'text/javascript';
  4312. s.async = true;
  4313. s.src = '//munchkin.marketo.net/munchkin.js';
  4314. s.onreadystatechange = function () {
  4315. if (this.readyState == 'complete' || this.readyState == 'loaded') {
  4316. initMunchkin();
  4317. }
  4318. };
  4319. s.onload = initMunchkin;
  4320. document.getElementsByTagName('head')[0].appendChild(s);
  4321. }
  4322. };
  4323. // outbrain
  4324. tarteaucitron.services.outbrain = {
  4325. "key": "outbrain",
  4326. "type": "ads",
  4327. "name": "Outbrain",
  4328. "uri": "https://www.outbrain.com/fr/advertisers/guidelines/",
  4329. "needConsent": true,
  4330. "cookies": [],
  4331. "js": function () {
  4332. "use strict";
  4333. tarteaucitron.addScript('https://widgets.outbrain.com/outbrain.js');
  4334. }
  4335. };
  4336. // affilae
  4337. tarteaucitron.services.affilae = {
  4338. "key": "affilae",
  4339. "type": "ads",
  4340. "name": "Affilae",
  4341. "uri": "https://affilae.com/en/privacy-cookie-policy/",
  4342. "needConsent": true,
  4343. "cookies": [],
  4344. "js": function () {
  4345. "use strict";
  4346. if (tarteaucitron.user.affilae === undefined) {
  4347. return;
  4348. }
  4349. window._ae = { "pid": tarteaucitron.user.affilae };
  4350. tarteaucitron.addScript('https://static.affilae.com/ae-v3.5.js');
  4351. }
  4352. };
  4353. // Canal-U.tv
  4354. tarteaucitron.services.canalu = {
  4355. "key": "canalu",
  4356. "type": "video",
  4357. "name": "Canal-U.tv",
  4358. "uri": "https://www.canal-u.tv/utilisation-des-cookies/",
  4359. "needConsent": true,
  4360. "cookies": [],
  4361. "js": function () {
  4362. "use strict";
  4363. tarteaucitron.fallback(['canalu_player'], function (x) {
  4364. var video_title = tarteaucitron.fixSelfXSS(x.getAttribute("videoTitle")),
  4365. frame_url = 'https://www.canal-u.tv/video/embed_code_plugin.1/' + video_title;
  4366. return '<div style="position:relative;padding-bottom:56.25%;padding-top:10px;height:0;overflow:hidden;">' +
  4367. '<iframe src="' + frame_url + '?width=100%&amp;height=100%" ' +
  4368. 'style="position:absolute;top:0;left:0;width:100%;height: 100%;" ' +
  4369. 'frameborder="0" ' +
  4370. 'allowfullscreen ' +
  4371. 'scrolling="no">' +
  4372. '</iframe>' +
  4373. '</div>';
  4374. });
  4375. },
  4376. "fallback": function () {
  4377. "use strict";
  4378. tarteaucitron.fallback(['canalu_player'], function (elem) {
  4379. return tarteaucitron.engage('canalu');
  4380. });
  4381. }
  4382. };
  4383. // WebTV Normandie Université
  4384. tarteaucitron.services.webtvnu = {
  4385. "key": "webtvnu",
  4386. "type": "video",
  4387. "name": "WebTV Normandie Université",
  4388. "uri": "https://docs.google.com/document/d/1tpVclj4QBoAq1meSZgYrpNECwp7dbmb_IhICY3sTl9c/edit",
  4389. "needConsent": true,
  4390. "cookies": [],
  4391. "js": function () {
  4392. "use strict";
  4393. tarteaucitron.fallback(['webtvnu_player'], function (x) {
  4394. var frame_url = 'https://webtv.normandie-univ.fr/permalink/' + x.getAttribute("videoID") + '/iframe/',
  4395. width = x.getAttribute("width"),
  4396. height = x.getAttribute("height");
  4397. return '<iframe width="' + width + '" height="' + height + '" src="' + frame_url + '" allowfullscreen="allowfullscreen" allow="autoplay"></iframe>';
  4398. });
  4399. },
  4400. "fallback": function () {
  4401. "use strict";
  4402. tarteaucitron.fallback(['webtvnu_player'], function (elem) {
  4403. return tarteaucitron.engage('webtvnu');
  4404. });
  4405. }
  4406. };
  4407. // studizz
  4408. tarteaucitron.services.studizz = {
  4409. "key": "studizz",
  4410. "type": "other",
  4411. "name": "Studizz Chatbot",
  4412. "uri": "https://group.studizz.fr/",
  4413. "needConsent": true,
  4414. "cookies": [],
  4415. "js": function () {
  4416. "use strict";
  4417. if (tarteaucitron.user.studizzToken === undefined) {
  4418. return;
  4419. }
  4420. tarteaucitron.addScript('https://webchat.studizz.fr/webchat.js?token=' + tarteaucitron.user.studizzToken);
  4421. }
  4422. };