tarteaucitron.services.js 199 KB

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