tarteaucitron.services.js 204 KB

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