tarteaucitron.services.js 209 KB

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