tarteaucitron.services.js 206 KB

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