tarteaucitron.services.js 194 KB

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