tarteaucitron.services.js 149 KB

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