tarteaucitron.services.js 194 KB

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