tarteaucitron.services.js 192 KB

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