tarteaucitron.services.js 202 KB

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