tarteaucitron.services.js 200 KB

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