tarteaucitron.services.js 159 KB

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