tarteaucitron.services.js 202 KB

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