tarteaucitron.services.js 197 KB

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