tarteaucitron.services.js 148 KB

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