tarteaucitron.services.js 212 KB

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