tarteaucitron.services.js 188 KB

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