tarteaucitron.services.js 183 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037
  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. // criteo onetag
  908. tarteaucitron.services.criteoonetag = {
  909. "key": "criteoonetag",
  910. "type": "ads",
  911. "name": "Criteo OneTag",
  912. "uri": "https://www.criteo.com/privacy/",
  913. "needConsent": true,
  914. "cookies": ['uid', 'tk', 'uid3pd'],
  915. "js": function() {
  916. "use strict";
  917. if (tarteaucitron.user.criteoonetagAccount === undefined) return;
  918. window.criteo_q = window.criteo_q || [];
  919. window.criteo_q.push({
  920. event: "setAccount",
  921. account: tarteaucitron.user.criteoonetagAccount
  922. })
  923. tarteaucitron.addScript('//static.criteo.net/js/ld/ld.js', '', function() {
  924. if (typeof tarteaucitron.user.criteoonetagMore === 'function') {
  925. tarteaucitron.user.criteoonetagMore();
  926. }
  927. });
  928. }
  929. };
  930. // artetv
  931. tarteaucitron.services.artetv = {
  932. "key": "artetv",
  933. "type": "video",
  934. "name": "Arte.tv",
  935. "uri": "https://www.arte.tv/sites/fr/corporate/donnees-personnelles/",
  936. "needConsent": true,
  937. "cookies": [],
  938. "js": function () {
  939. "use strict";
  940. tarteaucitron.fallback(['artetv_player'], function (x) {
  941. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Arte.tv iframe'),
  942. video_json = x.getAttribute("json"),
  943. video_width = x.getAttribute("width"),
  944. video_height = x.getAttribute("height"),
  945. video_frame,
  946. video_allowfullscreen = x.getAttribute("allowfullscreen");
  947. if (video_json === undefined) {
  948. return "";
  949. }
  950. 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>';
  951. return video_frame;
  952. });
  953. },
  954. "fallback": function () {
  955. "use strict";
  956. var id = 'artetv';
  957. tarteaucitron.fallback(['artetv_player'], function (elem) {
  958. elem.style.width = elem.getAttribute('width') + 'px';
  959. elem.style.height = elem.getAttribute('height') + 'px';
  960. return tarteaucitron.engage(id);
  961. });
  962. }
  963. };
  964. // dailymotion
  965. tarteaucitron.services.dailymotion = {
  966. "key": "dailymotion",
  967. "type": "video",
  968. "name": "Dailymotion",
  969. "uri": "https://www.dailymotion.com/legal/privacy",
  970. "needConsent": true,
  971. "cookies": ['ts', 'dmvk', 'hist', 'v1st', 's_vi'],
  972. "js": function () {
  973. "use strict";
  974. tarteaucitron.fallback(['dailymotion_player'], function (x) {
  975. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Dailymotion iframe'),
  976. video_id = tarteaucitron.getElemAttr(x, "videoID"),
  977. video_width = tarteaucitron.getElemAttr(x, "width"),
  978. frame_width = 'width=',
  979. video_height = tarteaucitron.getElemAttr(x, "height"),
  980. frame_height = 'height=',
  981. video_frame,
  982. embed_type = tarteaucitron.getElemAttr(x, "embedType"),
  983. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  984. showinfo = tarteaucitron.getElemAttr(x, "showinfo"),
  985. autoplay = tarteaucitron.getElemAttr(x, "autoplay"),
  986. api = tarteaucitron.getElemAttr(x, "api"),
  987. params = 'info=' + showinfo + '&autoPlay=' + autoplay + '&api=' + api;
  988. if (video_id === undefined) {
  989. return "";
  990. }
  991. if (video_width !== undefined) {
  992. frame_width += '"' + video_width + '" ';
  993. } else {
  994. frame_width += '"" ';
  995. }
  996. if (video_height !== undefined) {
  997. frame_height += '"' + video_height + '" ';
  998. } else {
  999. frame_height += '"" ';
  1000. }
  1001. if (embed_type === undefined || !['video', 'playlist'].includes(embed_type)) {
  1002. embed_type = "video";
  1003. }
  1004. 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>';
  1005. return video_frame;
  1006. });
  1007. },
  1008. "fallback": function () {
  1009. "use strict";
  1010. var id = 'dailymotion';
  1011. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  1012. elem.style.width = elem.getAttribute('width') + 'px';
  1013. elem.style.height = elem.getAttribute('height') + 'px';
  1014. return tarteaucitron.engage(id);
  1015. });
  1016. }
  1017. };
  1018. // dating affiliation
  1019. tarteaucitron.services.datingaffiliation = {
  1020. "key": "datingaffiliation",
  1021. "type": "ads",
  1022. "name": "Dating Affiliation",
  1023. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  1024. "needConsent": true,
  1025. "cookies": [],
  1026. "js": function () {
  1027. "use strict";
  1028. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  1029. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dating Affiliation iframe'),
  1030. comfrom = x.getAttribute("data-comfrom"),
  1031. r = x.getAttribute("data-r"),
  1032. p = x.getAttribute("data-p"),
  1033. cf0 = x.getAttribute("data-cf0"),
  1034. langue = x.getAttribute("data-langue"),
  1035. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  1036. cf2 = x.getAttribute("data-cf2"),
  1037. cfsa2 = x.getAttribute("data-cfsa2"),
  1038. width = x.getAttribute("width"),
  1039. height = x.getAttribute("height"),
  1040. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  1041. 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>';
  1042. });
  1043. },
  1044. "fallback": function () {
  1045. "use strict";
  1046. var id = 'datingaffiliation';
  1047. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  1048. elem.style.width = elem.getAttribute('width') + 'px';
  1049. elem.style.height = elem.getAttribute('height') + 'px';
  1050. return tarteaucitron.engage(id);
  1051. });
  1052. }
  1053. };
  1054. // dating affiliation popup
  1055. tarteaucitron.services.datingaffiliationpopup = {
  1056. "key": "datingaffiliationpopup",
  1057. "type": "ads",
  1058. "name": "Dating Affiliation (Pop Up)",
  1059. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  1060. "needConsent": true,
  1061. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  1062. "js": function () {
  1063. "use strict";
  1064. var uniqIds = [],
  1065. i,
  1066. uri;
  1067. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  1068. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1069. uniqIds.push(uniqId);
  1070. 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>';
  1071. });
  1072. for (i = 0; i < uniqIds.length; i += 1) {
  1073. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  1074. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  1075. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  1076. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  1077. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  1078. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  1079. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  1080. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  1081. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  1082. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  1083. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  1084. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  1085. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  1086. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  1087. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  1088. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  1089. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  1090. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  1091. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  1092. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  1093. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  1094. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1095. }
  1096. },
  1097. "fallback": function () {
  1098. "use strict";
  1099. var id = 'datingaffiliationpopup';
  1100. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  1101. }
  1102. };
  1103. // deezer
  1104. tarteaucitron.services.deezer = {
  1105. "key": "deezer",
  1106. "type": "video",
  1107. "name": "Deezer",
  1108. "uri": "https://www.deezer.com/legal/personal-datas",
  1109. "needConsent": true,
  1110. "cookies": [],
  1111. "js": function () {
  1112. "use strict";
  1113. tarteaucitron.fallback(['deezer_player'], function (x) {
  1114. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Deezer iframe'),
  1115. deezer_id = x.getAttribute("deezerID"),
  1116. deezer_width = x.getAttribute("width"),
  1117. frame_width = 'width=',
  1118. deezer_height = x.getAttribute("height"),
  1119. frame_height = 'height=',
  1120. deezer_frame,
  1121. embed_theme = x.getAttribute("theme"),
  1122. embed_type = x.getAttribute("embedType"),
  1123. radius = x.getAttribute("radius"),
  1124. tracklist = x.getAttribute("tracklist"),
  1125. allowfullscreen = x.getAttribute("allowfullscreen"),
  1126. params;
  1127. if (deezer_id === undefined) {
  1128. return "";
  1129. }
  1130. if (deezer_width !== undefined) {
  1131. frame_width += '"' + deezer_width + '" ';
  1132. } else {
  1133. frame_width += '"" ';
  1134. }
  1135. if (deezer_height !== undefined) {
  1136. frame_height += '"' + deezer_height + '" ';
  1137. } else {
  1138. frame_height += '"" ';
  1139. }
  1140. if (embed_theme === undefined || !['auto', 'light', 'dark'].includes(embed_theme)) {
  1141. embed_theme = "auto";
  1142. }
  1143. if (embed_type === undefined || !['album', 'track', 'playlist'].includes(embed_type)) {
  1144. embed_type = "album";
  1145. }
  1146. if (radius === undefined || !['true', 'false'].includes(radius)) {
  1147. radius = "true";
  1148. }
  1149. if (tracklist === undefined || !['true', 'false'].includes(tracklist)) {
  1150. tracklist = "true";
  1151. }
  1152. params = 'tracklist=' + tracklist + '&radius=' + radius;
  1153. 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>';
  1154. return deezer_frame;
  1155. });
  1156. },
  1157. "fallback": function () {
  1158. "use strict";
  1159. var id = 'deezer';
  1160. tarteaucitron.fallback(['deezer_player'], function (elem) {
  1161. elem.style.width = elem.getAttribute('width') + 'px';
  1162. elem.style.height = elem.getAttribute('height') + 'px';
  1163. return tarteaucitron.engage(id);
  1164. });
  1165. }
  1166. };
  1167. // leadforensics
  1168. tarteaucitron.services.leadforensics = {
  1169. "key": "leadforensics",
  1170. "type": "analytic",
  1171. "name": "LeadForensics",
  1172. "uri": "https://www.leadforensics.com/privacy-policy/",
  1173. "needConsent": true,
  1174. "cookies": ['trackalyzer'],
  1175. "js": function () {
  1176. "use strict";
  1177. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  1178. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  1179. return;
  1180. }
  1181. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  1182. (function () {
  1183. var sf14g = document.createElement('script'); sf14g.async = true;
  1184. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  1185. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  1186. })();
  1187. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  1188. }
  1189. };
  1190. // disqus
  1191. tarteaucitron.services.disqus = {
  1192. "key": "disqus",
  1193. "type": "comment",
  1194. "name": "Disqus",
  1195. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  1196. "needConsent": true,
  1197. "cookies": [],
  1198. "js": function () {
  1199. "use strict";
  1200. if (tarteaucitron.user.disqusShortname === undefined) {
  1201. return;
  1202. }
  1203. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  1204. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  1205. },
  1206. "fallback": function () {
  1207. "use strict";
  1208. var id = 'disqus';
  1209. if (document.getElementById('disqus_thread')) {
  1210. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  1211. }
  1212. }
  1213. };
  1214. // ekomi
  1215. tarteaucitron.services.ekomi = {
  1216. "key": "ekomi",
  1217. "type": "social",
  1218. "name": "eKomi",
  1219. "uri": "http://www.ekomi-us.com/us/privacy/",
  1220. "needConsent": true,
  1221. "cookies": [],
  1222. "js": function () {
  1223. "use strict";
  1224. if (tarteaucitron.user.ekomiCertId === undefined) {
  1225. return;
  1226. }
  1227. window.eKomiIntegrationConfig = [
  1228. { certId: tarteaucitron.user.ekomiCertId }
  1229. ];
  1230. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  1231. }
  1232. };
  1233. // etracker
  1234. tarteaucitron.services.etracker = {
  1235. "key": "etracker",
  1236. "type": "analytic",
  1237. "name": "eTracker",
  1238. "uri": "https://www.etracker.com/en/data-protection.html",
  1239. "needConsent": true,
  1240. "cookies": [],
  1241. "js": function () {
  1242. "use strict";
  1243. if (tarteaucitron.user.etracker === undefined) {
  1244. return;
  1245. }
  1246. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () { }, true, "data-secure-code", tarteaucitron.user.etracker);
  1247. }
  1248. };
  1249. // facebook
  1250. tarteaucitron.services.facebook = {
  1251. "key": "facebook",
  1252. "type": "social",
  1253. "name": "Facebook",
  1254. "uri": "https://www.facebook.com/policy.php",
  1255. "needConsent": true,
  1256. "cookies": ['xs', 'sb', 'fr', 'datr', 'dpr', 'c_user'],
  1257. "js": function () {
  1258. "use strict";
  1259. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  1260. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1261. if (tarteaucitron.isAjax === true) {
  1262. if (typeof FB !== "undefined") {
  1263. FB.XFBML.parse();
  1264. }
  1265. }
  1266. },
  1267. "fallback": function () {
  1268. "use strict";
  1269. var id = 'facebook';
  1270. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  1271. }
  1272. };
  1273. // facebooklikebox
  1274. tarteaucitron.services.facebooklikebox = {
  1275. "key": "facebooklikebox",
  1276. "type": "social",
  1277. "name": "Facebook (like box)",
  1278. "uri": "https://www.facebook.com/policy.php",
  1279. "needConsent": true,
  1280. "cookies": [],
  1281. "js": function () {
  1282. "use strict";
  1283. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  1284. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  1285. if (tarteaucitron.isAjax === true) {
  1286. if (typeof FB !== "undefined") {
  1287. FB.XFBML.parse();
  1288. }
  1289. }
  1290. },
  1291. "fallback": function () {
  1292. "use strict";
  1293. var id = 'facebooklikebox';
  1294. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  1295. }
  1296. };
  1297. // facebookcomment
  1298. tarteaucitron.services.facebookcomment = {
  1299. "key": "facebookcomment",
  1300. "type": "comment",
  1301. "name": "Facebook (commentaire)",
  1302. "uri": "https://www.facebook.com/policy.php",
  1303. "needConsent": true,
  1304. "cookies": [],
  1305. "js": function () {
  1306. "use strict";
  1307. tarteaucitron.fallback(['fb-comments'], '');
  1308. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  1309. if (tarteaucitron.isAjax === true) {
  1310. if (typeof FB !== "undefined") {
  1311. FB.XFBML.parse();
  1312. }
  1313. }
  1314. },
  1315. "fallback": function () {
  1316. "use strict";
  1317. var id = 'facebookcomment';
  1318. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  1319. }
  1320. };
  1321. // ferank
  1322. tarteaucitron.services.ferank = {
  1323. "key": "ferank",
  1324. "type": "analytic",
  1325. "name": "FERank",
  1326. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  1327. "needConsent": false,
  1328. "cookies": [],
  1329. "js": function () {
  1330. "use strict";
  1331. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  1332. if (typeof tarteaucitron.user.ferankMore === 'function') {
  1333. tarteaucitron.user.ferankMore();
  1334. }
  1335. });
  1336. }
  1337. };
  1338. // pingdom
  1339. tarteaucitron.services.pingdom = {
  1340. "key": "pingdom",
  1341. "type": "api",
  1342. "name": "Pingdom",
  1343. "uri": "https://www.solarwinds.com/general-data-protection-regulation-cloud",
  1344. "needConsent": true,
  1345. "cookies": [],
  1346. "js": function () {
  1347. "use strict";
  1348. if (tarteaucitron.user.pingdomId === undefined) {
  1349. return;
  1350. }
  1351. window._prum = [['id', tarteaucitron.user.pingdomId], ['mark', 'firstbyte', (new Date()).getTime()]];
  1352. tarteaucitron.addScript('https://rum-static.pingdom.net/prum.min.js');
  1353. }
  1354. };
  1355. // simpleanalytics
  1356. tarteaucitron.services.simpleanalytics = {
  1357. "key": "simpleanalytics",
  1358. "type": "analytic",
  1359. "name": "Simple Analytics",
  1360. "uri": "https://docs.simpleanalytics.com/what-we-collect",
  1361. "needConsent": false,
  1362. "cookies": [],
  1363. "js": function () {
  1364. "use strict";
  1365. tarteaucitron.addScript('https://scripts.simpleanalyticscdn.com/latest.js');
  1366. }
  1367. };
  1368. // stonly
  1369. tarteaucitron.services.stonly = {
  1370. "key": "stonly",
  1371. "type": "api",
  1372. "name": "Stonly",
  1373. "uri": "https://stonly.com/privacy",
  1374. "needConsent": true,
  1375. "cookies": [],
  1376. "js": function () {
  1377. "use strict";
  1378. if (tarteaucitron.user.stonlyId === undefined) {
  1379. return;
  1380. }
  1381. window.STONLY_WID = tarteaucitron.user.stonlyId;
  1382. window.StonlyWidget || ((window.w = window.StonlyWidget = function () {
  1383. window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
  1384. }).queue = []);
  1385. tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
  1386. }
  1387. };
  1388. // stripe
  1389. /*tarteaucitron.services.stripe = {
  1390. "key": "stripe",
  1391. "type": "api",
  1392. "name": "Stripe",
  1393. "uri": "https://stripe.com/cookies-policy/legal",
  1394. "needConsent": true,
  1395. "cookies": [],
  1396. "js": function () {
  1397. "use strict";
  1398. tarteaucitron.addScript('https://js.stripe.com/v3/');
  1399. }
  1400. };*/
  1401. // ferank pub
  1402. tarteaucitron.services.ferankpub = {
  1403. "key": "ferankpub",
  1404. "type": "ads",
  1405. "name": "FERank (pub)",
  1406. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  1407. "needConsent": false,
  1408. "cookies": [],
  1409. "js": function () {
  1410. "use strict";
  1411. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  1412. if (tarteaucitron.isAjax === true) {
  1413. if (typeof ferankReady === 'function') {
  1414. ferankReady();
  1415. }
  1416. }
  1417. },
  1418. "fallback": function () {
  1419. "use strict";
  1420. var id = 'ferankpub';
  1421. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  1422. }
  1423. };
  1424. // get+
  1425. tarteaucitron.services.getplus = {
  1426. "key": "getplus",
  1427. "type": "analytic",
  1428. "name": "Get+",
  1429. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  1430. "needConsent": true,
  1431. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  1432. "js": function () {
  1433. "use strict";
  1434. if (tarteaucitron.user.getplusId === undefined) {
  1435. return;
  1436. }
  1437. window.webleads_site_ids = window.webleads_site_ids || [];
  1438. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  1439. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  1440. }
  1441. };
  1442. // google+
  1443. tarteaucitron.services.gplus = {
  1444. "key": "gplus",
  1445. "type": "social",
  1446. "name": "Google+",
  1447. "uri": "https://policies.google.com/privacy",
  1448. "needConsent": true,
  1449. "cookies": [],
  1450. "js": function () {
  1451. "use strict";
  1452. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1453. },
  1454. "fallback": function () {
  1455. "use strict";
  1456. var id = 'gplus';
  1457. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  1458. }
  1459. };
  1460. // google+ badge
  1461. tarteaucitron.services.gplusbadge = {
  1462. "key": "gplusbadge",
  1463. "type": "social",
  1464. "name": "Google+ (badge)",
  1465. "uri": "https://policies.google.com/privacy",
  1466. "needConsent": true,
  1467. "cookies": [],
  1468. "js": function () {
  1469. "use strict";
  1470. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1471. },
  1472. "fallback": function () {
  1473. "use strict";
  1474. var id = 'gplusbadge';
  1475. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  1476. }
  1477. };
  1478. // google adsense
  1479. tarteaucitron.services.adsense = {
  1480. "key": "adsense",
  1481. "type": "ads",
  1482. "name": "Google Adsense",
  1483. "uri": "https://adssettings.google.com/",
  1484. "needConsent": true,
  1485. "readmoreLink": "https://policies.google.com/technologies/partner-sites",
  1486. "cookies": ['__gads'],
  1487. "js": function () {
  1488. "use strict";
  1489. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  1490. },
  1491. "fallback": function () {
  1492. "use strict";
  1493. var id = 'adsense';
  1494. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  1495. }
  1496. };
  1497. // google partners badge
  1498. tarteaucitron.services.googlepartners = {
  1499. "key": "googlepartners",
  1500. "type": "ads",
  1501. "name": "Google Partners Badge",
  1502. "uri": "https://adssettings.google.com/",
  1503. "needConsent": true,
  1504. "cookies": [],
  1505. "js": function () {
  1506. "use strict";
  1507. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  1508. },
  1509. "fallback": function () {
  1510. "use strict";
  1511. var id = 'googlepartners';
  1512. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  1513. }
  1514. };
  1515. // google adsense search (form)
  1516. tarteaucitron.services.adsensesearchform = {
  1517. "key": "adsensesearchform",
  1518. "type": "ads",
  1519. "name": "Google Adsense Search (form)",
  1520. "uri": "https://adssettings.google.com/",
  1521. "needConsent": true,
  1522. "cookies": [],
  1523. "js": function () {
  1524. "use strict";
  1525. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  1526. }
  1527. };
  1528. // google adsense search (result)
  1529. tarteaucitron.services.adsensesearchresult = {
  1530. "key": "adsensesearchresult",
  1531. "type": "ads",
  1532. "name": "Google Adsense Search (result)",
  1533. "uri": "https://adssettings.google.com/",
  1534. "needConsent": true,
  1535. "cookies": [],
  1536. "js": function () {
  1537. "use strict";
  1538. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  1539. return;
  1540. }
  1541. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  1542. },
  1543. "fallback": function () {
  1544. "use strict";
  1545. var id = 'adsensesearchresult';
  1546. if (document.getElementById('gcse_searchresults')) {
  1547. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  1548. }
  1549. }
  1550. };
  1551. // googleadwordsconversion
  1552. tarteaucitron.services.googleadwordsconversion = {
  1553. "key": "googleadwordsconversion",
  1554. "type": "ads",
  1555. "name": "Google Adwords (conversion)",
  1556. "uri": "https://www.google.com/settings/ads",
  1557. "needConsent": true,
  1558. "cookies": [],
  1559. "js": function () {
  1560. "use strict";
  1561. if (tarteaucitron.user.adwordsconversionId === undefined) {
  1562. return;
  1563. }
  1564. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1565. window.google_trackConversion({
  1566. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1567. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1568. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1569. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1570. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1571. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1572. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1573. google_custom_params: {
  1574. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1575. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1576. }
  1577. });
  1578. });
  1579. }
  1580. };
  1581. // googleadwordsremarketing
  1582. tarteaucitron.services.googleadwordsremarketing = {
  1583. "key": "googleadwordsremarketing",
  1584. "type": "ads",
  1585. "name": "Google Adwords (remarketing)",
  1586. "uri": "https://www.google.com/settings/ads",
  1587. "needConsent": true,
  1588. "cookies": [],
  1589. "js": function () {
  1590. "use strict";
  1591. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1592. return;
  1593. }
  1594. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1595. window.google_trackConversion({
  1596. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1597. google_remarketing_only: true
  1598. });
  1599. });
  1600. }
  1601. };
  1602. // google analytics (old)
  1603. tarteaucitron.services.gajs = {
  1604. "key": "gajs",
  1605. "type": "analytic",
  1606. "name": "Google Analytics (ga.js)",
  1607. "uri": "https://policies.google.com/privacy",
  1608. "needConsent": true,
  1609. "cookies": (function () {
  1610. var googleIdentifier = tarteaucitron.user.gajsUa,
  1611. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1612. tagGCookie = '_ga_' + googleIdentifier;
  1613. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1614. tagGCookie = tagGCookie.replace(/G-/g, '');
  1615. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie, '_gcl_au'];
  1616. })(),
  1617. "js": function () {
  1618. "use strict";
  1619. window._gaq = window._gaq || [];
  1620. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1621. if (tarteaucitron.user.gajsAnonymizeIp) {
  1622. window._gaq.push(['_gat._anonymizeIp']);
  1623. }
  1624. if (tarteaucitron.user.gajsPageView) {
  1625. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1626. } else {
  1627. window._gaq.push(['_trackPageview']);
  1628. }
  1629. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1630. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1631. tarteaucitron.user.gajsMore();
  1632. }
  1633. });
  1634. }
  1635. };
  1636. // google analytics
  1637. tarteaucitron.services.analytics = {
  1638. "key": "analytics",
  1639. "type": "analytic",
  1640. "name": "Google Analytics (universal)",
  1641. "uri": "https://policies.google.com/privacy",
  1642. "needConsent": true,
  1643. "cookies": (function () {
  1644. var googleIdentifier = tarteaucitron.user.analyticsUa,
  1645. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1646. tagGCookie = '_ga_' + googleIdentifier;
  1647. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1648. tagGCookie = tagGCookie.replace(/G-/g, '');
  1649. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie, '_gcl_au'];
  1650. })(),
  1651. "js": function () {
  1652. "use strict";
  1653. window.GoogleAnalyticsObject = 'ga';
  1654. window.ga = window.ga || function () {
  1655. window.ga.q = window.ga.q || [];
  1656. window.ga.q.push(arguments);
  1657. };
  1658. window.ga.l = new Date();
  1659. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1660. var uaCreate = { 'cookieExpires': 34128000 };
  1661. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1662. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1663. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1664. ga('set', 'anonymizeIp', true);
  1665. }
  1666. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1667. tarteaucitron.user.analyticsPrepare();
  1668. }
  1669. if (tarteaucitron.user.analyticsPageView) {
  1670. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1671. } else {
  1672. ga('send', 'pageview');
  1673. }
  1674. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1675. tarteaucitron.user.analyticsMore();
  1676. }
  1677. });
  1678. }
  1679. };
  1680. // google analytics
  1681. tarteaucitron.services.gtag = {
  1682. "key": "gtag",
  1683. "type": "analytic",
  1684. "name": "Google Analytics (gtag.js)",
  1685. "uri": "https://policies.google.com/privacy",
  1686. "needConsent": true,
  1687. "cookies": (function () {
  1688. var googleIdentifier = tarteaucitron.user.gtagUa,
  1689. tagUaCookie = '_gat_gtag_' + googleIdentifier,
  1690. tagGCookie = '_ga_' + googleIdentifier;
  1691. tagUaCookie = tagUaCookie.replace(/-/g, '_');
  1692. tagGCookie = tagGCookie.replace(/G-/g, '');
  1693. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', tagUaCookie, tagGCookie, '_gcl_au'];
  1694. })(),
  1695. "js": function () {
  1696. "use strict";
  1697. window.dataLayer = window.dataLayer || [];
  1698. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1699. window.gtag = function gtag() { dataLayer.push(arguments); }
  1700. gtag('js', new Date());
  1701. if (tarteaucitron.user.gtagCrossdomain) {
  1702. /**
  1703. * https://support.google.com/analytics/answer/7476333?hl=en
  1704. * https://developers.google.com/analytics/devguides/collection/gtagjs/cross-domain
  1705. */
  1706. gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true }, { linker: { domains: tarteaucitron.user.gtagCrossdomain, } });
  1707. } else {
  1708. gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true });
  1709. }
  1710. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1711. tarteaucitron.user.gtagMore();
  1712. }
  1713. });
  1714. }
  1715. };
  1716. tarteaucitron.services.firebase = {
  1717. "key": "firebase",
  1718. "type": "analytic",
  1719. "name": "Firebase",
  1720. "uri": "https://firebase.google.com/support/privacy",
  1721. "needConsent": true,
  1722. "cookies": (function () {
  1723. var googleIdentifier = tarteaucitron.user.firebaseMeasurementId,
  1724. tagGCookie = '_ga_' + googleIdentifier;
  1725. tagGCookie = tagGCookie.replace(/G-/g, '');
  1726. return ['_ga', tagGCookie];
  1727. })(),
  1728. "js": function () {
  1729. "use strict";
  1730. if (tarteaucitron.user.firebaseApiKey === undefined) {
  1731. return;
  1732. }
  1733. tarteaucitron.addScript('https://www.gstatic.com/firebasejs/8.6.2/firebase-app.js', '', function () {
  1734. tarteaucitron.addScript('https://www.gstatic.com/firebasejs/8.6.2/firebase-analytics.js', '', function () {
  1735. var firebaseConfig = {
  1736. apiKey: tarteaucitron.user.firebaseApiKey,
  1737. authDomain: tarteaucitron.user.firebaseAuthDomain,
  1738. databaseURL: tarteaucitron.user.firebaseDatabaseUrl,
  1739. projectId: tarteaucitron.user.firebaseProjectId,
  1740. storageBucket: tarteaucitron.user.firebaseStorageBucket,
  1741. appId: tarteaucitron.user.firebaseAppId,
  1742. measurementId: tarteaucitron.user.firebaseMeasurementId,
  1743. };
  1744. firebase.initializeApp(firebaseConfig);
  1745. firebase.analytics();
  1746. });
  1747. });
  1748. }
  1749. };
  1750. // genially
  1751. tarteaucitron.services.genially = {
  1752. "key": "genially",
  1753. "type": "api",
  1754. "name": "genially",
  1755. "uri": "https://www.genial.ly/cookies",
  1756. "needConsent": true,
  1757. "cookies": ['_gat', '_ga', '_gid'],
  1758. "js": function () {
  1759. "use strict";
  1760. tarteaucitron.fallback(['tac_genially'], function (x) {
  1761. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'genially iframe'),
  1762. width = x.getAttribute("width"),
  1763. height = x.getAttribute("height"),
  1764. geniallyid = x.getAttribute("geniallyid"),
  1765. allowfullscreen = x.getAttribute("allowfullscreen");
  1766. 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>';
  1767. });
  1768. },
  1769. "fallback": function () {
  1770. "use strict";
  1771. var id = 'genially';
  1772. tarteaucitron.fallback(['tac_genially'], function (elem) {
  1773. elem.style.width = elem.getAttribute('width') + 'px';
  1774. elem.style.height = elem.getAttribute('height') + 'px';
  1775. return tarteaucitron.engage(id);
  1776. });
  1777. }
  1778. };
  1779. // google maps
  1780. tarteaucitron.services.googlemaps = {
  1781. "key": "googlemaps",
  1782. "type": "api",
  1783. "name": "Google Maps",
  1784. "uri": "https://policies.google.com/privacy",
  1785. "needConsent": true,
  1786. "cookies": [],
  1787. "js": function () {
  1788. "use strict";
  1789. var mapOptions,
  1790. map,
  1791. uniqIds = [],
  1792. i;
  1793. if (tarteaucitron.user.mapscallback === undefined) {
  1794. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1795. }
  1796. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1797. var googleMapsLibraries = '';
  1798. if (tarteaucitron.user.googlemapsLibraries) {
  1799. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1800. }
  1801. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback=' + tarteaucitron.user.mapscallback + googleMapsLibraries);
  1802. window.tac_googlemaps_callback = function () {
  1803. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1804. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1805. uniqIds.push(uniqId);
  1806. 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>';
  1807. });
  1808. var i;
  1809. for (i = 0; i < uniqIds.length; i += 1) {
  1810. mapOptions = {
  1811. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1812. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1813. };
  1814. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1815. 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 });
  1816. }
  1817. };
  1818. },
  1819. "fallback": function () {
  1820. "use strict";
  1821. var id = 'googlemaps';
  1822. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1823. }
  1824. };
  1825. // googlemaps search
  1826. tarteaucitron.services.googlemapssearch = {
  1827. "key": "googlemapssearch",
  1828. "type": "api",
  1829. "name": "Google Maps Search API",
  1830. "uri": "https://policies.google.com/privacy",
  1831. "needConsent": true,
  1832. "cookies": ['nid'],
  1833. "js": function () {
  1834. "use strict";
  1835. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1836. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google search iframe'),
  1837. width = x.getAttribute("width"),
  1838. height = x.getAttribute("height"),
  1839. // url = x.getAttribute("data-url");
  1840. query = escape(x.getAttribute("data-search")),
  1841. key = x.getAttribute("data-api-key");
  1842. 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> '
  1843. });
  1844. },
  1845. "fallback": function () {
  1846. "use strict";
  1847. var id = 'googlemapssearch';
  1848. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1849. elem.style.width = elem.getAttribute('width') + 'px';
  1850. elem.style.height = elem.getAttribute('height') + 'px';
  1851. return tarteaucitron.engage(id);
  1852. });
  1853. }
  1854. };
  1855. // googlemaps embed iframe
  1856. tarteaucitron.services.googlemapsembed = {
  1857. "key": "googlemapsembed",
  1858. "type": "api",
  1859. "name": "Google Maps Embed",
  1860. "uri": "https://policies.google.com/privacy",
  1861. "needConsent": true,
  1862. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1863. "js": function () {
  1864. "use strict";
  1865. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1866. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google maps iframe'),
  1867. width = tarteaucitron.getElemWidth(x),
  1868. height = tarteaucitron.getElemHeight(x),
  1869. url = x.getAttribute("data-url");
  1870. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1871. });
  1872. },
  1873. "fallback": function () {
  1874. "use strict";
  1875. var id = 'googlemapsembed';
  1876. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1877. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1878. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1879. return tarteaucitron.engage(id);
  1880. });
  1881. }
  1882. };
  1883. // google tag manager
  1884. tarteaucitron.services.googletagmanager = {
  1885. "key": "googletagmanager",
  1886. "type": "api",
  1887. "name": "Google Tag Manager",
  1888. "uri": "https://policies.google.com/privacy",
  1889. "needConsent": true,
  1890. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1891. "js": function () {
  1892. "use strict";
  1893. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1894. return;
  1895. }
  1896. window.dataLayer = window.dataLayer || [];
  1897. window.dataLayer.push({
  1898. 'gtm.start': new Date().getTime(),
  1899. event: 'gtm.js'
  1900. });
  1901. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1902. }
  1903. };
  1904. // google tag manager multiple
  1905. tarteaucitron.services.multiplegoogletagmanager = {
  1906. "key": "multiplegoogletagmanager",
  1907. "type": "api",
  1908. "name": "Google Tag Manager",
  1909. "uri": "https://policies.google.com/privacy",
  1910. "needConsent": true,
  1911. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1912. "js": function () {
  1913. "use strict";
  1914. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1915. return;
  1916. }
  1917. window.dataLayer = window.dataLayer || [];
  1918. window.dataLayer.push({
  1919. 'gtm.start': new Date().getTime(),
  1920. event: 'gtm.js'
  1921. });
  1922. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1923. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1924. });
  1925. }
  1926. };
  1927. // google webfonts
  1928. tarteaucitron.services.googlefonts = {
  1929. "key": "googlefonts",
  1930. "type": "api",
  1931. "name": "Google Webfonts",
  1932. "uri": "https://policies.google.com/privacy",
  1933. "needConsent": true,
  1934. "cookies": [],
  1935. "js": function () {
  1936. "use strict";
  1937. if (tarteaucitron.user.googleFonts === undefined) {
  1938. return;
  1939. }
  1940. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1941. WebFont.load({
  1942. google: {
  1943. families: tarteaucitron.user.googleFonts
  1944. }
  1945. });
  1946. });
  1947. }
  1948. };
  1949. // hubspot
  1950. tarteaucitron.services.hubspot = {
  1951. "key": "hubspot",
  1952. "type": "analytic",
  1953. "name": "Hubspot",
  1954. "uri": "https://legal.hubspot.com/privacy-policy",
  1955. "needConsent": true,
  1956. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1957. "js": function () {
  1958. "use strict";
  1959. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1960. }
  1961. };
  1962. // instagram
  1963. tarteaucitron.services.instagram = {
  1964. "key": "instagram",
  1965. "type": "social",
  1966. "name": "Instagram",
  1967. "uri": "https://www.instagram.com/legal/privacy/",
  1968. "needConsent": true,
  1969. "cookies": ['shbts', 'sessionid', 'csrftoken', 'rur', 'shbid', 'mid', 'ds_usr_id', 'ig_did', 'ig_cb', 'datr'],
  1970. "js": function () {
  1971. "use strict";
  1972. tarteaucitron.fallback(['instagram_post'], function (x) {
  1973. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
  1974. post_id = x.getAttribute('postId'),
  1975. post_permalink = x.getAttribute('data-instgrm-permalink'),
  1976. embed_width = x.getAttribute('width'),
  1977. embed_height = x.getAttribute('height'),
  1978. frame_width,
  1979. frame_height,
  1980. post_frame;
  1981. if (post_permalink != null) {
  1982. tarteaucitron.addScript('//www.instagram.com/embed.js', 'instagram-embed');
  1983. return '';
  1984. }
  1985. if (post_id === undefined) {
  1986. return "";
  1987. }
  1988. if (embed_width !== undefined) {
  1989. frame_width = 'width="' + embed_width + '" ';
  1990. } else {
  1991. frame_width = '"" ';
  1992. }
  1993. if (embed_height !== undefined) {
  1994. frame_height = 'height="' + embed_height + '" ';
  1995. } else {
  1996. frame_height = '"" ';
  1997. }
  1998. post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
  1999. return post_frame;
  2000. });
  2001. },
  2002. "fallback": function () {
  2003. "use strict";
  2004. var id = 'instagram';
  2005. tarteaucitron.fallback(['instagram_post'], function (elem) {
  2006. elem.style.width = elem.getAttribute('width') + 'px';
  2007. elem.style.height = elem.getAttribute('height') + 'px';
  2008. return tarteaucitron.engage(id);
  2009. });
  2010. }
  2011. };
  2012. // jsapi
  2013. tarteaucitron.services.jsapi = {
  2014. "key": "jsapi",
  2015. "type": "api",
  2016. "name": "Google jsapi",
  2017. "uri": "https://policies.google.com/privacy",
  2018. "needConsent": true,
  2019. "cookies": [],
  2020. "js": function () {
  2021. "use strict";
  2022. tarteaucitron.addScript('//www.google.com/jsapi');
  2023. }
  2024. };
  2025. // twitterwidgetsapi
  2026. tarteaucitron.services.twitterwidgetsapi = {
  2027. "key": "twitterwidgetsapi",
  2028. "type": "api",
  2029. "name": "Twitter Widgets API",
  2030. "uri": "https://support.twitter.com/articles/20170514",
  2031. "needConsent": true,
  2032. "cookies": [],
  2033. "js": function () {
  2034. "use strict";
  2035. tarteaucitron.fallback(['tacTwitterAPI'], '');
  2036. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2037. },
  2038. "fallback": function () {
  2039. "use strict";
  2040. var id = 'twitterwidgetsapi';
  2041. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  2042. }
  2043. };
  2044. // recaptcha
  2045. tarteaucitron.services.recaptcha = {
  2046. "key": "recaptcha",
  2047. "type": "api",
  2048. "name": "reCAPTCHA",
  2049. "uri": "https://policies.google.com/privacy",
  2050. "needConsent": true,
  2051. "cookies": ['nid'],
  2052. "js": function () {
  2053. "use strict";
  2054. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function () { };
  2055. tarteaucitron.fallback(['g-recaptcha'], '');
  2056. if (tarteaucitron.user.recaptchaapi === undefined) {
  2057. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  2058. } else {
  2059. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
  2060. }
  2061. },
  2062. "fallback": function () {
  2063. "use strict";
  2064. var id = 'recaptcha';
  2065. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  2066. }
  2067. };
  2068. // linkedin
  2069. tarteaucitron.services.linkedin = {
  2070. "key": "linkedin",
  2071. "type": "social",
  2072. "name": "Linkedin",
  2073. "uri": "https://www.linkedin.com/legal/cookie_policy",
  2074. "needConsent": true,
  2075. "cookies": [],
  2076. "js": function () {
  2077. "use strict";
  2078. tarteaucitron.fallback(['tacLinkedin'], '');
  2079. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  2080. if (tarteaucitron.isAjax === true) {
  2081. if (typeof IN !== "undefined") {
  2082. IN.parse();
  2083. }
  2084. }
  2085. },
  2086. "fallback": function () {
  2087. "use strict";
  2088. var id = 'linkedin';
  2089. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  2090. }
  2091. };
  2092. // mautic
  2093. tarteaucitron.services.mautic = {
  2094. "key": "mautic",
  2095. "type": "analytic",
  2096. "name": "Mautic",
  2097. "uri": "https://www.mautic.org/privacy-policy/",
  2098. "needConsent": true,
  2099. "cookies": ['mtc_id', 'mtc_sid'],
  2100. "js": function () {
  2101. "use strict";
  2102. if (tarteaucitron.user.mauticurl === undefined) {
  2103. return;
  2104. }
  2105. window.MauticTrackingObject = 'mt';
  2106. window.mt = window.mt || function () {
  2107. window.mt.q = window.mt.q || [];
  2108. window.mt.q.push(arguments);
  2109. };
  2110. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function () {
  2111. mt('send', 'pageview');
  2112. });
  2113. }
  2114. };
  2115. // microsoftcampaignanalytics
  2116. tarteaucitron.services.microsoftcampaignanalytics = {
  2117. "key": "microsoftcampaignanalytics",
  2118. "type": "analytic",
  2119. "name": "Microsoft Campaign Analytics",
  2120. "uri": "https://privacy.microsoft.com/privacystatement/",
  2121. "needConsent": true,
  2122. "cookies": [],
  2123. "js": function () {
  2124. "use strict";
  2125. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  2126. return;
  2127. }
  2128. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  2129. window.mstag = { loadTag: function () { }, time: (new Date()).getTime() };
  2130. window.mstag.loadTag("analytics", { dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId });
  2131. });
  2132. }
  2133. };
  2134. // onesignal
  2135. tarteaucitron.services.onesignal = {
  2136. "key": "onesignal",
  2137. "type": "api",
  2138. "name": "OneSignal",
  2139. "uri": "https://onesignal.com/privacy_policy",
  2140. "needConsent": true,
  2141. "cookies": [],
  2142. "js": function () {
  2143. "use strict";
  2144. if (tarteaucitron.user.onesignalAppId === undefined) {
  2145. return;
  2146. }
  2147. window.OneSignal = window.OneSignal || [];
  2148. window.OneSignal.push(function () {
  2149. window.OneSignal.init({
  2150. appId: tarteaucitron.user.onesignalAppId,
  2151. });
  2152. });
  2153. tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
  2154. }
  2155. };
  2156. // pinterest
  2157. tarteaucitron.services.pinterest = {
  2158. "key": "pinterest",
  2159. "type": "social",
  2160. "name": "Pinterest",
  2161. "uri": "https://about.pinterest.com/privacy-policy",
  2162. "needConsent": true,
  2163. "cookies": [],
  2164. "js": function () {
  2165. "use strict";
  2166. tarteaucitron.fallback(['tacPinterest'], '');
  2167. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  2168. },
  2169. "fallback": function () {
  2170. "use strict";
  2171. var id = 'pinterest';
  2172. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  2173. }
  2174. };
  2175. // prelinker
  2176. tarteaucitron.services.prelinker = {
  2177. "key": "prelinker",
  2178. "type": "ads",
  2179. "name": "Prelinker",
  2180. "uri": "http://www.prelinker.com/index/index/cgu/",
  2181. "needConsent": true,
  2182. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  2183. "js": function () {
  2184. "use strict";
  2185. var uniqIds = [],
  2186. i,
  2187. uri;
  2188. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  2189. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2190. uniqIds.push(uniqId);
  2191. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  2192. });
  2193. for (i = 0; i < uniqIds.length; i += 1) {
  2194. uri = 'http://promo.easy-dating.org/banner/index?';
  2195. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  2196. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  2197. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  2198. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  2199. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2200. }
  2201. },
  2202. "fallback": function () {
  2203. "use strict";
  2204. var id = 'prelinker';
  2205. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  2206. }
  2207. };
  2208. // prezi
  2209. tarteaucitron.services.prezi = {
  2210. "key": "prezi",
  2211. "type": "video",
  2212. "name": "Prezi",
  2213. "uri": "https://prezi.com/privacy-policy/",
  2214. "needConsent": true,
  2215. "cookies": [],
  2216. "js": function () {
  2217. "use strict";
  2218. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  2219. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Prezi iframe'),
  2220. id = x.getAttribute("data-id"),
  2221. width = x.getAttribute("width"),
  2222. height = x.getAttribute("height"),
  2223. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  2224. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2225. });
  2226. },
  2227. "fallback": function () {
  2228. "use strict";
  2229. var id = 'prezi';
  2230. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  2231. elem.style.width = elem.getAttribute('width') + 'px';
  2232. elem.style.height = elem.getAttribute('height') + 'px';
  2233. return tarteaucitron.engage(id);
  2234. });
  2235. }
  2236. };
  2237. // pubdirecte
  2238. tarteaucitron.services.pubdirecte = {
  2239. "key": "pubdirecte",
  2240. "type": "ads",
  2241. "name": "Pubdirecte",
  2242. "uri": "http://pubdirecte.com/contact.php",
  2243. "needConsent": true,
  2244. "cookies": [],
  2245. "js": function () {
  2246. "use strict";
  2247. var uniqIds = [],
  2248. i,
  2249. uri;
  2250. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  2251. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2252. uniqIds.push(uniqId);
  2253. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  2254. });
  2255. for (i = 0; i < uniqIds.length; i += 1) {
  2256. uri = '//www.pubdirecte.com/script/banniere.php?';
  2257. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  2258. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  2259. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2260. }
  2261. },
  2262. "fallback": function () {
  2263. "use strict";
  2264. var id = 'pubdirecte';
  2265. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  2266. }
  2267. };
  2268. // purechat
  2269. tarteaucitron.services.purechat = {
  2270. "key": "purechat",
  2271. "type": "support",
  2272. "name": "PureChat",
  2273. "uri": "https://www.purechat.com/privacy",
  2274. "needConsent": true,
  2275. "cookies": [],
  2276. "js": function () {
  2277. "use strict";
  2278. if (tarteaucitron.user.purechatId === undefined) {
  2279. return;
  2280. }
  2281. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  2282. try {
  2283. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  2284. } catch (e) { }
  2285. });
  2286. }
  2287. };
  2288. // Intercom
  2289. tarteaucitron.services.intercomChat = {
  2290. "key": "intercomChat",
  2291. "type": "support",
  2292. "name": "Intercom",
  2293. "uri": "https://www.intercom.com/",
  2294. "needConsent": true,
  2295. "cookies": [
  2296. "intercom-id-" + tarteaucitron.user.intercomKey,
  2297. "intercom-session-" + tarteaucitron.user.intercomKey,
  2298. ],
  2299. "readmoreLink": "https://www.intercom.com/legal/privacy",
  2300. "js": function () {
  2301. window.intercomSettings = {
  2302. app_id: tarteaucitron.user.intercomKey,
  2303. };
  2304. var w = window;
  2305. var ic = w.Intercom;
  2306. if (typeof ic === "function") {
  2307. ic("reattach_activator");
  2308. ic("update", w.intercomSettings);
  2309. } else {
  2310. var i = function () {
  2311. i.c(arguments);
  2312. };
  2313. i.q = [];
  2314. i.c = function (args) {
  2315. i.q.push(args);
  2316. };
  2317. w.Intercom = i;
  2318. tarteaucitron.addScript(
  2319. "https://widget.intercom.io/widget/" + tarteaucitron.user.intercomKey,
  2320. "",
  2321. function () {
  2322. // Execute callback if function `intercomChatEnable`
  2323. // is defined
  2324. if (typeof intercomChatEnable === 'function') {
  2325. intercomChatEnable()
  2326. }
  2327. }
  2328. );
  2329. }
  2330. },
  2331. "fallback": function () {
  2332. "use strict";
  2333. var id = "intercomChat";
  2334. tarteaucitron.fallback(
  2335. ["intercom-chat"],
  2336. function () {
  2337. // Execute callback if function `intercomChatDisable`
  2338. // is defined
  2339. if (typeof intercomChatDisable === 'function') {
  2340. intercomChatDisable()
  2341. }
  2342. return tarteaucitron.engage(id)
  2343. }
  2344. );
  2345. },
  2346. };
  2347. // rumbletalk
  2348. tarteaucitron.services.rumbletalk = {
  2349. "key": "rumbletalk",
  2350. "type": "social",
  2351. "name": "RumbleTalk",
  2352. "needConsent": true,
  2353. "cookies": ['AWSALB'],
  2354. "js": function () {
  2355. "use strict";
  2356. if (tarteaucitron.user.rumbletalkid === undefined) {
  2357. return;
  2358. }
  2359. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  2360. tarteaucitron.fallback(['rumbletalk'], function (x) {
  2361. var width = tarteaucitron.getElemWidth(x),
  2362. height = tarteaucitron.getElemHeight(x),
  2363. id = x.getAttribute("data-id");
  2364. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  2365. });
  2366. },
  2367. "fallback": function () {
  2368. "use strict";
  2369. var id = 'rumbletalk';
  2370. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  2371. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  2372. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  2373. return tarteaucitron.engage(id);
  2374. });
  2375. }
  2376. };
  2377. // shareaholic
  2378. tarteaucitron.services.shareaholic = {
  2379. "key": "shareaholic",
  2380. "type": "social",
  2381. "name": "Shareaholic",
  2382. "uri": "https://shareaholic.com/privacy/choices",
  2383. "needConsent": true,
  2384. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  2385. "js": function () {
  2386. "use strict";
  2387. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  2388. return;
  2389. }
  2390. tarteaucitron.fallback(['shareaholic-canvas'], '');
  2391. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  2392. try {
  2393. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  2394. } catch (e) { }
  2395. });
  2396. },
  2397. "fallback": function () {
  2398. "use strict";
  2399. var id = 'shareaholic';
  2400. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  2401. }
  2402. };
  2403. // shareasale
  2404. tarteaucitron.services.shareasale = {
  2405. "key": "shareasale",
  2406. "type": "ads",
  2407. "name": "ShareASale",
  2408. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  2409. "needConsent": true,
  2410. "cookies": [],
  2411. "js": function () {
  2412. "use strict";
  2413. var uniqIds = [],
  2414. i,
  2415. uri;
  2416. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  2417. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2418. uniqIds.push(uniqId);
  2419. 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>';
  2420. });
  2421. for (i = 0; i < uniqIds.length; i += 1) {
  2422. uri = 'https://shareasale.com/sale.cfm?';
  2423. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  2424. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  2425. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  2426. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  2427. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  2428. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  2429. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  2430. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  2431. }
  2432. },
  2433. "fallback": function () {
  2434. "use strict";
  2435. var id = 'shareasale';
  2436. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  2437. }
  2438. };
  2439. // sharethis
  2440. tarteaucitron.services.sharethis = {
  2441. "key": "sharethis",
  2442. "type": "social",
  2443. "name": "ShareThis",
  2444. "uri": "http://www.sharethis.com/legal/privacy/",
  2445. "needConsent": true,
  2446. "cookies": ['__unam'],
  2447. "js": function () {
  2448. "use strict";
  2449. if (tarteaucitron.user.sharethisPublisher === undefined) {
  2450. return;
  2451. }
  2452. var switchTo5x = true,
  2453. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  2454. tarteaucitron.fallback(['tacSharethis'], '');
  2455. tarteaucitron.addScript(uri, '', function () {
  2456. stLight.options({ publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false });
  2457. });
  2458. if (tarteaucitron.isAjax === true) {
  2459. if (typeof stButtons !== "undefined") {
  2460. stButtons.locateElements();
  2461. }
  2462. }
  2463. },
  2464. "fallback": function () {
  2465. "use strict";
  2466. var id = 'sharethis';
  2467. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  2468. }
  2469. };
  2470. // slideshare
  2471. tarteaucitron.services.slideshare = {
  2472. "key": "slideshare",
  2473. "type": "video",
  2474. "name": "SlideShare",
  2475. "uri": "https://www.linkedin.com/legal/privacy-policy",
  2476. "needConsent": true,
  2477. "cookies": [],
  2478. "js": function () {
  2479. "use strict";
  2480. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  2481. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Slideshare iframe'),
  2482. id = x.getAttribute("data-id"),
  2483. width = x.getAttribute("width"),
  2484. height = x.getAttribute("height"),
  2485. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  2486. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2487. });
  2488. },
  2489. "fallback": function () {
  2490. "use strict";
  2491. var id = 'slideshare';
  2492. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  2493. elem.style.width = elem.getAttribute('width') + 'px';
  2494. elem.style.height = elem.getAttribute('height') + 'px';
  2495. return tarteaucitron.engage(id);
  2496. });
  2497. }
  2498. };
  2499. // soundcloud
  2500. tarteaucitron.services.soundcloud = {
  2501. key: 'soundcloud',
  2502. type: 'video',
  2503. name: 'SoundCloud',
  2504. needConsent: true,
  2505. cookies: ['sc_anonymous_id', 'sclocale'],
  2506. js: function () {
  2507. "use strict";
  2508. tarteaucitron.fallback(['soundcloud_player'], function (x) {
  2509. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Soundcloud iframe'),
  2510. player_height = x.getAttribute('data-height'),
  2511. frame_height = 'height="' + player_height + '" ',
  2512. playable_id = x.getAttribute('data-playable-id'),
  2513. playable_type = x.getAttribute('data-playable-type'),
  2514. playable_url = x.getAttribute('data-playable-url'),
  2515. color = x.getAttribute('data-color'),
  2516. autoplay = x.getAttribute('data-auto-play'),
  2517. hideRelated = x.getAttribute('data-hide-related'),
  2518. showComments = x.getAttribute('data-show-comments'),
  2519. showUser = x.getAttribute('data-show-user'),
  2520. showReposts = x.getAttribute('data-show-reposts'),
  2521. showTeaser = x.getAttribute('data-show-teaser'),
  2522. visual = x.getAttribute('data-visual'),
  2523. artwork = x.getAttribute('data-artwork');
  2524. var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
  2525. if (playable_id === undefined && playable_url === undefined) {
  2526. return "";
  2527. }
  2528. // Allow to embed from API results (playable_type + playable_id)
  2529. var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
  2530. // Or from raw URL from Soundcloud website
  2531. if (playable_url && playable_url.length > 0) qs = '?url=' + escape(playable_url);
  2532. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2533. if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
  2534. if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
  2535. if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
  2536. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2537. if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
  2538. if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
  2539. if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
  2540. if (visual && visual.length > 0) qs += '&visual=' + visual;
  2541. if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
  2542. return '<iframe title="' + frame_title + '" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
  2543. });
  2544. },
  2545. fallback: function () {
  2546. "use strict";
  2547. tarteaucitron.fallback(['soundcloud_player'], function (elem) {
  2548. elem.style.height = elem.getAttribute('data-height') + 'px';
  2549. return tarteaucitron.engage('soundcloud');
  2550. });
  2551. }
  2552. };
  2553. // spotify
  2554. tarteaucitron.services.spotify = {
  2555. "key": "spotify",
  2556. "type": "video",
  2557. "name": "Spotify",
  2558. "uri": "https://www.spotify.com/us/legal/privacy-policy/",
  2559. "needConsent": true,
  2560. "cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
  2561. "js": function () {
  2562. "use strict";
  2563. tarteaucitron.fallback(['spotify_player'], function (x) {
  2564. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Spotify iframe'),
  2565. spotify_id = x.getAttribute("spotifyID"),
  2566. spotify_width = x.getAttribute("width"),
  2567. frame_width = 'width=',
  2568. spotify_height = x.getAttribute("height"),
  2569. frame_height = 'height=',
  2570. spotify_frame;
  2571. if (spotify_id === undefined) {
  2572. return "";
  2573. }
  2574. if (spotify_width !== undefined) {
  2575. frame_width += '"' + spotify_width + '" ';
  2576. } else {
  2577. frame_width += '"" ';
  2578. }
  2579. if (spotify_height !== undefined) {
  2580. frame_height += '"' + spotify_height + '" ';
  2581. } else {
  2582. frame_height += '"" ';
  2583. }
  2584. spotify_frame = '<iframe title="' + frame_title + '" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  2585. return spotify_frame;
  2586. });
  2587. },
  2588. "fallback": function () {
  2589. "use strict";
  2590. var id = 'spotify';
  2591. tarteaucitron.fallback(['spotify_player'], function (elem) {
  2592. elem.style.width = elem.getAttribute('width') + 'px';
  2593. elem.style.height = elem.getAttribute('height') + 'px';
  2594. return tarteaucitron.engage(id);
  2595. });
  2596. }
  2597. };
  2598. // statcounter
  2599. tarteaucitron.services.statcounter = {
  2600. "key": "statcounter",
  2601. "type": "analytic",
  2602. "name": "StatCounter",
  2603. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  2604. "needConsent": true,
  2605. "cookies": ['sc_is_visitor_unique'],
  2606. "js": function () {
  2607. "use strict";
  2608. var uniqIds = [],
  2609. i,
  2610. uri = '//statcounter.com/counter/counter.js';
  2611. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  2612. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2613. uniqIds.push(uniqId);
  2614. return '<div id="' + uniqId + '"></div>';
  2615. });
  2616. for (i = 0; i < uniqIds.length; i += 1) {
  2617. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2618. }
  2619. },
  2620. "fallback": function () {
  2621. "use strict";
  2622. var id = 'statcounter';
  2623. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  2624. }
  2625. };
  2626. // timelinejs
  2627. tarteaucitron.services.timelinejs = {
  2628. "key": "timelinejs",
  2629. "type": "api",
  2630. "name": "Timeline JS",
  2631. "uri": "http://timeline.knightlab.com/#help",
  2632. "needConsent": true,
  2633. "cookies": [],
  2634. "js": function () {
  2635. "use strict";
  2636. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  2637. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Twitter iframe'),
  2638. spreadsheet_id = x.getAttribute("spreadsheet_id"),
  2639. width = x.getAttribute("width"),
  2640. height = x.getAttribute("height"),
  2641. lang = x.getAttribute("lang_2_letter"),
  2642. font = x.getAttribute("font"),
  2643. map = x.getAttribute("map"),
  2644. start_at_end = x.getAttribute("start_at_end"),
  2645. hash_bookmark = x.getAttribute("hash_bookmark"),
  2646. start_at_slide = x.getAttribute("start_at_slide"),
  2647. start_zoom = x.getAttribute("start_zoom"),
  2648. 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;
  2649. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
  2650. });
  2651. },
  2652. "fallback": function () {
  2653. "use strict";
  2654. var id = 'timelinejs';
  2655. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  2656. elem.style.width = elem.getAttribute('width') + 'px';
  2657. elem.style.height = elem.getAttribute('height') + 'px';
  2658. return tarteaucitron.engage(id);
  2659. });
  2660. }
  2661. };
  2662. // tagcommander
  2663. tarteaucitron.services.tagcommander = {
  2664. "key": "tagcommander",
  2665. "type": "api",
  2666. "name": "TagCommander",
  2667. "uri": "https://www.commandersact.com/en/privacy/",
  2668. "needConsent": true,
  2669. "cookies": [],
  2670. "js": function () {
  2671. "use strict";
  2672. if (tarteaucitron.user.tagcommanderid === undefined) {
  2673. return;
  2674. }
  2675. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  2676. }
  2677. };
  2678. // typekit
  2679. tarteaucitron.services.typekit = {
  2680. "key": "typekit",
  2681. "type": "api",
  2682. "name": "Typekit (adobe)",
  2683. "uri": "https://www.adobe.com/privacy.html",
  2684. "needConsent": true,
  2685. "cookies": [],
  2686. "js": function () {
  2687. "use strict";
  2688. if (tarteaucitron.user.typekitId === undefined) {
  2689. return;
  2690. }
  2691. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  2692. try {
  2693. Typekit.load();
  2694. } catch (e) { }
  2695. });
  2696. }
  2697. };
  2698. // twenga
  2699. tarteaucitron.services.twenga = {
  2700. "key": "twenga",
  2701. "type": "ads",
  2702. "name": "Twenga",
  2703. "uri": "http://www.twenga.com/privacy.php",
  2704. "needConsent": true,
  2705. "cookies": [],
  2706. "js": function () {
  2707. "use strict";
  2708. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  2709. return;
  2710. }
  2711. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  2712. }
  2713. };
  2714. // twitter
  2715. tarteaucitron.services.twitter = {
  2716. "key": "twitter",
  2717. "type": "social",
  2718. "name": "Twitter",
  2719. "uri": "https://support.twitter.com/articles/20170514",
  2720. "needConsent": true,
  2721. "cookies": [],
  2722. "js": function () {
  2723. "use strict";
  2724. tarteaucitron.fallback(['tacTwitter'], '');
  2725. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2726. },
  2727. "fallback": function () {
  2728. "use strict";
  2729. var id = 'twitter';
  2730. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  2731. }
  2732. };
  2733. // twitter embed
  2734. tarteaucitron.services.twitterembed = {
  2735. "key": "twitterembed",
  2736. "type": "social",
  2737. "name": "Twitter (cards)",
  2738. "uri": "https://support.twitter.com/articles/20170514",
  2739. "needConsent": true,
  2740. "cookies": [],
  2741. "js": function () {
  2742. "use strict";
  2743. var uniqIds = [],
  2744. i,
  2745. e,
  2746. html;
  2747. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  2748. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2749. uniqIds.push(uniqId);
  2750. html = '<div id="' + uniqId + '" ';
  2751. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  2752. html += 'theme="' + x.getAttribute('theme') + '" ';
  2753. html += 'cards="' + x.getAttribute('cards') + '" ';
  2754. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  2755. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  2756. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  2757. html += '></div>';
  2758. return html;
  2759. });
  2760. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  2761. var i;
  2762. for (i = 0; i < uniqIds.length; i += 1) {
  2763. e = document.getElementById(uniqIds[i]);
  2764. twttr.widgets.createTweet(
  2765. e.getAttribute('tweetid'),
  2766. e,
  2767. {
  2768. theme: e.getAttribute('theme'),
  2769. cards: e.getAttribute('cards'),
  2770. conversation: e.getAttribute('conversation'),
  2771. lang: tarteaucitron.getLanguage(),
  2772. dnt: true,
  2773. width: e.getAttribute('data-width'),
  2774. align: e.getAttribute('data-align')
  2775. }
  2776. );
  2777. }
  2778. });
  2779. },
  2780. "fallback": function () {
  2781. "use strict";
  2782. var id = 'twitterembed';
  2783. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  2784. elem.style.width = elem.getAttribute('data-width') + 'px';
  2785. return tarteaucitron.engage(id);
  2786. });
  2787. }
  2788. };
  2789. // twitter timeline
  2790. tarteaucitron.services.twittertimeline = {
  2791. "key": "twittertimeline",
  2792. "type": "social",
  2793. "name": "Twitter (timelines)",
  2794. "uri": "https://support.twitter.com/articles/20170514",
  2795. "needConsent": true,
  2796. "cookies": [],
  2797. "js": function () {
  2798. "use strict";
  2799. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  2800. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2801. },
  2802. "fallback": function () {
  2803. "use strict";
  2804. var id = 'twittertimeline';
  2805. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  2806. }
  2807. };
  2808. // twitter universal website tag
  2809. tarteaucitron.services.twitteruwt = {
  2810. "key": "twitteruwt",
  2811. "type": "analytic",
  2812. "name": "Twitter Universal Website Tag",
  2813. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  2814. "needConsent": true,
  2815. "cookies": [],
  2816. "js": function () {
  2817. "use strict";
  2818. window.twq = function () {
  2819. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  2820. }
  2821. window.twq.version = '1.1';
  2822. window.twq.queue = [];
  2823. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  2824. window.twq('init', tarteaucitron.user.twitteruwtId);
  2825. window.twq('track', 'PageView');
  2826. });
  2827. }
  2828. };
  2829. // user voice
  2830. tarteaucitron.services.uservoice = {
  2831. "key": "uservoice",
  2832. "type": "support",
  2833. "name": "UserVoice",
  2834. "uri": "https://www.uservoice.com/privacy/",
  2835. "needConsent": true,
  2836. "cookies": [],
  2837. "js": function () {
  2838. "use strict";
  2839. if (tarteaucitron.user.userVoiceApi === undefined) {
  2840. return;
  2841. }
  2842. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  2843. }
  2844. };
  2845. // vimeo
  2846. tarteaucitron.services.vimeo = {
  2847. "key": "vimeo",
  2848. "type": "video",
  2849. "name": "Vimeo",
  2850. "uri": "https://vimeo.com/privacy",
  2851. "needConsent": true,
  2852. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  2853. "js": function () {
  2854. "use strict";
  2855. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2856. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Vimeo iframe'),
  2857. video_width = tarteaucitron.getElemAttr(x, "width"),
  2858. frame_width = 'width=',
  2859. video_height = tarteaucitron.getElemAttr(x, "height"),
  2860. frame_height = 'height=',
  2861. video_id = tarteaucitron.getElemAttr(x, "videoID"),
  2862. video_hash = tarteaucitron.getElemAttr(x, "data-hash") || '',
  2863. video_allowfullscreen = tarteaucitron.getElemAttr(x, "data-allowfullscreen"),
  2864. video_qs = "",
  2865. attrs = ["title", "byline", "portrait", "loop", "autoplay", "autopause", "background", "color", "controls", "maxheight", "maxwidth", "muted", "playsinline", "speed", "transparent"],
  2866. params = attrs.filter(function (a) {
  2867. return tarteaucitron.getElemAttr(x, a) !== null;
  2868. }).map(function (a) {
  2869. return a + "=" + tarteaucitron.getElemAttr(x, a);
  2870. }),
  2871. video_frame;
  2872. if (video_id === undefined) {
  2873. return "";
  2874. }
  2875. // query params
  2876. if (video_hash.length > 0) {
  2877. params.push("h=" + video_hash);
  2878. }
  2879. if (params.length > 0) {
  2880. video_qs = "?" + params.join("&");
  2881. }
  2882. // attributes
  2883. if (video_width !== undefined) {
  2884. frame_width += '"' + video_width + '" ';
  2885. } else {
  2886. frame_width += '"" ';
  2887. }
  2888. if (video_height !== undefined) {
  2889. frame_height += '"' + video_height + '" ';
  2890. } else {
  2891. frame_height += '"" ';
  2892. }
  2893. 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>';
  2894. return video_frame;
  2895. });
  2896. },
  2897. "fallback": function () {
  2898. "use strict";
  2899. var id = 'vimeo';
  2900. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2901. elem.style.width = elem.getAttribute('width') + 'px';
  2902. elem.style.height = elem.getAttribute('height') + 'px';
  2903. return tarteaucitron.engage(id);
  2904. });
  2905. }
  2906. };
  2907. // visualrevenue
  2908. tarteaucitron.services.visualrevenue = {
  2909. "key": "visualrevenue",
  2910. "type": "analytic",
  2911. "name": "VisualRevenue",
  2912. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2913. "needConsent": true,
  2914. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2915. "js": function () {
  2916. "use strict";
  2917. if (tarteaucitron.user.visualrevenueId === undefined) {
  2918. return;
  2919. }
  2920. window._vrq = window._vrq || [];
  2921. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2922. window._vrq.push(['automate', true]);
  2923. window._vrq.push(['track', function () { }]);
  2924. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2925. }
  2926. };
  2927. // verizon dot tag
  2928. tarteaucitron.services.verizondottag = {
  2929. "key": "verizondottag",
  2930. "type": "analytic",
  2931. "name": "Verizon Dot Tag",
  2932. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2933. "needConsent": true,
  2934. "cookies": [],
  2935. "js": function () {
  2936. "use strict";
  2937. window.dotq = window.dotq || [];
  2938. window.dotq.push({
  2939. 'projectId': tarteaucitron.user.verizondottagProjectId,
  2940. 'properties': { 'pixelId': tarteaucitron.user.verizondottagPixelId }
  2941. });
  2942. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  2943. //const items = window.dotq;
  2944. window.dotq = [];
  2945. window.dotq.push = function (item) {
  2946. YAHOO.ywa.I13N.fireBeacon([item])
  2947. };
  2948. YAHOO.ywa.I13N.fireBeacon(items)
  2949. });
  2950. }
  2951. };
  2952. // vshop
  2953. tarteaucitron.services.vshop = {
  2954. "key": "vshop",
  2955. "type": "ads",
  2956. "name": "vShop",
  2957. "uri": "http://vshop.fr/privacy-policy",
  2958. "needConsent": true,
  2959. "cookies": [],
  2960. "js": function () {
  2961. "use strict";
  2962. tarteaucitron.fallback(['vcashW'], '');
  2963. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2964. },
  2965. "fallback": function () {
  2966. "use strict";
  2967. var id = 'vshop';
  2968. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2969. }
  2970. };
  2971. // wysistat
  2972. tarteaucitron.services.wysistat = {
  2973. "key": "wysistat",
  2974. "type": "analytic",
  2975. "name": "Wysistat",
  2976. "uri": "http://wysistat.net/contact/",
  2977. "needConsent": true,
  2978. "cookies": ['Wysistat'],
  2979. "js": function () {
  2980. "use strict";
  2981. if (tarteaucitron.user.wysistat === undefined) {
  2982. return;
  2983. }
  2984. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2985. 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);
  2986. });
  2987. }
  2988. };
  2989. // xiti
  2990. tarteaucitron.services.xiti = {
  2991. "key": "xiti",
  2992. "type": "analytic",
  2993. "name": "Xiti",
  2994. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2995. "needConsent": true,
  2996. "cookies": [],
  2997. "js": function () {
  2998. "use strict";
  2999. if (tarteaucitron.user.xitiId === undefined) {
  3000. return;
  3001. }
  3002. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  3003. Xt_r,
  3004. Xt_h,
  3005. Xt_i,
  3006. Xt_s,
  3007. div = document.createElement('div');
  3008. try {
  3009. Xt_r = top.document.referrer;
  3010. } catch (e) {
  3011. Xt_r = document.referrer;
  3012. }
  3013. Xt_h = new Date();
  3014. Xt_i = '<img style="display:none" border="0" alt="" ';
  3015. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  3016. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  3017. if (parseFloat(navigator.appVersion) >= 4) {
  3018. Xt_s = screen;
  3019. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  3020. }
  3021. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  3022. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  3023. if (typeof tarteaucitron.user.xitiMore === 'function') {
  3024. tarteaucitron.user.xitiMore();
  3025. }
  3026. }
  3027. };
  3028. // AT Internet
  3029. tarteaucitron.services.atinternet = {
  3030. "key": "atinternet",
  3031. "type": "analytic",
  3032. "name": "AT Internet (privacy by design)",
  3033. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3034. "needConsent": true,
  3035. "safeanalytic": false,
  3036. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  3037. "js": function () {
  3038. "use strict";
  3039. if (tarteaucitron.user.atLibUrl === undefined) {
  3040. return;
  3041. }
  3042. if (tarteaucitron.user.atinternetAlreadyLoaded !== undefined) {
  3043. return;
  3044. }
  3045. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3046. window.tag = new ATInternet.Tracker.Tag();
  3047. if (typeof tarteaucitron.user.atMore === 'function') {
  3048. tarteaucitron.user.atMore();
  3049. }
  3050. if (typeof window.tag.privacy !== 'undefined') {
  3051. window.tag.privacy.setVisitorOptin();
  3052. }
  3053. if (tarteaucitron.user.atinternetSendData !== false) {
  3054. window.tag.page.send();
  3055. }
  3056. });
  3057. },
  3058. "fallback": function () {
  3059. "use strict";
  3060. if (tarteaucitron.user.atLibUrl === undefined) {
  3061. return;
  3062. }
  3063. tarteaucitron.user.atinternetAlreadyLoaded = true;
  3064. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3065. window.tag = new ATInternet.Tracker.Tag();
  3066. if (typeof tarteaucitron.user.atMore === 'function') {
  3067. tarteaucitron.user.atMore();
  3068. }
  3069. if (typeof window.tag.privacy !== 'undefined') {
  3070. var visitorMode = window.tag.privacy.getVisitorMode();
  3071. if (visitorMode !== null && visitorMode.name !== undefined && visitorMode.name == "optout") {
  3072. window.tag.privacy.setVisitorOptout();
  3073. } else {
  3074. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  3075. }
  3076. }
  3077. if (tarteaucitron.user.atinternetSendData !== false) {
  3078. window.tag.page.send();
  3079. }
  3080. });
  3081. }
  3082. };
  3083. // AT Internet
  3084. tarteaucitron.services.atinternethightrack = {
  3085. "key": "atinternethightrack",
  3086. "type": "analytic",
  3087. "name": "AT Internet",
  3088. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3089. "needConsent": true,
  3090. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  3091. "js": function () {
  3092. "use strict";
  3093. if (tarteaucitron.user.atLibUrl === undefined) {
  3094. return;
  3095. }
  3096. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function () {
  3097. var tag = new ATInternet.Tracker.Tag();
  3098. if (typeof tarteaucitron.user.atMore === 'function') {
  3099. tarteaucitron.user.atMore();
  3100. }
  3101. })
  3102. }
  3103. };
  3104. // youtube
  3105. tarteaucitron.services.youtube = {
  3106. "key": "youtube",
  3107. "type": "video",
  3108. "name": "YouTube",
  3109. "uri": "https://policies.google.com/privacy",
  3110. "needConsent": true,
  3111. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3112. "js": function () {
  3113. "use strict";
  3114. tarteaucitron.fallback(['youtube_player'], function (x) {
  3115. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Youtube iframe'),
  3116. video_id = tarteaucitron.getElemAttr(x, "videoID"),
  3117. srcdoc = tarteaucitron.getElemAttr(x, "srcdoc"),
  3118. loading = tarteaucitron.getElemAttr(x, "loading"),
  3119. video_width = tarteaucitron.getElemAttr(x, "width"),
  3120. frame_width = 'width=',
  3121. video_height = tarteaucitron.getElemAttr(x, "height"),
  3122. frame_height = 'height=',
  3123. video_frame,
  3124. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  3125. attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "loop", "enablejsapi"],
  3126. params = attrs.filter(function (a) {
  3127. return tarteaucitron.getElemAttr(x, a) !== null;
  3128. }).map(function (a) {
  3129. return a + "=" + tarteaucitron.getElemAttr(x, a);
  3130. }).join("&");
  3131. if(tarteaucitron.getElemAttr(x, "loop") == 1) {
  3132. params = params + "&playlist=" + video_id;
  3133. }
  3134. if (video_id === undefined) {
  3135. return "";
  3136. }
  3137. if (video_width !== undefined) {
  3138. frame_width += '"' + video_width + '" ';
  3139. } else {
  3140. frame_width += '"" ';
  3141. }
  3142. if (video_height !== undefined) {
  3143. frame_height += '"' + video_height + '" ';
  3144. } else {
  3145. frame_height += '"" ';
  3146. }
  3147. if (srcdoc !== undefined && srcdoc !== null && srcdoc !== "") {
  3148. srcdoc = 'srcdoc="' + srcdoc + '" ';
  3149. } else {
  3150. srcdoc = '';
  3151. }
  3152. if (loading !== undefined && loading !== null && loading !== "") {
  3153. loading = 'loading ';
  3154. } else {
  3155. loading = '';
  3156. }
  3157. 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>';
  3158. return video_frame;
  3159. });
  3160. },
  3161. "fallback": function () {
  3162. "use strict";
  3163. var id = 'youtube';
  3164. tarteaucitron.fallback(['youtube_player'], function (elem) {
  3165. elem.style.width = elem.getAttribute('width') + 'px';
  3166. elem.style.height = elem.getAttribute('height') + 'px';
  3167. return tarteaucitron.engage(id);
  3168. });
  3169. }
  3170. };
  3171. // youtube playlist
  3172. tarteaucitron.services.youtubeplaylist = {
  3173. "key": "youtubeplaylist",
  3174. "type": "video",
  3175. "name": "YouTube (playlist)",
  3176. "uri": "https://policies.google.com/privacy",
  3177. "needConsent": true,
  3178. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3179. "js": function () {
  3180. "use strict";
  3181. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  3182. var frame_title = tarteaucitron.fixSelfXSS(tarteaucitron.getElemAttr(x, "title") || 'Youtube iframe'),
  3183. playlist_id = tarteaucitron.getElemAttr(x, "playlistID"),
  3184. video_width = tarteaucitron.getElemAttr(x, "width"),
  3185. frame_width = 'width=',
  3186. video_height = tarteaucitron.getElemAttr(x, "height"),
  3187. frame_height = 'height=',
  3188. video_frame,
  3189. allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
  3190. 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");
  3191. if (playlist_id === undefined) {
  3192. return "";
  3193. }
  3194. if (video_width !== undefined) {
  3195. frame_width += '"' + video_width + '" ';
  3196. } else {
  3197. frame_width += '"" ';
  3198. }
  3199. if (video_height !== undefined) {
  3200. frame_height += '"' + video_height + '" ';
  3201. } else {
  3202. frame_height += '"" ';
  3203. }
  3204. 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>';
  3205. return video_frame;
  3206. });
  3207. },
  3208. "fallback": function () {
  3209. "use strict";
  3210. var id = 'youtubeplaylist';
  3211. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  3212. elem.style.width = elem.getAttribute('width') + 'px';
  3213. elem.style.height = elem.getAttribute('height') + 'px';
  3214. return tarteaucitron.engage(id);
  3215. });
  3216. }
  3217. };
  3218. // zopim
  3219. tarteaucitron.services.zopim = {
  3220. "key": "zopim",
  3221. "type": "support",
  3222. "name": "Zopim",
  3223. "uri": "https://www.zopim.com/privacy",
  3224. "needConsent": true,
  3225. "cookies": ['__zlcid', '__zprivacy'],
  3226. "js": function () {
  3227. "use strict";
  3228. if (tarteaucitron.user.zopimID === undefined) {
  3229. return;
  3230. }
  3231. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  3232. }
  3233. };
  3234. // kameleoon
  3235. tarteaucitron.services.kameleoon = {
  3236. "key": "kameleoon",
  3237. "type": "analytic",
  3238. "name": "Kameleoon",
  3239. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  3240. "needConsent": true,
  3241. "cookies": [],
  3242. "js": function () {
  3243. "use strict";
  3244. if (tarteaucitron.user.kameleoon !== undefined) {
  3245. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  3246. }
  3247. }
  3248. };
  3249. // linkedin insight
  3250. tarteaucitron.services.linkedininsighttag = {
  3251. "key": "linkedininsighttag",
  3252. "type": "ads",
  3253. "name": "Linkedin Insight",
  3254. "uri": "https://www.linkedin.com/legal/cookie_policy",
  3255. "needConsent": true,
  3256. "cookies": [],
  3257. "js": function () {
  3258. "use strict";
  3259. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  3260. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  3261. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  3262. }
  3263. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  3264. }
  3265. };
  3266. // xiti smartTag
  3267. tarteaucitron.services.xiti_smarttag = {
  3268. "key": "xiti_smarttag",
  3269. "type": "analytic",
  3270. "name": "Xiti (SmartTag)",
  3271. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3272. "needConsent": true,
  3273. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "attvtreman", "attvtsession"],
  3274. "js": function () {
  3275. "use strict";
  3276. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  3277. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  3278. } else {
  3279. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  3280. if (xitiSmarttagId === undefined) {
  3281. return;
  3282. }
  3283. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  3284. }
  3285. }
  3286. };
  3287. // facebook pixel
  3288. tarteaucitron.services.facebookpixel = {
  3289. "key": "facebookpixel",
  3290. "type": "ads",
  3291. "name": "Facebook Pixel",
  3292. "uri": "https://www.facebook.com/policy.php",
  3293. "needConsent": true,
  3294. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src', '_fbp'],
  3295. "js": function () {
  3296. "use strict";
  3297. var n;
  3298. if (window.fbq) return;
  3299. n = window.fbq = function () { n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments) };
  3300. if (!window._fbq) window._fbq = n;
  3301. n.push = n;
  3302. n.loaded = !0;
  3303. n.version = '2.0';
  3304. n.queue = [];
  3305. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  3306. fbq('init', tarteaucitron.user.facebookpixelId);
  3307. fbq('track', 'PageView');
  3308. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  3309. tarteaucitron.user.facebookpixelMore();
  3310. }
  3311. }
  3312. };
  3313. //Issuu
  3314. tarteaucitron.services.issuu = {
  3315. "key": "issuu",
  3316. "type": "other",
  3317. "name": "Issuu",
  3318. "uri": "https://issuu.com/legal/privacy",
  3319. "needConsent": true,
  3320. "cookies": ['__qca', 'iutk', 'mc'],
  3321. "js": function () {
  3322. "use strict";
  3323. tarteaucitron.fallback(['issuu_player'], function (x) {
  3324. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Issuu iframe'),
  3325. issuu_id = x.getAttribute("issuuID"),
  3326. issuu_width = x.getAttribute("width"),
  3327. frame_width = 'width=',
  3328. issuu_height = x.getAttribute("height"),
  3329. frame_height = 'height=',
  3330. issuu_frame,
  3331. issuu_embed;
  3332. if (issuu_id === undefined) {
  3333. return "";
  3334. }
  3335. if (issuu_width !== undefined) {
  3336. frame_width += '"' + issuu_width + '" ';
  3337. } else {
  3338. frame_width += '"" ';
  3339. }
  3340. if (issuu_height !== undefined) {
  3341. frame_height += '"' + issuu_height + '" ';
  3342. } else {
  3343. frame_height += '"" ';
  3344. }
  3345. if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
  3346. issuu_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
  3347. return issuu_frame;
  3348. });
  3349. },
  3350. "fallback": function () {
  3351. "use strict";
  3352. var id = 'issuu';
  3353. tarteaucitron.fallback(['issuu_player'], function (elem) {
  3354. elem.style.width = elem.getAttribute('width') + 'px';
  3355. elem.style.height = elem.getAttribute('height') + 'px';
  3356. return tarteaucitron.engage(id);
  3357. });
  3358. }
  3359. };
  3360. // webmecanik
  3361. tarteaucitron.services.webmecanik = {
  3362. "key": "webmecanik",
  3363. "type": "analytic",
  3364. "name": "Webmecanik",
  3365. "uri": "https://webmecanik.com/tos",
  3366. "needConsent": true,
  3367. "cookies": ['mtc_id', 'mtc_sid'],
  3368. "js": function () {
  3369. "use strict";
  3370. if (tarteaucitron.user.webmecanikurl === undefined) {
  3371. return;
  3372. }
  3373. window.MauticTrackingObject = 'mt';
  3374. window.mt = window.mt || function () {
  3375. window.mt.q = window.mt.q || [];
  3376. window.mt.q.push(arguments);
  3377. };
  3378. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function () {
  3379. mt('send', 'pageview');
  3380. });
  3381. }
  3382. };
  3383. // google analytics multiple
  3384. tarteaucitron.services.multiplegtag = {
  3385. "key": "multiplegtag",
  3386. "type": "analytic",
  3387. "name": "Google Analytics (gtag.js)",
  3388. "uri": "https://support.google.com/analytics/answer/6004245",
  3389. "needConsent": true,
  3390. "cookies": (function () {
  3391. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '_gcl_au'];
  3392. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3393. tarteaucitron.user.multiplegtagUa.forEach(function (ua) {
  3394. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  3395. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  3396. });
  3397. }
  3398. return cookies;
  3399. })(),
  3400. "js": function () {
  3401. "use strict";
  3402. window.dataLayer = window.dataLayer || [];
  3403. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3404. tarteaucitron.user.multiplegtagUa.forEach(function (ua) {
  3405. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  3406. window.gtag = function gtag() { dataLayer.push(arguments); }
  3407. gtag('js', new Date());
  3408. gtag('config', ua, { 'anonymize_ip': true });
  3409. });
  3410. });
  3411. }
  3412. }
  3413. };
  3414. // Koban
  3415. tarteaucitron.services.koban = {
  3416. "key": "koban",
  3417. "type": "analytic",
  3418. "name": "Koban",
  3419. "uri": "https://koban.cloud/tos",
  3420. "needConsent": true,
  3421. "cookies": ['kbntrk'],
  3422. "js": function () {
  3423. "use strict";
  3424. if (tarteaucitron.user.kobanurl === undefined) {
  3425. return;
  3426. }
  3427. if (tarteaucitron.user.kobanapi === undefined) {
  3428. return;
  3429. }
  3430. window.KobanObject = 'kb';
  3431. window.kb = window.kb || function () {
  3432. window.kb.q = window.kb.q || [];
  3433. window.kb.q.push(arguments);
  3434. };
  3435. window.kb.l = new Date();
  3436. kb('reg', tarteaucitron.user.kobanapi);
  3437. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function () {
  3438. });
  3439. }
  3440. };
  3441. // matomo
  3442. /*
  3443. 1. Set the following variable before the initialization :
  3444. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  3445. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  3446. 2. Push the service :
  3447. (tarteaucitron.job = tarteaucitron.job || []).push('matomo'); // (or 'matomocloud' for cloud version)
  3448. 3. HTML
  3449. You don't need to add any html code, if the service is authorized, the javascript is added. otherwise no.
  3450. */
  3451. tarteaucitron.services.matomo = {
  3452. "key": "matomo",
  3453. "type": "analytic",
  3454. "name": "Matomo (privacy by design)",
  3455. "uri": "https://matomo.org/faq/general/faq_146/",
  3456. "needConsent": false,
  3457. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3458. "js": function () {
  3459. "use strict";
  3460. if (tarteaucitron.user.matomoId === undefined) {
  3461. return;
  3462. }
  3463. window._paq = window._paq || [];
  3464. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3465. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3466. window._paq.push(["setDoNotTrack", 1]);
  3467. window._paq.push(["trackPageView"]);
  3468. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3469. window._paq.push(["enableLinkTracking"]);
  3470. window._paq.push([function () {
  3471. var self = this;
  3472. function getOriginalVisitorCookieTimeout() {
  3473. var now = new Date(),
  3474. nowTs = Math.round(now.getTime() / 1000),
  3475. visitorInfo = self.getVisitorInfo();
  3476. var createTs = parseInt(visitorInfo[2]);
  3477. var cookieTimeout = 33696000; // 13 mois en secondes
  3478. var originalTimeout = createTs + cookieTimeout - nowTs;
  3479. return originalTimeout;
  3480. }
  3481. this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
  3482. }]);
  3483. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3484. // waiting for piwik to be ready to check first party cookies
  3485. var interval = setInterval(function () {
  3486. if (typeof Piwik === 'undefined') return
  3487. clearInterval(interval)
  3488. // make piwik/matomo cookie accessible by getting tracker
  3489. Piwik.getTracker();
  3490. // looping throught cookies
  3491. var theCookies = document.cookie.split(';');
  3492. for (var i = 1; i <= theCookies.length; i++) {
  3493. var cookie = theCookies[i - 1].split('=');
  3494. var cookieName = cookie[0].trim();
  3495. // if cookie starts like a piwik one, register it
  3496. if (cookieName.indexOf('_pk_') === 0) {
  3497. tarteaucitron.services.matomo.cookies.push(cookieName);
  3498. }
  3499. }
  3500. }, 100)
  3501. }
  3502. };
  3503. tarteaucitron.services.matomohightrack = {
  3504. "key": "matomohightrack",
  3505. "type": "analytic",
  3506. "name": "Matomo",
  3507. "uri": "https://matomo.org/faq/general/faq_146/",
  3508. "needConsent": false,
  3509. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3510. "js": function () {
  3511. "use strict";
  3512. if (tarteaucitron.user.matomoId === undefined) {
  3513. return;
  3514. }
  3515. window._paq = window._paq || [];
  3516. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3517. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3518. window._paq.push(["trackPageView"]);
  3519. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3520. window._paq.push(["enableLinkTracking"]);
  3521. window._paq.push([function () {
  3522. var self = this;
  3523. }]);
  3524. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3525. // waiting for piwik to be ready to check first party cookies
  3526. var interval = setInterval(function () {
  3527. if (typeof Piwik === 'undefined') return
  3528. clearInterval(interval)
  3529. Piwik.getTracker();
  3530. var theCookies = document.cookie.split(';');
  3531. for (var i = 1; i <= theCookies.length; i++) {
  3532. var cookie = theCookies[i - 1].split('=');
  3533. var cookieName = cookie[0].trim();
  3534. if (cookieName.indexOf('_pk_') === 0) {
  3535. tarteaucitron.services.matomo.cookies.push(cookieName);
  3536. }
  3537. }
  3538. }, 100)
  3539. }
  3540. };
  3541. tarteaucitron.services.matomocloud = {
  3542. "key": "matomocloud",
  3543. "type": "analytic",
  3544. "name": "Matomo Cloud (privacy by design)",
  3545. "uri": "https://matomo.org/faq/general/faq_146/",
  3546. "needConsent": false,
  3547. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'mtm_consent', 'matomo_ignore', 'matomo_sessid'],
  3548. "js": function () {
  3549. "use strict";
  3550. if (tarteaucitron.user.matomoId === undefined) {
  3551. return;
  3552. }
  3553. window._paq = window._paq || [];
  3554. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3555. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "matomo.php"]);
  3556. window._paq.push(["setDoNotTrack", 1]);
  3557. window._paq.push(["trackPageView"]);
  3558. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3559. window._paq.push(["enableLinkTracking"]);
  3560. window._paq.push([function () {
  3561. var self = this;
  3562. function getOriginalVisitorCookieTimeout() {
  3563. var now = new Date(),
  3564. nowTs = Math.round(now.getTime() / 1000),
  3565. visitorInfo = self.getVisitorInfo();
  3566. var createTs = parseInt(visitorInfo[2]);
  3567. var cookieTimeout = 33696000; // 13 mois en secondes
  3568. var originalTimeout = createTs + cookieTimeout - nowTs;
  3569. return originalTimeout;
  3570. }
  3571. this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());
  3572. }]);
  3573. tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true);
  3574. // waiting for Matomo to be ready to check first party cookies
  3575. var interval = setInterval(function () {
  3576. if (typeof Matomo === 'undefined') return
  3577. clearInterval(interval)
  3578. // make Matomo cookie accessible by getting tracker
  3579. Matomo.getTracker();
  3580. // looping through cookies
  3581. var theCookies = document.cookie.split(';');
  3582. for (var i = 1; i <= theCookies.length; i++) {
  3583. var cookie = theCookies[i - 1].split('=');
  3584. var cookieName = cookie[0].trim();
  3585. // if cookie starts like a matomo one, register it
  3586. if (cookieName.indexOf('_pk_') === 0) {
  3587. tarteaucitron.services.matomo.cookies.push(cookieName);
  3588. }
  3589. }
  3590. }, 100)
  3591. }
  3592. };
  3593. // Hotjar
  3594. /*
  3595. 1. Set the following variable before the initialization :
  3596. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  3597. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  3598. 2. Push the service :
  3599. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  3600. 3. HTML
  3601. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3602. */
  3603. tarteaucitron.services.hotjar = {
  3604. "key": "hotjar",
  3605. "type": "analytic",
  3606. "name": "Hotjar",
  3607. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  3608. "needConsent": true,
  3609. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage", "_hjAbsoluteSessionInProgress", "_hjIncludeInPageviewSample", "_hjid"],
  3610. "js": function () {
  3611. "use strict";
  3612. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  3613. return;
  3614. }
  3615. window.hj = window.hj || function () {
  3616. (window.hj.q = window.hj.q || []).push(arguments)
  3617. };
  3618. window._hjSettings = {
  3619. hjid: tarteaucitron.user.hotjarId,
  3620. hjsv: tarteaucitron.user.HotjarSv
  3621. };
  3622. var uri = 'https://static.hotjar.com/c/hotjar-';
  3623. var extension = '.js?sv=';
  3624. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  3625. }
  3626. };
  3627. // bing ads universal event tracking
  3628. tarteaucitron.services.bingads = {
  3629. 'key': 'bingads',
  3630. 'type': 'ads',
  3631. 'name': 'Bing Ads Universal Event Tracking',
  3632. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  3633. 'needConsent': true,
  3634. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  3635. 'js': function () {
  3636. 'use strict';
  3637. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  3638. window.uetq = window.uetq || [];
  3639. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  3640. var bingadsCreate = { ti: tarteaucitron.user.bingadsID };
  3641. if ('bingadsStoreCookies' in tarteaucitron.user) {
  3642. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  3643. }
  3644. bingadsCreate.q = window.uetq;
  3645. window.uetq = new UET(bingadsCreate);
  3646. window.uetq.push('pageLoad');
  3647. if (typeof tarteaucitron.user.bingadsMore === 'function') {
  3648. tarteaucitron.user.bingadsMore();
  3649. }
  3650. });
  3651. }
  3652. };
  3653. //Matterport
  3654. tarteaucitron.services.matterport = {
  3655. "key": "matterport",
  3656. "type": "other",
  3657. "name": "Matterport",
  3658. "uri": "https://matterport.com/es/legal/privacy-policy/",
  3659. "needConsent": true,
  3660. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  3661. "js": function () {
  3662. "use strict";
  3663. tarteaucitron.fallback(['matterport'], function (x) {
  3664. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Matterport iframe'),
  3665. matterport_id = x.getAttribute("matterportID"),
  3666. matterport_width = x.getAttribute("width"),
  3667. frame_width = 'width=',
  3668. matterport_height = x.getAttribute("height"),
  3669. frame_height = 'height=',
  3670. matterport_parameters = x.getAttribute("parameters"),
  3671. matterport_allowfullscreen = x.getAttribute('allowfullscreen'),
  3672. matterport_frame;
  3673. if (matterport_id === undefined) {
  3674. return "";
  3675. }
  3676. if (matterport_width !== undefined) {
  3677. frame_width += '"' + matterport_width + '" ';
  3678. } else {
  3679. frame_width += '"" ';
  3680. }
  3681. if (matterport_height !== undefined) {
  3682. frame_height += '"' + matterport_height + '" ';
  3683. } else {
  3684. frame_height += '"" ';
  3685. }
  3686. if (matterport_parameters === undefined) {
  3687. return "";
  3688. }
  3689. 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>';
  3690. return matterport_frame;
  3691. });
  3692. },
  3693. "fallback": function () {
  3694. "use strict";
  3695. var id = 'matterport';
  3696. tarteaucitron.fallback(['matterport'], function (elem) {
  3697. elem.style.width = elem.getAttribute('width') + 'px';
  3698. elem.style.height = elem.getAttribute('height') + 'px';
  3699. return tarteaucitron.engage(id);
  3700. });
  3701. }
  3702. };
  3703. // Adform
  3704. tarteaucitron.services.adform = {
  3705. "key": "adform",
  3706. "type": "ads",
  3707. "name": "Adform",
  3708. "uri": "https://site.adform.com/privacy-center/overview/",
  3709. "needConsent": true,
  3710. "cookies": [],
  3711. "js": function () {
  3712. "use strict";
  3713. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  3714. return;
  3715. }
  3716. window._adftrack = {
  3717. pm: tarteaucitron.user.adformpm,
  3718. divider: encodeURIComponent('|'),
  3719. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  3720. };
  3721. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  3722. }
  3723. };
  3724. // Active Campaign
  3725. tarteaucitron.services.activecampaign = {
  3726. "key": "activecampaign",
  3727. "type": "ads",
  3728. "name": "Active Campaign",
  3729. "uri": "https://www.activecampaign.com/privacy-policy/",
  3730. "needConsent": true,
  3731. "cookies": [],
  3732. "js": function () {
  3733. "use strict";
  3734. if (tarteaucitron.user.actid === undefined) {
  3735. return;
  3736. }
  3737. window.trackcmp_email = '';
  3738. tarteaucitron.addScript('https://trackcmp.net/visit?actid=' + tarteaucitron.user.actid + '&e=' + encodeURIComponent(trackcmp_email) + '&r=' + encodeURIComponent(document.referrer) + '&u=' + encodeURIComponent(window.location.href));
  3739. }
  3740. };
  3741. // tawk.to
  3742. tarteaucitron.services.tawkto = {
  3743. "key": "tawkto",
  3744. "type": "support",
  3745. "name": "Tawk.to chat",
  3746. "uri": "https://www.tawk.to/data-protection/",
  3747. "needConsent": true,
  3748. "cookies": [],
  3749. "js": function () {
  3750. "use strict";
  3751. if (tarteaucitron.user.tawktoId === undefined) {
  3752. return;
  3753. }
  3754. tarteaucitron.user.tawktoWidgetId = tarteaucitron.user.tawktoWidgetId || 'default';
  3755. window.Tawk_API = window.Tawk_API || {};
  3756. window.Tawk_LoadStart = new Date();
  3757. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/' + tarteaucitron.user.tawktoWidgetId);
  3758. }
  3759. };
  3760. // getquanty
  3761. tarteaucitron.services.getquanty = {
  3762. "key": "getquanty",
  3763. "type": "analytic",
  3764. "name": "GetQuanty",
  3765. "uri": "https://www.getquanty.com/mentions-legales/",
  3766. "needConsent": true,
  3767. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid', 'cluid', 'eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  3768. "js": function () {
  3769. "use strict";
  3770. if (tarteaucitron.user.getguanty === undefined) {
  3771. return;
  3772. }
  3773. if (tarteaucitron.user.getquantyAlreadyLoaded !== undefined) {
  3774. return;
  3775. }
  3776. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&consent=1');
  3777. },
  3778. "fallback": function () {
  3779. "use strict";
  3780. if (tarteaucitron.user.getguanty === undefined) {
  3781. return;
  3782. }
  3783. tarteaucitron.user.getquantyAlreadyLoaded = true;
  3784. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&notrack=1');
  3785. }
  3786. };
  3787. // emolytics
  3788. tarteaucitron.services.emolytics = {
  3789. "key": "emolytics",
  3790. "type": "analytic",
  3791. "name": "Emolytics",
  3792. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  3793. "needConsent": true,
  3794. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  3795. "js": function () {
  3796. "use strict";
  3797. if (tarteaucitron.user.emolyticsID === undefined) {
  3798. return;
  3799. }
  3800. var scriptEmolytics = document.createElement('script');
  3801. scriptEmolytics.text = 'var getsmily_id="' + tarteaucitron.user.emolyticsID + '";';
  3802. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  3803. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  3804. }
  3805. };
  3806. // youtubeapi
  3807. tarteaucitron.services.youtubeapi = {
  3808. "key": "youtubeapi",
  3809. "type": "video",
  3810. "name": "Youtube (Js API)",
  3811. "uri": "https://policies.google.com/privacy",
  3812. "needConsent": true,
  3813. "cookies": [],
  3814. "js": function () {
  3815. "use strict";
  3816. tarteaucitron.addScript('https://www.youtube.com/player_api');
  3817. }
  3818. };
  3819. // Facil'ITI
  3820. tarteaucitron.services.faciliti = {
  3821. "key": "faciliti",
  3822. "type": "other",
  3823. "name": "Facil'ITI",
  3824. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  3825. "needConsent": true,
  3826. "cookies": ['FACIL_ITI_LS'],
  3827. "js": function () {
  3828. "use strict";
  3829. if (tarteaucitron.user.facilitiID === undefined) {
  3830. return;
  3831. }
  3832. (function (w, d, s, f) {
  3833. w[f] = w[f] || { conf: function () { (w[f].data = w[f].data || []).push(arguments); } };
  3834. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  3835. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  3836. }(window, document, 'script', 'FACIL_ITI'));
  3837. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  3838. }
  3839. };
  3840. // userlike
  3841. tarteaucitron.services.userlike = {
  3842. "key": "userlike",
  3843. "type": "support",
  3844. "name": "Userlike",
  3845. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  3846. "needConsent": true,
  3847. "cookies": ['uslk_s', 'uslk_e'],
  3848. "js": function () {
  3849. "use strict";
  3850. if (tarteaucitron.user.userlikeKey === undefined) {
  3851. return;
  3852. }
  3853. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  3854. }
  3855. };
  3856. // adobeanalytics
  3857. tarteaucitron.services.adobeanalytics = {
  3858. "key": "adobeanalytics",
  3859. "type": "analytic",
  3860. "name": "Adobe Analytics",
  3861. "uri": "https://www.adobe.com/privacy/policy.html",
  3862. "needConsent": true,
  3863. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  3864. "js": function () {
  3865. "use strict";
  3866. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  3867. return;
  3868. }
  3869. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  3870. }
  3871. };
  3872. // woopra customer journey analytics
  3873. tarteaucitron.services.woopra = {
  3874. 'key': 'woopra',
  3875. 'type': 'analytic',
  3876. 'name': 'Woopra Customer Journey Analytics',
  3877. 'uri': 'https://www.woopra.com/privacy',
  3878. 'needConsent': true,
  3879. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  3880. 'js': function () {
  3881. 'use strict';
  3882. //var w = tarteaucitron.user.woopraDomain;
  3883. //window[w] = window[w] || [];
  3884. (function () {
  3885. 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)
  3886. })("woopra");
  3887. woopra.config({
  3888. domain: tarteaucitron.user.woopraDomain
  3889. });
  3890. woopra.track();
  3891. }
  3892. };
  3893. // ausha
  3894. tarteaucitron.services.ausha = {
  3895. key: "ausha",
  3896. type: "video",
  3897. name: "Ausha",
  3898. uri: "https://www.ausha.co/protection-personal-data/",
  3899. needConsent: true,
  3900. cookies: [],
  3901. js: function () {
  3902. "use strict";
  3903. tarteaucitron.fallback(['ausha_player'], function (x) {
  3904. var player_height = x.getAttribute('data-height'),
  3905. podcast_id = x.getAttribute('data-podcast-id'),
  3906. player_id = x.getAttribute('data-player-id'),
  3907. playlist = x.getAttribute('data-playlist'),
  3908. color = x.getAttribute('data-color');
  3909. if (podcast_id === undefined) {
  3910. return "";
  3911. }
  3912. var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3';
  3913. if (playlist && playlist.length > 0) src += '&playlist=' + playlist;
  3914. if (color && color.length > 0) src += '&color=' + color.replace('#', '%23');
  3915. if (player_id && player_id.length > 0) src += '&playerId=' + player_id;
  3916. return '<iframe id="' + player_id + '" loading="lazy" width="100%" height="' + player_height + '" scrolling="no" frameborder="no" src="' + src + '"></iframe>';
  3917. });
  3918. tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player');
  3919. },
  3920. fallback: function () {
  3921. "use strict";
  3922. tarteaucitron.fallback(['ausha_player'], function (elem) {
  3923. elem.style.height = elem.getAttribute('data-height') + 'px';
  3924. return tarteaucitron.engage('ausha');
  3925. });
  3926. }
  3927. };
  3928. // visiblee
  3929. tarteaucitron.services.visiblee = {
  3930. key: "visiblee",
  3931. type: "analytic",
  3932. name: "Visiblee",
  3933. uri: "http://confidentiality.visiblee.io/fr/confidentialite",
  3934. needConsent: true,
  3935. cookies: ["visitor_v2", tarteaucitron.user.visibleedomain, "check", "campaign_ref_" + tarteaucitron.user.visibleedomain, "reload_" + tarteaucitron.user.visibleedomain],
  3936. js: function () {
  3937. "use strict";
  3938. if (tarteaucitron.user.visibleeclientid === undefined) {
  3939. return;
  3940. }
  3941. tarteaucitron.addScript('//www.link-page.info/tracking_' + tarteaucitron.user.visibleeclientid + '.js', 'visiblee');
  3942. }
  3943. };
  3944. // bandcamp
  3945. tarteaucitron.services.bandcamp = {
  3946. key: "bandcamp",
  3947. type: "video",
  3948. name: "Bandcamp",
  3949. uri: "https://bandcamp.com",
  3950. readmoreLink: "https://bandcamp.com/privacy",
  3951. needConsent: true,
  3952. cookies: ['client_id', 'BACKENDID', '_comm_playlist'],
  3953. js: function () {
  3954. "use strict";
  3955. tarteaucitron.fallback(['bandcamp_player'], function (x) {
  3956. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Bandcamp iframe'),
  3957. album_id = x.getAttribute("albumID"),
  3958. bandcamp_width = x.getAttribute("width"),
  3959. frame_width = 'width=',
  3960. bandcamp_height = x.getAttribute("height"),
  3961. frame_height = 'height=',
  3962. attrs = ["size", "bgcol", "linkcol", "artwork", "minimal", "tracklist", "package", "transparent"],
  3963. params = attrs.filter(function (a) {
  3964. return x.getAttribute(a) !== null;
  3965. }).map(function (a) {
  3966. if (a && a.length > 0) return a + "=" + x.getAttribute(a);
  3967. }).join("/");
  3968. if (album_id === null) {
  3969. return "";
  3970. }
  3971. if (bandcamp_width !== null || bandcamp_width !== "") {
  3972. frame_width += '"' + bandcamp_width + '" ';
  3973. } else {
  3974. frame_width += '"" ';
  3975. }
  3976. if (bandcamp_height !== null || bandcamp_height !== "") {
  3977. frame_height += '"' + bandcamp_height + '" ';
  3978. } else {
  3979. frame_height += '"" ';
  3980. }
  3981. var src = 'https://bandcamp.com/EmbeddedPlayer/album=' + album_id + '/' + params;
  3982. return '<iframe title="' + frame_title + '"' + frame_width + frame_height + 'src="' + src + '" frameborder="0" allowfullscreen seamless></iframe>';
  3983. });
  3984. },
  3985. fallback: function () {
  3986. "use strict";
  3987. tarteaucitron.fallback(['bandcamp_player'], function (elem) {
  3988. elem.style.width = elem.getAttribute('width');
  3989. elem.style.height = elem.getAttribute('height');
  3990. return tarteaucitron.engage('bandcamp');
  3991. });
  3992. }
  3993. };
  3994. // Discord Widget
  3995. tarteaucitron.services.discord = {
  3996. "key": "discord",
  3997. "type": "social",
  3998. "name": "Discord (Server Widget)",
  3999. "needConsent": true,
  4000. "cookies": ["__cfruid", "__dcfduid", "_ga", "_gcl_au", "OptanonConsent", "locale", "_gid"],
  4001. "uri": "https://discord.com/privacy",
  4002. "js": function () {
  4003. "use strict";
  4004. tarteaucitron.fallback(['discord_widget'], function (x) {
  4005. var id = x.getAttribute("guildID"),
  4006. width = x.getAttribute("width"),
  4007. height = x.getAttribute("height")
  4008. var widgetURL = "https://discord.com/widget?id=" + id;
  4009. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\"></iframe>";
  4010. });
  4011. },
  4012. "fallback": function () {
  4013. "use strict";
  4014. var id = 'discord';
  4015. tarteaucitron.fallback(['discord_widget'], function (elem) {
  4016. elem.style.width = elem.getAttribute('width') + 'px';
  4017. elem.style.height = elem.getAttribute('height') + 'px';
  4018. return tarteaucitron.engage(id);
  4019. });
  4020. }
  4021. };
  4022. // Google Maps
  4023. tarteaucitron.services.maps_noapi = {
  4024. "key": "maps_noapi",
  4025. "type": "other",
  4026. "name": "Google Maps",
  4027. "needConsent": true,
  4028. "cookies": ["NID", "OGPC", "1P_JAR", "CONSENT"],
  4029. "uri": "https://policies.google.com/privacy",
  4030. "js": function () {
  4031. "use strict";
  4032. tarteaucitron.fallback(['googlemaps_embed'], function (x) {
  4033. var id = x.getAttribute("id"),
  4034. width = x.getAttribute("width"),
  4035. height = x.getAttribute("height")
  4036. var widgetURL = "https://google.com/maps/embed?pb=" + id;
  4037. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>";
  4038. });
  4039. },
  4040. "fallback": function () {
  4041. "use strict";
  4042. var id = 'maps_noapi';
  4043. tarteaucitron.fallback(['googlemaps_embed'], function (elem) {
  4044. elem.style.width = elem.getAttribute('width') + 'px';
  4045. elem.style.height = elem.getAttribute('height') + 'px';
  4046. return tarteaucitron.engage(id);
  4047. });
  4048. }
  4049. };
  4050. // hCaptcha
  4051. tarteaucitron.services.hcaptcha = {
  4052. "key": "hcaptcha",
  4053. "type": "other",
  4054. "name": "hCaptcha",
  4055. "needConsent": true,
  4056. "cookies": [],
  4057. "uri": "https://www.hcaptcha.com/privacy",
  4058. "js": function () {
  4059. "use strict";
  4060. tarteaucitron.fallback(["h-captcha"], '');
  4061. tarteaucitron.addScript("https://hcaptcha.com/1/api.js", "hcaptcha")
  4062. },
  4063. "fallback": function () {
  4064. "use strict";
  4065. var id = "hcaptcha";
  4066. tarteaucitron.fallback(["h-captcha"], tarteaucitron.engage(id));
  4067. }
  4068. };
  4069. // France Culture
  4070. tarteaucitron.services.fculture = {
  4071. "key": "fculture",
  4072. "type": "video",
  4073. "name": "France Culture",
  4074. "needConsent": true,
  4075. "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"],
  4076. "uri": "https://www.radiofrance.com/politique-d-utilisation-des-cookies-sur-les-sites-internet-du-groupe-radio-france",
  4077. "js": function () {
  4078. "use strict";
  4079. tarteaucitron.fallback(['fculture_embed'], function (x) {
  4080. var id = x.getAttribute('id'),
  4081. width = x.getAttribute('width'),
  4082. height = x.getAttribute('height');
  4083. return "<iframe src=\"https://www.franceculture.fr/player/export-reecouter?content=" + id + "\" height=\"" + height + "\" width=\"" + width + "\"></iframe>"
  4084. });
  4085. },
  4086. "fallback": function () {
  4087. "use strict";
  4088. var id = "fculture";
  4089. tarteaucitron.fallback(["fculture_embed"], tarteaucitron.engage(id));
  4090. }
  4091. };
  4092. // Acast
  4093. tarteaucitron.services.acast = {
  4094. "key": "acast",
  4095. "type": "video",
  4096. "name": "Acast",
  4097. "needConsent": true,
  4098. "cookies": ["intercom-id-ayi0335i", "intercom-session-ayi0335i"],
  4099. "uri": "https://www.acast.com/en/privacy",
  4100. "js": function () {
  4101. "use strict";
  4102. tarteaucitron.fallback(['acast_embed'], function (x) {
  4103. var id = x.getAttribute('id1'),
  4104. id2 = x.getAttribute('id2'),
  4105. width = x.getAttribute('width'),
  4106. height = x.getAttribute('height'),
  4107. seek = x.getAttribute('seek');
  4108. var widgetURL = "https://embed.acast.com/" + id + "/" + id2 + "?seek=" + seek;
  4109. return "<iframe title=\"Embed Player\" width=\"" + width + "\" height=\"" + height + "\" src=\"" + widgetURL + "\" scrolling=\"no\" frameBorder=\"0\" style=\"border: none; overflow: hidden;\"></iframe>";
  4110. });
  4111. },
  4112. "fallback": function () {
  4113. "use strict";
  4114. var id = "acast";
  4115. tarteaucitron.fallback(["acast_embed"], tarteaucitron.engage(id));
  4116. }
  4117. };
  4118. // Mixcloud
  4119. tarteaucitron.services.mixcloud = {
  4120. "key": "mixcloud",
  4121. "type": "video",
  4122. "name": "Mixcloud",
  4123. "needConsent": true,
  4124. "cookies": ["UID", "_gat", "__stripe_mid", "_gid", "_ga", "c", "csrftoken", "__stripe_sid", "mx_t"],
  4125. "uri": "https://www.mixcloud.com/privacy/",
  4126. "js": function () {
  4127. "use strict";
  4128. tarteaucitron.fallback(['mixcloud_embed'], function (x) {
  4129. var id = x.getAttribute('id'),
  4130. hidecover = x.getAttribute('hidecover'),
  4131. mini = x.getAttribute('mini'),
  4132. light = x.getAttribute('light'),
  4133. width = x.getAttribute('width'),
  4134. height = x.getAttribute('height');
  4135. 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>";
  4136. });
  4137. },
  4138. "fallback": function () {
  4139. "use strict";
  4140. var id = "mixcloud";
  4141. tarteaucitron.fallback(["mixcloud_embed"], tarteaucitron.engage(id));
  4142. }
  4143. };
  4144. // Google Agenda
  4145. tarteaucitron.services.gagenda = {
  4146. "key": "gagenda",
  4147. "type": "other",
  4148. "name": "Google Agenda",
  4149. "needConsent": true,
  4150. "cookies": ["CONSENT", "NID"],
  4151. "uri": "https://policies.google.com/privacy",
  4152. "js": function () {
  4153. "use strict";
  4154. tarteaucitron.fallback(['gagenda_embed'], function (x) {
  4155. var calendar_data = x.getAttribute('data'),
  4156. width = x.getAttribute('width'),
  4157. height = x.getAttribute('height');
  4158. 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>";
  4159. });
  4160. },
  4161. "fallback": function () {
  4162. "use strict";
  4163. var id = "gagenda";
  4164. tarteaucitron.fallback(["gagenda_embed"], tarteaucitron.engage(id));
  4165. }
  4166. };
  4167. // Google Docs
  4168. tarteaucitron.services.gdocs = {
  4169. "key": "gdocs",
  4170. "type": "other",
  4171. "name": "Google Docs",
  4172. "needConsent": true,
  4173. "cookies": ["CONSENT", "NID"],
  4174. "uri": "https://policies.google.com/privacy",
  4175. "js": function () {
  4176. "use strict";
  4177. tarteaucitron.fallback(['gdocs_embed'], function (x) {
  4178. var id = x.getAttribute('id'),
  4179. width = x.getAttribute('width'),
  4180. height = x.getAttribute('height');
  4181. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/document/d/e/" + id + "/pub?embedded=true\"></iframe>";
  4182. });
  4183. },
  4184. "fallback": function () {
  4185. "use strict";
  4186. var id = "gdocs";
  4187. tarteaucitron.fallback(["gdocs_embed"], tarteaucitron.engage(id));
  4188. }
  4189. };
  4190. // Google Sheets
  4191. tarteaucitron.services.gsheets = {
  4192. "key": "gsheets",
  4193. "type": "other",
  4194. "name": "Google Sheets",
  4195. "needConsent": true,
  4196. "cookies": ["CONSENT", "NID"],
  4197. "uri": "https://policies.google.com/privacy",
  4198. "js": function () {
  4199. "use strict";
  4200. tarteaucitron.fallback(['gsheets_embed'], function (x) {
  4201. var id = x.getAttribute('id'),
  4202. width = x.getAttribute('width'),
  4203. height = x.getAttribute('height'),
  4204. headers = x.getAttribute('headers');
  4205. return "<iframe width=\"" + width + "\" height=\"" + height + "\" src=\"https://docs.google.com/spreadsheets/d/e/" + id + "/pubhtml?widget=true&amp;headers=" + headers + "\"></iframe>";
  4206. });
  4207. },
  4208. "fallback": function () {
  4209. "use strict";
  4210. var id = "gsheets";
  4211. tarteaucitron.fallback(["gsheets_embed"], tarteaucitron.engage(id));
  4212. }
  4213. };
  4214. // Google Slides
  4215. tarteaucitron.services.gslides = {
  4216. "key": "gslides",
  4217. "type": "other",
  4218. "name": "Google Slides",
  4219. "needConsent": true,
  4220. "cookies": ["CONSENT", "NID"],
  4221. "uri": "https://policies.google.com/privacy",
  4222. "js": function () {
  4223. "use strict";
  4224. tarteaucitron.fallback(['gslides_embed'], function (x) {
  4225. var id = x.getAttribute('id'),
  4226. width = x.getAttribute('width'),
  4227. height = x.getAttribute('height'),
  4228. autostart = x.getAttribute('autostart'),
  4229. loop = x.getAttribute('loop'),
  4230. delay = x.getAttribute('delay');
  4231. 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>";
  4232. });
  4233. },
  4234. "fallback": function () {
  4235. "use strict";
  4236. var id = "gslides";
  4237. tarteaucitron.fallback(["gslides_embed"], tarteaucitron.engage(id));
  4238. }
  4239. };
  4240. // Google Forms
  4241. tarteaucitron.services.gforms = {
  4242. "key": "gforms",
  4243. "type": "other",
  4244. "name": "Google Forms",
  4245. "needConsent": true,
  4246. "cookies": ["CONSENT", "NID"],
  4247. "uri": "https://policies.google.com/privacy",
  4248. "js": function () {
  4249. "use strict";
  4250. tarteaucitron.fallback(['gforms_embed'], function (x) {
  4251. var id = x.getAttribute('id'),
  4252. width = x.getAttribute('width'),
  4253. height = x.getAttribute('height');
  4254. 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>";
  4255. });
  4256. },
  4257. "fallback": function () {
  4258. "use strict";
  4259. var id = "gforms";
  4260. tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id));
  4261. }
  4262. };
  4263. // Google Optimize
  4264. tarteaucitron.services.goptimize = {
  4265. "key": "goptimize",
  4266. "type": "other",
  4267. "name": "Google Optimize",
  4268. "needConsent": true,
  4269. "cookies": ["CONSENT", "NID"],
  4270. "uri": "https://policies.google.com/privacy",
  4271. "js": function () {
  4272. "use strict";
  4273. if (tarteaucitron.user.goptimize === undefined) {
  4274. return;
  4275. }
  4276. tarteaucitron.addScript('https://www.googleoptimize.com/optimize.js?id=' + tarteaucitron.user.goptimize);
  4277. }
  4278. };
  4279. // Marketo munchkin
  4280. tarteaucitron.services.marketomunchkin = {
  4281. "key": "marketomunchkin",
  4282. "type": "api",
  4283. "name": "Marketo munchkin",
  4284. "uri": "https://documents.marketo.com/legal/cookies",
  4285. "needConsent": true,
  4286. "cookies": ['OptAnon', '_mkto_trk'],
  4287. "js": function () {
  4288. "use strict";
  4289. if (tarteaucitron.user.marketomunchkinkey === undefined) {
  4290. return;
  4291. }
  4292. var didInit = false;
  4293. function initMunchkin() {
  4294. if (didInit === false) {
  4295. didInit = true;
  4296. Munchkin.init(tarteaucitron.user.marketomunchkinkey);
  4297. }
  4298. }
  4299. var s = document.createElement('script');
  4300. s.type = 'text/javascript';
  4301. s.async = true;
  4302. s.src = '//munchkin.marketo.net/munchkin.js';
  4303. s.onreadystatechange = function () {
  4304. if (this.readyState == 'complete' || this.readyState == 'loaded') {
  4305. initMunchkin();
  4306. }
  4307. };
  4308. s.onload = initMunchkin;
  4309. document.getElementsByTagName('head')[0].appendChild(s);
  4310. }
  4311. };
  4312. // outbrain
  4313. tarteaucitron.services.outbrain = {
  4314. "key": "outbrain",
  4315. "type": "ads",
  4316. "name": "Outbrain",
  4317. "uri": "https://www.outbrain.com/fr/advertisers/guidelines/",
  4318. "needConsent": true,
  4319. "cookies": [],
  4320. "js": function () {
  4321. "use strict";
  4322. tarteaucitron.addScript('https://widgets.outbrain.com/outbrain.js');
  4323. }
  4324. };
  4325. // affilae
  4326. tarteaucitron.services.affilae = {
  4327. "key": "affilae",
  4328. "type": "ads",
  4329. "name": "Affilae",
  4330. "uri": "https://affilae.com/en/privacy-cookie-policy/",
  4331. "needConsent": true,
  4332. "cookies": [],
  4333. "js": function () {
  4334. "use strict";
  4335. if (tarteaucitron.user.affilae === undefined) {
  4336. return;
  4337. }
  4338. window._ae = { "pid": tarteaucitron.user.affilae };
  4339. tarteaucitron.addScript('https://static.affilae.com/ae-v3.5.js');
  4340. }
  4341. };
  4342. // Canal-U.tv
  4343. tarteaucitron.services.canalu = {
  4344. "key": "canalu",
  4345. "type": "video",
  4346. "name": "Canal-U.tv",
  4347. "uri": "https://www.canal-u.tv/utilisation-des-cookies/",
  4348. "needConsent": true,
  4349. "cookies": [],
  4350. "js": function () {
  4351. "use strict";
  4352. tarteaucitron.fallback(['canalu_player'], function (x) {
  4353. var video_title = tarteaucitron.fixSelfXSS(x.getAttribute("videoTitle")),
  4354. frame_url = 'https://www.canal-u.tv/video/embed_code_plugin.1/' + video_title;
  4355. return '<div style="position:relative;padding-bottom:56.25%;padding-top:10px;height:0;overflow:hidden;">' +
  4356. '<iframe src="' + frame_url + '?width=100%&amp;height=100%" ' +
  4357. 'style="position:absolute;top:0;left:0;width:100%;height: 100%;" ' +
  4358. 'frameborder="0" ' +
  4359. 'allowfullscreen ' +
  4360. 'scrolling="no">' +
  4361. '</iframe>' +
  4362. '</div>';
  4363. });
  4364. },
  4365. "fallback": function () {
  4366. "use strict";
  4367. tarteaucitron.fallback(['canalu_player'], function (elem) {
  4368. return tarteaucitron.engage('canalu');
  4369. });
  4370. }
  4371. };
  4372. // WebTV Normandie Université
  4373. tarteaucitron.services.webtvnu = {
  4374. "key": "webtvnu",
  4375. "type": "video",
  4376. "name": "WebTV Normandie Université",
  4377. "uri": "https://docs.google.com/document/d/1tpVclj4QBoAq1meSZgYrpNECwp7dbmb_IhICY3sTl9c/edit",
  4378. "needConsent": true,
  4379. "cookies": [],
  4380. "js": function () {
  4381. "use strict";
  4382. tarteaucitron.fallback(['webtvnu_player'], function (x) {
  4383. var frame_url = 'https://webtv.normandie-univ.fr/permalink/' + x.getAttribute("videoID") + '/iframe/',
  4384. width = x.getAttribute("width"),
  4385. height = x.getAttribute("height");
  4386. return '<iframe width="' + width + '" height="' + height + '" src="' + frame_url + '" allowfullscreen="allowfullscreen" allow="autoplay"></iframe>';
  4387. });
  4388. },
  4389. "fallback": function () {
  4390. "use strict";
  4391. tarteaucitron.fallback(['webtvnu_player'], function (elem) {
  4392. return tarteaucitron.engage('webtvnu');
  4393. });
  4394. }
  4395. };
  4396. // studizz
  4397. tarteaucitron.services.studizz = {
  4398. "key": "studizz",
  4399. "type": "other",
  4400. "name": "Studizz Chatbot",
  4401. "uri": "https://group.studizz.fr/",
  4402. "needConsent": true,
  4403. "cookies": [],
  4404. "js": function () {
  4405. "use strict";
  4406. if (tarteaucitron.user.studizzToken === undefined) {
  4407. return;
  4408. }
  4409. tarteaucitron.addScript('https://webchat.studizz.fr/webchat.js?token=' + tarteaucitron.user.studizzToken);
  4410. }
  4411. };
  4412. // meteofrance
  4413. tarteaucitron.services.meteofrance = {
  4414. "key": "meteofrance",
  4415. "type": "api",
  4416. "name": "Météo France",
  4417. "uri": "https://meteofrance.com/politique-de-confidentialite",
  4418. "needConsent": true,
  4419. "cookies": [],
  4420. "js": function () {
  4421. "use strict";
  4422. tarteaucitron.fallback(['tac_meteofrance'], function (x) {
  4423. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Météo France iframe'),
  4424. width = x.getAttribute("width"),
  4425. height = x.getAttribute("height"),
  4426. insee = x.getAttribute("data-insee"),
  4427. allowfullscreen = x.getAttribute("allowfullscreen");
  4428. return '<iframe title="' + frame_title + '" src="https://meteofrance.com/widget/prevision/' + insee + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>';
  4429. });
  4430. },
  4431. "fallback": function () {
  4432. "use strict";
  4433. var id = 'meteofrance';
  4434. tarteaucitron.fallback(['tac_meteofrance'], function (elem) {
  4435. elem.style.width = elem.getAttribute('width') + 'px';
  4436. elem.style.height = elem.getAttribute('height') + 'px';
  4437. return tarteaucitron.engage(id);
  4438. });
  4439. }
  4440. };
  4441. // m6meteo
  4442. tarteaucitron.services.m6meteo = {
  4443. "key": "m6meteo",
  4444. "type": "api",
  4445. "name": "M6 Météo",
  4446. "uri": "https://gdpr.m6tech.net/charte-confidentialite-m6-web-meteocity.pdf",
  4447. "needConsent": true,
  4448. "cookies": [],
  4449. "js": function () {
  4450. "use strict";
  4451. tarteaucitron.fallback(['tac_m6meteo'], function (x) {
  4452. var id = x.getAttribute("data-id");
  4453. tarteaucitron.addScript('https://www.meteocity.com/widget/js/'+id);
  4454. return '<div id="cont_'+id+'"><div id="spa_'+id+'"><a id="a_'+id+'" href="#"></a> ©<a target="_top" href="https://www.meteocity.com">M6météo</a></div></div>';
  4455. });
  4456. },
  4457. "fallback": function () {
  4458. "use strict";
  4459. var id = 'm6meteo';
  4460. tarteaucitron.fallback(['tac_m6meteo'], function (elem) {
  4461. return tarteaucitron.engage(id);
  4462. });
  4463. }
  4464. };
  4465. // mtcaptcha
  4466. tarteaucitron.services.mtcaptcha = {
  4467. "key": "mtcaptcha",
  4468. "type": "api",
  4469. "name": "MTcaptcha",
  4470. "uri": "https://www.mtcaptcha.com",
  4471. "readmoreLink": "https://www.mtcaptcha.com/faq-cookie-declaration",
  4472. "needConsent": true,
  4473. "cookies": ['mtv1Pulse','mtv1ConfSum','mtv1Pong'],
  4474. "js": function () {
  4475. window.mtcaptchaConfig = {
  4476. "sitekey": tarteaucitron.user.mtcaptchaSitekey
  4477. };
  4478. tarteaucitron.addScript('https://service.mtcaptcha.com/mtcv1/client/mtcaptcha.min.js');
  4479. tarteaucitron.addScript('https://service2.mtcaptcha.com/mtcv1/client/mtcaptcha2.min.js');
  4480. }
  4481. };
  4482. // Internet Archive / https://archive.org
  4483. tarteaucitron.services.archive = {
  4484. "key": "archive",
  4485. "type": "video",
  4486. "name": "Internet Archive",
  4487. "uri": "https://archive.org/about/terms.php",
  4488. "needConsent": true,
  4489. "cookies": ['abtest-identifier','donation-identifier'],
  4490. "js": function () {
  4491. "use strict";
  4492. tarteaucitron.fallback(['archive_player'], function (x) {
  4493. var video_id = tarteaucitron.getElemAttr(x, "data-videoID"),
  4494. video_width = tarteaucitron.getElemAttr(x, "data-width"),
  4495. frame_width = 'width=',
  4496. video_height = tarteaucitron.getElemAttr(x, "data-height"),
  4497. frame_height = 'height=',
  4498. video_frame;
  4499. if (video_id === undefined) {
  4500. return "";
  4501. }
  4502. if (video_width !== undefined) {
  4503. frame_width += '"' + video_width + '" ';
  4504. } else {
  4505. frame_width += '"" ';
  4506. }
  4507. if (video_height !== undefined) {
  4508. frame_height += '"' + video_height + '" ';
  4509. } else {
  4510. frame_height += '"" ';
  4511. }
  4512. video_frame = '<iframe src="https://archive.org/embed/' + video_id + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen></iframe>';
  4513. return video_frame;
  4514. });
  4515. },
  4516. "fallback": function () {
  4517. "use strict";
  4518. var id = 'archive';
  4519. tarteaucitron.fallback(['archive_player'], function (elem) {
  4520. elem.style.width = elem.getAttribute('data-width') + 'px';
  4521. elem.style.height = elem.getAttribute('data-height') + 'px';
  4522. return tarteaucitron.engage(id);
  4523. });
  4524. }
  4525. };
  4526. // Gallica
  4527. tarteaucitron.services.gallica = {
  4528. "key": "gallica",
  4529. "type": "other",
  4530. "name": "Gallica",
  4531. "uri": "https://gallica.bnf.fr/edit/und/conditions-dutilisation-des-contenus-de-gallica",
  4532. "needConsent": true,
  4533. "cookies": ['dtCookie', 'dtLatC', 'dtPC', 'dtSa', 'rxVisitor', 'rxvt', 'xtvrn'],
  4534. "js": function () {
  4535. "use strict";
  4536. tarteaucitron.fallback(['gallica_player'], function (x) {
  4537. var src = tarteaucitron.getElemAttr(x, "data-src"),
  4538. style = tarteaucitron.getElemAttr(x, "data-style"),
  4539. frame;
  4540. if (src === undefined) {
  4541. return "";
  4542. }
  4543. frame = '<iframe style="'+ style + '" src="' + src + '"></iframe>';
  4544. return frame;
  4545. });
  4546. },
  4547. "fallback": function () {
  4548. "use strict";
  4549. var id = 'gallica';
  4550. tarteaucitron.fallback(['gallica_player'], function (elem) {
  4551. elem.style = elem.getAttribute('data-style');
  4552. return tarteaucitron.engage(id);
  4553. });
  4554. }
  4555. };