tarteaucitron.services.js 201 KB

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