tarteaucitron.services.js 148 KB

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