tarteaucitron.services.js 197 KB

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