tarteaucitron.services.js 215 KB

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