tarteaucitron.services.js 186 KB

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