tarteaucitron.services.js 147 KB

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