tarteaucitron.services.js 153 KB

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