tarteaucitron.services.js 199 KB

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