tarteaucitron.services.js 174 KB

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