tarteaucitron.services.js 206 KB

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