tarteaucitron.services.js 202 KB

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