tarteaucitron.services.js 179 KB

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