tarteaucitron.services.js 190 KB

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