tarteaucitron.services.js 152 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195
  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. // google maps
  1659. tarteaucitron.services.googlemaps = {
  1660. "key": "googlemaps",
  1661. "type": "api",
  1662. "name": "Google Maps",
  1663. "uri": "https://policies.google.com/privacy",
  1664. "needConsent": true,
  1665. "cookies": [],
  1666. "js": function () {
  1667. "use strict";
  1668. var mapOptions,
  1669. map,
  1670. uniqIds = [],
  1671. i;
  1672. if (tarteaucitron.user.mapscallback === undefined) {
  1673. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1674. }
  1675. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1676. var googleMapsLibraries = '';
  1677. if (tarteaucitron.user.googlemapsLibraries) {
  1678. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1679. }
  1680. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1681. window.tac_googlemaps_callback = function () {
  1682. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1683. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1684. uniqIds.push(uniqId);
  1685. 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>';
  1686. });
  1687. var i;
  1688. for (i = 0; i < uniqIds.length; i += 1) {
  1689. mapOptions = {
  1690. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1691. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1692. };
  1693. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1694. 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});
  1695. }
  1696. };
  1697. },
  1698. "fallback": function () {
  1699. "use strict";
  1700. var id = 'googlemaps';
  1701. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1702. }
  1703. };
  1704. // googlemaps search
  1705. tarteaucitron.services.googlemapssearch = {
  1706. "key": "googlemapssearch",
  1707. "type": "api",
  1708. "name": "Google Maps Search API",
  1709. "uri": "https://policies.google.com/privacy",
  1710. "needConsent": true,
  1711. "cookies": ['nid'],
  1712. "js": function () {
  1713. "use strict";
  1714. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1715. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google search iframe'),
  1716. width = x.getAttribute("width"),
  1717. height = x.getAttribute("height"),
  1718. // url = x.getAttribute("data-url");
  1719. query = escape(x.getAttribute("data-search")),
  1720. key = x.getAttribute("data-api-key");
  1721. 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> '
  1722. });
  1723. },
  1724. "fallback": function () {
  1725. "use strict";
  1726. var id = 'googlemapssearch';
  1727. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1728. elem.style.width = elem.getAttribute('width') + 'px';
  1729. elem.style.height = elem.getAttribute('height') + 'px';
  1730. return tarteaucitron.engage(id);
  1731. });
  1732. }
  1733. };
  1734. // googlemaps embed iframe
  1735. tarteaucitron.services.googlemapsembed = {
  1736. "key": "googlemapsembed",
  1737. "type": "api",
  1738. "name": "Google Maps Embed",
  1739. "uri": "https://policies.google.com/privacy",
  1740. "needConsent": true,
  1741. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1742. "js": function () {
  1743. "use strict";
  1744. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1745. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google maps iframe'),
  1746. width = tarteaucitron.getElemWidth(x),
  1747. height = tarteaucitron.getElemHeight(x),
  1748. url = x.getAttribute("data-url");
  1749. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1750. });
  1751. },
  1752. "fallback": function () {
  1753. "use strict";
  1754. var id = 'googlemapsembed';
  1755. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1756. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1757. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1758. return tarteaucitron.engage(id);
  1759. });
  1760. }
  1761. };
  1762. // google tag manager
  1763. tarteaucitron.services.googletagmanager = {
  1764. "key": "googletagmanager",
  1765. "type": "api",
  1766. "name": "Google Tag Manager",
  1767. "uri": "https://policies.google.com/privacy",
  1768. "needConsent": true,
  1769. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1770. "js": function () {
  1771. "use strict";
  1772. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1773. return;
  1774. }
  1775. window.dataLayer = window.dataLayer || [];
  1776. window.dataLayer.push({
  1777. 'gtm.start': new Date().getTime(),
  1778. event: 'gtm.js'
  1779. });
  1780. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1781. }
  1782. };
  1783. // google tag manager multiple
  1784. tarteaucitron.services.multiplegoogletagmanager = {
  1785. "key": "multiplegoogletagmanager",
  1786. "type": "api",
  1787. "name": "Google Tag Manager",
  1788. "uri": "https://policies.google.com/privacy",
  1789. "needConsent": true,
  1790. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1791. "js": function () {
  1792. "use strict";
  1793. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1794. return;
  1795. }
  1796. window.dataLayer = window.dataLayer || [];
  1797. window.dataLayer.push({
  1798. 'gtm.start': new Date().getTime(),
  1799. event: 'gtm.js'
  1800. });
  1801. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1802. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1803. });
  1804. }
  1805. };
  1806. // google webfonts
  1807. tarteaucitron.services.googlefonts = {
  1808. "key": "googlefonts",
  1809. "type": "api",
  1810. "name": "Google Webfonts",
  1811. "uri": "https://policies.google.com/privacy",
  1812. "needConsent": true,
  1813. "cookies": [],
  1814. "js": function () {
  1815. "use strict";
  1816. if (tarteaucitron.user.googleFonts === undefined) {
  1817. return;
  1818. }
  1819. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1820. WebFont.load({
  1821. google: {
  1822. families: tarteaucitron.user.googleFonts
  1823. }
  1824. });
  1825. });
  1826. }
  1827. };
  1828. // hubspot
  1829. tarteaucitron.services.hubspot = {
  1830. "key": "hubspot",
  1831. "type": "analytic",
  1832. "name": "Hubspot",
  1833. "uri": "https://legal.hubspot.com/privacy-policy",
  1834. "needConsent": true,
  1835. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1836. "js": function () {
  1837. "use strict";
  1838. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1839. }
  1840. };
  1841. // instagram
  1842. tarteaucitron.services.instagram = {
  1843. "key": "instagram",
  1844. "type": "social",
  1845. "name": "Instagram",
  1846. "uri": "https://www.instagram.com/legal/privacy/",
  1847. "needConsent": true,
  1848. "cookies": ['shbts', 'sessionid', 'csrftoken', 'rur', 'shbid', 'mid', 'ds_usr_id', 'ig_did', 'ig_cb', 'datr'],
  1849. "js": function () {
  1850. "use strict";
  1851. tarteaucitron.fallback(['instagram_post'], function (x) {
  1852. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
  1853. post_id = x.getAttribute('postId'),
  1854. post_permalink = x.getAttribute('data-instgrm-permalink'),
  1855. embed_width = x.getAttribute('width'),
  1856. embed_height = x.getAttribute('height'),
  1857. frame_width,
  1858. frame_height,
  1859. post_frame;
  1860. if (post_permalink != null) {
  1861. tarteaucitron.addScript('//www.instagram.com/embed.js', 'instagram-embed');
  1862. return '';
  1863. }
  1864. if (post_id === undefined) {
  1865. return "";
  1866. }
  1867. if (embed_width !== undefined) {
  1868. frame_width = 'width="' + embed_width + '" ';
  1869. } else {
  1870. frame_width = '"" ';
  1871. }
  1872. if (embed_height !== undefined) {
  1873. frame_height = 'height="' + embed_height + '" ';
  1874. } else {
  1875. frame_height = '"" ';
  1876. }
  1877. post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
  1878. return post_frame;
  1879. });
  1880. },
  1881. "fallback": function () {
  1882. "use strict";
  1883. var id = 'instagram';
  1884. tarteaucitron.fallback(['instagram_post'], function (elem) {
  1885. elem.style.width = elem.getAttribute('width') + 'px';
  1886. elem.style.height = elem.getAttribute('height') + 'px';
  1887. return tarteaucitron.engage(id);
  1888. });
  1889. }
  1890. };
  1891. // jsapi
  1892. tarteaucitron.services.jsapi = {
  1893. "key": "jsapi",
  1894. "type": "api",
  1895. "name": "Google jsapi",
  1896. "uri": "https://policies.google.com/privacy",
  1897. "needConsent": true,
  1898. "cookies": [],
  1899. "js": function () {
  1900. "use strict";
  1901. tarteaucitron.addScript('//www.google.com/jsapi');
  1902. }
  1903. };
  1904. // twitterwidgetsapi
  1905. tarteaucitron.services.twitterwidgetsapi = {
  1906. "key": "twitterwidgetsapi",
  1907. "type": "api",
  1908. "name": "Twitter Widgets API",
  1909. "uri": "https://support.twitter.com/articles/20170514",
  1910. "needConsent": true,
  1911. "cookies": [],
  1912. "js": function () {
  1913. "use strict";
  1914. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1915. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1916. },
  1917. "fallback": function () {
  1918. "use strict";
  1919. var id = 'twitterwidgetsapi';
  1920. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1921. }
  1922. };
  1923. // recaptcha
  1924. tarteaucitron.services.recaptcha = {
  1925. "key": "recaptcha",
  1926. "type": "api",
  1927. "name": "reCAPTCHA",
  1928. "uri": "https://policies.google.com/privacy",
  1929. "needConsent": true,
  1930. "cookies": ['nid'],
  1931. "js": function () {
  1932. "use strict";
  1933. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1934. tarteaucitron.fallback(['g-recaptcha'], '');
  1935. if (tarteaucitron.user.recaptchaapi === undefined) {
  1936. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1937. } else {
  1938. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
  1939. }
  1940. },
  1941. "fallback": function () {
  1942. "use strict";
  1943. var id = 'recaptcha';
  1944. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1945. }
  1946. };
  1947. // linkedin
  1948. tarteaucitron.services.linkedin = {
  1949. "key": "linkedin",
  1950. "type": "social",
  1951. "name": "Linkedin",
  1952. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1953. "needConsent": true,
  1954. "cookies": [],
  1955. "js": function () {
  1956. "use strict";
  1957. tarteaucitron.fallback(['tacLinkedin'], '');
  1958. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1959. if (tarteaucitron.isAjax === true) {
  1960. if (typeof IN !== "undefined") {
  1961. IN.parse();
  1962. }
  1963. }
  1964. },
  1965. "fallback": function () {
  1966. "use strict";
  1967. var id = 'linkedin';
  1968. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1969. }
  1970. };
  1971. // mautic
  1972. tarteaucitron.services.mautic = {
  1973. "key": "mautic",
  1974. "type": "analytic",
  1975. "name": "Mautic",
  1976. "uri": "https://www.mautic.org/privacy-policy/",
  1977. "needConsent": true,
  1978. "cookies": ['mtc_id', 'mtc_sid'],
  1979. "js": function () {
  1980. "use strict";
  1981. if (tarteaucitron.user.mauticurl === undefined) {
  1982. return;
  1983. }
  1984. window.MauticTrackingObject = 'mt';
  1985. window.mt = window.mt || function () {
  1986. window.mt.q = window.mt.q || [];
  1987. window.mt.q.push(arguments);
  1988. };
  1989. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1990. mt('send', 'pageview');
  1991. });
  1992. }
  1993. };
  1994. // microsoftcampaignanalytics
  1995. tarteaucitron.services.microsoftcampaignanalytics = {
  1996. "key": "microsoftcampaignanalytics",
  1997. "type": "analytic",
  1998. "name": "Microsoft Campaign Analytics",
  1999. "uri": "https://privacy.microsoft.com/privacystatement/",
  2000. "needConsent": true,
  2001. "cookies": [],
  2002. "js": function () {
  2003. "use strict";
  2004. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  2005. return;
  2006. }
  2007. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  2008. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  2009. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  2010. });
  2011. }
  2012. };
  2013. // onesignal
  2014. tarteaucitron.services.onesignal = {
  2015. "key": "onesignal",
  2016. "type": "api",
  2017. "name": "OneSignal",
  2018. "uri": "https://onesignal.com/privacy_policy",
  2019. "needConsent": true,
  2020. "cookies": [],
  2021. "js": function () {
  2022. "use strict";
  2023. if (tarteaucitron.user.onesignalAppId === undefined) {
  2024. return;
  2025. }
  2026. window.OneSignal = window.OneSignal || [];
  2027. window.OneSignal.push(function() {
  2028. window.OneSignal.init({
  2029. appId: tarteaucitron.user.onesignalAppId,
  2030. });
  2031. });
  2032. tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js');
  2033. }
  2034. };
  2035. // pinterest
  2036. tarteaucitron.services.pinterest = {
  2037. "key": "pinterest",
  2038. "type": "social",
  2039. "name": "Pinterest",
  2040. "uri": "https://about.pinterest.com/privacy-policy",
  2041. "needConsent": true,
  2042. "cookies": [],
  2043. "js": function () {
  2044. "use strict";
  2045. tarteaucitron.fallback(['tacPinterest'], '');
  2046. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  2047. },
  2048. "fallback": function () {
  2049. "use strict";
  2050. var id = 'pinterest';
  2051. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  2052. }
  2053. };
  2054. // prelinker
  2055. tarteaucitron.services.prelinker = {
  2056. "key": "prelinker",
  2057. "type": "ads",
  2058. "name": "Prelinker",
  2059. "uri": "http://www.prelinker.com/index/index/cgu/",
  2060. "needConsent": true,
  2061. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  2062. "js": function () {
  2063. "use strict";
  2064. var uniqIds = [],
  2065. i,
  2066. uri;
  2067. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  2068. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2069. uniqIds.push(uniqId);
  2070. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  2071. });
  2072. for (i = 0; i < uniqIds.length; i += 1) {
  2073. uri = 'http://promo.easy-dating.org/banner/index?';
  2074. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  2075. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  2076. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  2077. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  2078. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2079. }
  2080. },
  2081. "fallback": function () {
  2082. "use strict";
  2083. var id = 'prelinker';
  2084. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  2085. }
  2086. };
  2087. // prezi
  2088. tarteaucitron.services.prezi = {
  2089. "key": "prezi",
  2090. "type": "video",
  2091. "name": "Prezi",
  2092. "uri": "https://prezi.com/privacy-policy/",
  2093. "needConsent": true,
  2094. "cookies": [],
  2095. "js": function () {
  2096. "use strict";
  2097. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  2098. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Prezi iframe'),
  2099. id = x.getAttribute("data-id"),
  2100. width = x.getAttribute("width"),
  2101. height = x.getAttribute("height"),
  2102. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  2103. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2104. });
  2105. },
  2106. "fallback": function () {
  2107. "use strict";
  2108. var id = 'prezi';
  2109. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  2110. elem.style.width = elem.getAttribute('width') + 'px';
  2111. elem.style.height = elem.getAttribute('height') + 'px';
  2112. return tarteaucitron.engage(id);
  2113. });
  2114. }
  2115. };
  2116. // pubdirecte
  2117. tarteaucitron.services.pubdirecte = {
  2118. "key": "pubdirecte",
  2119. "type": "ads",
  2120. "name": "Pubdirecte",
  2121. "uri": "http://pubdirecte.com/contact.php",
  2122. "needConsent": true,
  2123. "cookies": [],
  2124. "js": function () {
  2125. "use strict";
  2126. var uniqIds = [],
  2127. i,
  2128. uri;
  2129. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  2130. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2131. uniqIds.push(uniqId);
  2132. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  2133. });
  2134. for (i = 0; i < uniqIds.length; i += 1) {
  2135. uri = '//www.pubdirecte.com/script/banniere.php?';
  2136. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  2137. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  2138. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2139. }
  2140. },
  2141. "fallback": function () {
  2142. "use strict";
  2143. var id = 'pubdirecte';
  2144. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  2145. }
  2146. };
  2147. // purechat
  2148. tarteaucitron.services.purechat = {
  2149. "key": "purechat",
  2150. "type": "support",
  2151. "name": "PureChat",
  2152. "uri": "https://www.purechat.com/privacy",
  2153. "needConsent": true,
  2154. "cookies": [],
  2155. "js": function () {
  2156. "use strict";
  2157. if (tarteaucitron.user.purechatId === undefined) {
  2158. return;
  2159. }
  2160. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  2161. try {
  2162. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  2163. } catch (e) {}
  2164. });
  2165. }
  2166. };
  2167. // rumbletalk
  2168. tarteaucitron.services.rumbletalk = {
  2169. "key": "rumbletalk",
  2170. "type": "social",
  2171. "name": "RumbleTalk",
  2172. "needConsent": true,
  2173. "cookies": ['AWSALB'],
  2174. "js": function () {
  2175. "use strict";
  2176. if (tarteaucitron.user.rumbletalkid === undefined) {
  2177. return;
  2178. }
  2179. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  2180. tarteaucitron.fallback(['rumbletalk'], function (x) {
  2181. var width = tarteaucitron.getElemWidth(x),
  2182. height = tarteaucitron.getElemHeight(x),
  2183. id = x.getAttribute("data-id");
  2184. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  2185. });
  2186. },
  2187. "fallback": function () {
  2188. "use strict";
  2189. var id = 'rumbletalk';
  2190. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  2191. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  2192. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  2193. return tarteaucitron.engage(id);
  2194. });
  2195. }
  2196. };
  2197. // shareaholic
  2198. tarteaucitron.services.shareaholic = {
  2199. "key": "shareaholic",
  2200. "type": "social",
  2201. "name": "Shareaholic",
  2202. "uri": "https://shareaholic.com/privacy/choices",
  2203. "needConsent": true,
  2204. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  2205. "js": function () {
  2206. "use strict";
  2207. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  2208. return;
  2209. }
  2210. tarteaucitron.fallback(['shareaholic-canvas'], '');
  2211. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  2212. try {
  2213. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  2214. } catch (e) {}
  2215. });
  2216. },
  2217. "fallback": function () {
  2218. "use strict";
  2219. var id = 'shareaholic';
  2220. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  2221. }
  2222. };
  2223. // shareasale
  2224. tarteaucitron.services.shareasale = {
  2225. "key": "shareasale",
  2226. "type": "ads",
  2227. "name": "ShareASale",
  2228. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  2229. "needConsent": true,
  2230. "cookies": [],
  2231. "js": function () {
  2232. "use strict";
  2233. var uniqIds = [],
  2234. i,
  2235. uri;
  2236. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  2237. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2238. uniqIds.push(uniqId);
  2239. 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>';
  2240. });
  2241. for (i = 0; i < uniqIds.length; i += 1) {
  2242. uri = 'https://shareasale.com/sale.cfm?';
  2243. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  2244. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  2245. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  2246. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  2247. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  2248. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  2249. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  2250. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  2251. }
  2252. },
  2253. "fallback": function () {
  2254. "use strict";
  2255. var id = 'shareasale';
  2256. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  2257. }
  2258. };
  2259. // sharethis
  2260. tarteaucitron.services.sharethis = {
  2261. "key": "sharethis",
  2262. "type": "social",
  2263. "name": "ShareThis",
  2264. "uri": "http://www.sharethis.com/legal/privacy/",
  2265. "needConsent": true,
  2266. "cookies": ['__unam'],
  2267. "js": function () {
  2268. "use strict";
  2269. if (tarteaucitron.user.sharethisPublisher === undefined) {
  2270. return;
  2271. }
  2272. var switchTo5x = true,
  2273. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  2274. tarteaucitron.fallback(['tacSharethis'], '');
  2275. tarteaucitron.addScript(uri, '', function () {
  2276. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  2277. });
  2278. if (tarteaucitron.isAjax === true) {
  2279. if (typeof stButtons !== "undefined") {
  2280. stButtons.locateElements();
  2281. }
  2282. }
  2283. },
  2284. "fallback": function () {
  2285. "use strict";
  2286. var id = 'sharethis';
  2287. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  2288. }
  2289. };
  2290. // slideshare
  2291. tarteaucitron.services.slideshare = {
  2292. "key": "slideshare",
  2293. "type": "video",
  2294. "name": "SlideShare",
  2295. "uri": "https://www.linkedin.com/legal/privacy-policy",
  2296. "needConsent": true,
  2297. "cookies": [],
  2298. "js": function () {
  2299. "use strict";
  2300. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  2301. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Slideshare iframe'),
  2302. id = x.getAttribute("data-id"),
  2303. width = x.getAttribute("width"),
  2304. height = x.getAttribute("height"),
  2305. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  2306. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
  2307. });
  2308. },
  2309. "fallback": function () {
  2310. "use strict";
  2311. var id = 'slideshare';
  2312. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  2313. elem.style.width = elem.getAttribute('width') + 'px';
  2314. elem.style.height = elem.getAttribute('height') + 'px';
  2315. return tarteaucitron.engage(id);
  2316. });
  2317. }
  2318. };
  2319. // soundcloud
  2320. tarteaucitron.services.soundcloud = {
  2321. key: 'soundcloud',
  2322. type: 'video',
  2323. name: 'SoundCloud',
  2324. needConsent: true,
  2325. cookies: ['sc_anonymous_id', 'sclocale'],
  2326. js: function () {
  2327. "use strict";
  2328. tarteaucitron.fallback(['soundcloud_player'], function (x) {
  2329. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Soundcloud iframe'),
  2330. player_height = x.getAttribute('data-height'),
  2331. frame_height = 'height="' + player_height + '" ',
  2332. playable_id = x.getAttribute('data-playable-id'),
  2333. playable_type = x.getAttribute('data-playable-type'),
  2334. playable_url = x.getAttribute('data-playable-url'),
  2335. color = x.getAttribute('data-color'),
  2336. autoplay = x.getAttribute('data-auto-play'),
  2337. hideRelated = x.getAttribute('data-hide-related'),
  2338. showComments = x.getAttribute('data-show-comments'),
  2339. showUser = x.getAttribute('data-show-user'),
  2340. showReposts = x.getAttribute('data-show-reposts'),
  2341. showTeaser = x.getAttribute('data-show-teaser'),
  2342. visual = x.getAttribute('data-visual'),
  2343. artwork = x.getAttribute('data-artwork');
  2344. var allowAutoplay = autoplay === 'true' ? 'allow="autoplay"' : '';
  2345. if (playable_id === undefined && playable_url === undefined) {
  2346. return "";
  2347. }
  2348. // Allow to embed from API results (playable_type + playable_id)
  2349. var qs = '?url=https%3A//api.soundcloud.com/' + playable_type + '/' + playable_id;
  2350. // Or from raw URL from Soundcloud website
  2351. if (playable_url && playable_url.length >0) qs = '?url=' + escape(playable_url);
  2352. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2353. if (color && color.length > 0) qs += '&color=' + color.replace('#', '%23');
  2354. if (autoplay && autoplay.length > 0) qs += '&auto_play=' + autoplay;
  2355. if (showComments && showComments.length > 0) qs += '&show_comments=' + showComments;
  2356. if (hideRelated && hideRelated.length > 0) qs += '&hide_related=' + hideRelated;
  2357. if (showUser && showUser.length > 0) qs += '&show_user=' + showUser;
  2358. if (showReposts && showReposts.length > 0) qs += '&show_reposts=' + showReposts;
  2359. if (showTeaser && showTeaser.length > 0) qs += '&show_teaser=' + showTeaser;
  2360. if (visual && visual.length > 0) qs += '&visual=' + visual;
  2361. if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
  2362. return '<iframe title="' + frame_title + '" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
  2363. });
  2364. },
  2365. fallback: function () {
  2366. "use strict";
  2367. tarteaucitron.fallback(['soundcloud_player'], function (elem) {
  2368. elem.style.height = elem.getAttribute('data-height') + 'px';
  2369. return tarteaucitron.engage('soundcloud');
  2370. });
  2371. }
  2372. };
  2373. // spotify
  2374. tarteaucitron.services.spotify = {
  2375. "key": "spotify",
  2376. "type": "video",
  2377. "name": "Spotify",
  2378. "uri": "https://www.spotify.com/us/legal/privacy-policy/",
  2379. "needConsent": true,
  2380. "cookies": ['sp_landing', '_ga', 'sp_ab', 'sp_landingref', 'sp_t', 'sp_usid', 'OptanonConsent', 'sp_m', 'spot'],
  2381. "js": function () {
  2382. "use strict";
  2383. tarteaucitron.fallback(['spotify_player'], function (x) {
  2384. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Spotify iframe'),
  2385. spotify_id = x.getAttribute("spotifyID"),
  2386. spotify_width = x.getAttribute("width"),
  2387. frame_width = 'width=',
  2388. spotify_height = x.getAttribute("height"),
  2389. frame_height = 'height=',
  2390. spotify_frame;
  2391. if (spotify_id === undefined) {
  2392. return "";
  2393. }
  2394. if (spotify_width !== undefined) {
  2395. frame_width += '"' + spotify_width + '" ';
  2396. } else {
  2397. frame_width += '"" ';
  2398. }
  2399. if (spotify_height !== undefined) {
  2400. frame_height += '"' + spotify_height + '" ';
  2401. } else {
  2402. frame_height += '"" ';
  2403. }
  2404. spotify_frame = '<iframe title="' + frame_title + '" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
  2405. return spotify_frame;
  2406. });
  2407. },
  2408. "fallback": function () {
  2409. "use strict";
  2410. var id = 'spotify';
  2411. tarteaucitron.fallback(['spotify_player'], function (elem) {
  2412. elem.style.width = elem.getAttribute('width') + 'px';
  2413. elem.style.height = elem.getAttribute('height') + 'px';
  2414. return tarteaucitron.engage(id);
  2415. });
  2416. }
  2417. };
  2418. // statcounter
  2419. tarteaucitron.services.statcounter = {
  2420. "key": "statcounter",
  2421. "type": "analytic",
  2422. "name": "StatCounter",
  2423. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  2424. "needConsent": true,
  2425. "cookies": ['sc_is_visitor_unique'],
  2426. "js": function () {
  2427. "use strict";
  2428. var uniqIds = [],
  2429. i,
  2430. uri = '//statcounter.com/counter/counter.js';
  2431. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  2432. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2433. uniqIds.push(uniqId);
  2434. return '<div id="' + uniqId + '"></div>';
  2435. });
  2436. for (i = 0; i < uniqIds.length; i += 1) {
  2437. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  2438. }
  2439. },
  2440. "fallback": function () {
  2441. "use strict";
  2442. var id = 'statcounter';
  2443. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  2444. }
  2445. };
  2446. // timelinejs
  2447. tarteaucitron.services.timelinejs = {
  2448. "key": "timelinejs",
  2449. "type": "api",
  2450. "name": "Timeline JS",
  2451. "uri": "http://timeline.knightlab.com/#help",
  2452. "needConsent": true,
  2453. "cookies": [],
  2454. "js": function () {
  2455. "use strict";
  2456. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  2457. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Twitter iframe'),
  2458. spreadsheet_id = x.getAttribute("spreadsheet_id"),
  2459. width = x.getAttribute("width"),
  2460. height = x.getAttribute("height"),
  2461. lang = x.getAttribute("lang_2_letter"),
  2462. font = x.getAttribute("font"),
  2463. map = x.getAttribute("map"),
  2464. start_at_end = x.getAttribute("start_at_end"),
  2465. hash_bookmark = x.getAttribute("hash_bookmark"),
  2466. start_at_slide = x.getAttribute("start_at_slide"),
  2467. start_zoom = x.getAttribute("start_zoom"),
  2468. 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;
  2469. return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
  2470. });
  2471. },
  2472. "fallback": function () {
  2473. "use strict";
  2474. var id = 'timelinejs';
  2475. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  2476. elem.style.width = elem.getAttribute('width') + 'px';
  2477. elem.style.height = elem.getAttribute('height') + 'px';
  2478. return tarteaucitron.engage(id);
  2479. });
  2480. }
  2481. };
  2482. // tagcommander
  2483. tarteaucitron.services.tagcommander = {
  2484. "key": "tagcommander",
  2485. "type": "api",
  2486. "name": "TagCommander",
  2487. "uri": "https://www.commandersact.com/en/privacy/",
  2488. "needConsent": true,
  2489. "cookies": [],
  2490. "js": function () {
  2491. "use strict";
  2492. if (tarteaucitron.user.tagcommanderid === undefined) {
  2493. return;
  2494. }
  2495. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  2496. }
  2497. };
  2498. // typekit
  2499. tarteaucitron.services.typekit = {
  2500. "key": "typekit",
  2501. "type": "api",
  2502. "name": "Typekit (adobe)",
  2503. "uri": "https://www.adobe.com/privacy.html",
  2504. "needConsent": true,
  2505. "cookies": [],
  2506. "js": function () {
  2507. "use strict";
  2508. if (tarteaucitron.user.typekitId === undefined) {
  2509. return;
  2510. }
  2511. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  2512. try {
  2513. Typekit.load();
  2514. } catch (e) {}
  2515. });
  2516. }
  2517. };
  2518. // twenga
  2519. tarteaucitron.services.twenga = {
  2520. "key": "twenga",
  2521. "type": "ads",
  2522. "name": "Twenga",
  2523. "uri": "http://www.twenga.com/privacy.php",
  2524. "needConsent": true,
  2525. "cookies": [],
  2526. "js": function () {
  2527. "use strict";
  2528. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  2529. return;
  2530. }
  2531. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  2532. }
  2533. };
  2534. // twitter
  2535. tarteaucitron.services.twitter = {
  2536. "key": "twitter",
  2537. "type": "social",
  2538. "name": "Twitter",
  2539. "uri": "https://support.twitter.com/articles/20170514",
  2540. "needConsent": true,
  2541. "cookies": [],
  2542. "js": function () {
  2543. "use strict";
  2544. tarteaucitron.fallback(['tacTwitter'], '');
  2545. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2546. },
  2547. "fallback": function () {
  2548. "use strict";
  2549. var id = 'twitter';
  2550. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  2551. }
  2552. };
  2553. // twitter embed
  2554. tarteaucitron.services.twitterembed = {
  2555. "key": "twitterembed",
  2556. "type": "social",
  2557. "name": "Twitter (cards)",
  2558. "uri": "https://support.twitter.com/articles/20170514",
  2559. "needConsent": true,
  2560. "cookies": [],
  2561. "js": function () {
  2562. "use strict";
  2563. var uniqIds = [],
  2564. i,
  2565. e,
  2566. html;
  2567. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  2568. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  2569. uniqIds.push(uniqId);
  2570. html = '<div id="' + uniqId + '" ';
  2571. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  2572. html += 'theme="' + x.getAttribute('theme') + '" ';
  2573. html += 'cards="' + x.getAttribute('cards') + '" ';
  2574. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  2575. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  2576. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  2577. html += '></div>';
  2578. return html;
  2579. });
  2580. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  2581. var i;
  2582. for (i = 0; i < uniqIds.length; i += 1) {
  2583. e = document.getElementById(uniqIds[i]);
  2584. twttr.widgets.createTweet(
  2585. e.getAttribute('tweetid'),
  2586. e,
  2587. {
  2588. theme: e.getAttribute('theme'),
  2589. cards: e.getAttribute('cards'),
  2590. conversation: e.getAttribute('conversation'),
  2591. lang: tarteaucitron.getLanguage(),
  2592. dnt: true,
  2593. width: e.getAttribute('data-width'),
  2594. align: e.getAttribute('data-align')
  2595. }
  2596. );
  2597. }
  2598. });
  2599. },
  2600. "fallback": function () {
  2601. "use strict";
  2602. var id = 'twitterembed';
  2603. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  2604. elem.style.width = elem.getAttribute('data-width') + 'px';
  2605. return tarteaucitron.engage(id);
  2606. });
  2607. }
  2608. };
  2609. // twitter timeline
  2610. tarteaucitron.services.twittertimeline = {
  2611. "key": "twittertimeline",
  2612. "type": "social",
  2613. "name": "Twitter (timelines)",
  2614. "uri": "https://support.twitter.com/articles/20170514",
  2615. "needConsent": true,
  2616. "cookies": [],
  2617. "js": function () {
  2618. "use strict";
  2619. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  2620. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  2621. },
  2622. "fallback": function () {
  2623. "use strict";
  2624. var id = 'twittertimeline';
  2625. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  2626. }
  2627. };
  2628. // twitter universal website tag
  2629. tarteaucitron.services.twitteruwt = {
  2630. "key": "twitteruwt",
  2631. "type": "analytic",
  2632. "name": "Twitter Universal Website Tag",
  2633. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  2634. "needConsent": true,
  2635. "cookies": [],
  2636. "js": function () {
  2637. "use strict";
  2638. window.twq = function () {
  2639. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  2640. }
  2641. window.twq.version = '1.1';
  2642. window.twq.queue = [];
  2643. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  2644. window.twq('init', tarteaucitron.user.twitteruwtId);
  2645. window.twq('track', 'PageView');
  2646. });
  2647. }
  2648. };
  2649. // user voice
  2650. tarteaucitron.services.uservoice = {
  2651. "key": "uservoice",
  2652. "type": "support",
  2653. "name": "UserVoice",
  2654. "uri": "https://www.uservoice.com/privacy/",
  2655. "needConsent": true,
  2656. "cookies": [],
  2657. "js": function () {
  2658. "use strict";
  2659. if (tarteaucitron.user.userVoiceApi === undefined) {
  2660. return;
  2661. }
  2662. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  2663. }
  2664. };
  2665. // vimeo
  2666. tarteaucitron.services.vimeo = {
  2667. "key": "vimeo",
  2668. "type": "video",
  2669. "name": "Vimeo",
  2670. "uri": "https://vimeo.com/privacy",
  2671. "needConsent": true,
  2672. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  2673. "js": function () {
  2674. "use strict";
  2675. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2676. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("data-title") || x.getAttribute("title") || 'Vimeo iframe'),
  2677. video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  2678. frame_width = 'width=',
  2679. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  2680. frame_height = 'height=',
  2681. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  2682. video_allowfullscreen = x.getAttribute("data-allowfullscreen"),
  2683. video_autopause = x.getAttribute("data-autopause") || '',
  2684. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  2685. video_background = x.getAttribute("data-background") || '',
  2686. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  2687. video_color = x.getAttribute("data-color") || '',
  2688. video_controls = x.getAttribute("data-controls") || '',
  2689. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  2690. video_maxheight = x.getAttribute("data-maxheight") || '',
  2691. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  2692. video_muted = x.getAttribute("data-muted") || '',
  2693. video_playsinline = x.getAttribute("data-playsinline") || '',
  2694. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  2695. video_speed = x.getAttribute("data-speed") || '',
  2696. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  2697. video_transparent = x.getAttribute("data-transparent") || '',
  2698. video_frame;
  2699. if (video_id === undefined) {
  2700. return "";
  2701. }
  2702. if (video_width !== undefined) {
  2703. frame_width += '"' + video_width + '" ';
  2704. } else {
  2705. frame_width += '"" ';
  2706. }
  2707. if (video_height !== undefined) {
  2708. frame_height += '"' + video_height + '" ';
  2709. } else {
  2710. frame_height += '"" ';
  2711. }
  2712. var video_qs = "?";
  2713. if (video_title.length > 0) {
  2714. video_qs += "title=" + video_title;
  2715. }
  2716. if (video_byline.length > 0) {
  2717. if (video_qs.length > 0) {
  2718. video_qs += "&";
  2719. }
  2720. video_qs += "byline=" + video_byline;
  2721. }
  2722. if (video_portrait.length > 0) {
  2723. if (video_qs.length > 0) {
  2724. video_qs += "&";
  2725. }
  2726. video_qs += "portrait=" + video_portrait;
  2727. }
  2728. if (video_loop.length > 0) {
  2729. if (video_qs.length > 0) {
  2730. video_qs += "&";
  2731. }
  2732. video_qs += "loop=" + video_loop;
  2733. }
  2734. if (video_autoplay.length > 0) {
  2735. if (video_qs.length > 0) {
  2736. video_qs += "&";
  2737. }
  2738. video_qs += "autoplay=" + video_autoplay;
  2739. }
  2740. if (video_autopause.length > 0) {
  2741. if (video_qs.length > 0) {
  2742. video_qs += "&";
  2743. }
  2744. video_qs += "autopause=" + video_autopause;
  2745. }
  2746. if (video_background.length > 0) {
  2747. if (video_qs.length > 0) {
  2748. video_qs += "&";
  2749. }
  2750. video_qs += "background=" + video_background;
  2751. }
  2752. if (video_color.length > 0) {
  2753. if (video_qs.length > 0) {
  2754. video_qs += "&";
  2755. }
  2756. video_qs += "color=" + video_color;
  2757. }
  2758. if (video_controls.length > 0) {
  2759. if (video_qs.length > 0) {
  2760. video_qs += "&";
  2761. }
  2762. video_qs += "controls=" + video_controls;
  2763. }
  2764. if (video_maxheight.length > 0) {
  2765. if (video_qs.length > 0) {
  2766. video_qs += "&";
  2767. }
  2768. video_qs += "maxheight=" + video_maxheight;
  2769. }
  2770. if (video_maxwidth.length > 0) {
  2771. if (video_qs.length > 0) {
  2772. video_qs += "&";
  2773. }
  2774. video_qs += "maxwidth=" + video_maxwidth;
  2775. }
  2776. if (video_muted.length > 0) {
  2777. if (video_qs.length > 0) {
  2778. video_qs += "&";
  2779. }
  2780. video_qs += "muted=" + video_muted;
  2781. }
  2782. if (video_playsinline.length > 0) {
  2783. if (video_qs.length > 0) {
  2784. video_qs += "&";
  2785. }
  2786. video_qs += "playsinline=" + video_playsinline;
  2787. }
  2788. if (video_speed.length > 0) {
  2789. if (video_qs.length > 0) {
  2790. video_qs += "&";
  2791. }
  2792. video_qs += "speed=" + video_speed;
  2793. }
  2794. if (video_transparent.length > 0) {
  2795. if (video_qs.length > 0) {
  2796. video_qs += "&";
  2797. }
  2798. video_qs += "transparent=" + video_transparent;
  2799. }
  2800. if (video_qs === "?") {
  2801. video_qs = "";
  2802. }
  2803. 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>';
  2804. return video_frame;
  2805. });
  2806. },
  2807. "fallback": function () {
  2808. "use strict";
  2809. var id = 'vimeo';
  2810. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2811. elem.style.width = elem.getAttribute('width') + 'px';
  2812. elem.style.height = elem.getAttribute('height') + 'px';
  2813. return tarteaucitron.engage(id);
  2814. });
  2815. }
  2816. };
  2817. // visualrevenue
  2818. tarteaucitron.services.visualrevenue = {
  2819. "key": "visualrevenue",
  2820. "type": "analytic",
  2821. "name": "VisualRevenue",
  2822. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2823. "needConsent": true,
  2824. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2825. "js": function () {
  2826. "use strict";
  2827. if (tarteaucitron.user.visualrevenueId === undefined) {
  2828. return;
  2829. }
  2830. window._vrq = window._vrq || [];
  2831. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2832. window._vrq.push(['automate', true]);
  2833. window._vrq.push(['track', function () {}]);
  2834. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2835. }
  2836. };
  2837. // verizon dot tag
  2838. tarteaucitron.services.verizondottag = {
  2839. "key": "verizondottag",
  2840. "type": "analytic",
  2841. "name": "Verizon Dot Tag",
  2842. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2843. "needConsent": true,
  2844. "cookies": [],
  2845. "js": function () {
  2846. "use strict";
  2847. window.dotq = window.dotq || [];
  2848. window.dotq.push({
  2849. 'projectId': tarteaucitron.user.verizondottagProjectId,
  2850. 'properties': {'pixelId': tarteaucitron.user.verizondottagPixelId}
  2851. });
  2852. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  2853. //const items = window.dotq;
  2854. window.dotq = [];
  2855. window.dotq.push = function (item) {
  2856. YAHOO.ywa.I13N.fireBeacon([item])
  2857. };
  2858. YAHOO.ywa.I13N.fireBeacon(items)
  2859. });
  2860. }
  2861. };
  2862. // vshop
  2863. tarteaucitron.services.vshop = {
  2864. "key": "vshop",
  2865. "type": "ads",
  2866. "name": "vShop",
  2867. "uri": "http://vshop.fr/privacy-policy",
  2868. "needConsent": true,
  2869. "cookies": [],
  2870. "js": function () {
  2871. "use strict";
  2872. tarteaucitron.fallback(['vcashW'], '');
  2873. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2874. },
  2875. "fallback": function () {
  2876. "use strict";
  2877. var id = 'vshop';
  2878. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2879. }
  2880. };
  2881. // wysistat
  2882. tarteaucitron.services.wysistat = {
  2883. "key": "wysistat",
  2884. "type": "analytic",
  2885. "name": "Wysistat",
  2886. "uri": "http://wysistat.net/contact/",
  2887. "needConsent": true,
  2888. "cookies": ['Wysistat'],
  2889. "js": function () {
  2890. "use strict";
  2891. if (tarteaucitron.user.wysistat === undefined) {
  2892. return;
  2893. }
  2894. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2895. 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);
  2896. });
  2897. }
  2898. };
  2899. // xiti
  2900. tarteaucitron.services.xiti = {
  2901. "key": "xiti",
  2902. "type": "analytic",
  2903. "name": "Xiti",
  2904. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2905. "needConsent": true,
  2906. "cookies": [],
  2907. "js": function () {
  2908. "use strict";
  2909. if (tarteaucitron.user.xitiId === undefined) {
  2910. return;
  2911. }
  2912. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2913. Xt_r,
  2914. Xt_h,
  2915. Xt_i,
  2916. Xt_s,
  2917. div = document.createElement('div');
  2918. try {
  2919. Xt_r = top.document.referrer;
  2920. } catch (e) {
  2921. Xt_r = document.referrer;
  2922. }
  2923. Xt_h = new Date();
  2924. Xt_i = '<img style="display:none" border="0" alt="" ';
  2925. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2926. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2927. if (parseFloat(navigator.appVersion) >= 4) {
  2928. Xt_s = screen;
  2929. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2930. }
  2931. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2932. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2933. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2934. tarteaucitron.user.xitiMore();
  2935. }
  2936. }
  2937. };
  2938. // AT Internet
  2939. tarteaucitron.services.atinternet = {
  2940. "key": "atinternet",
  2941. "type": "analytic",
  2942. "name": "AT Internet (privacy by design)",
  2943. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2944. "needConsent": true,
  2945. "safeanalytic": false,
  2946. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  2947. "js": function () {
  2948. "use strict";
  2949. if (tarteaucitron.user.atLibUrl === undefined) {
  2950. return;
  2951. }
  2952. if (tarteaucitron.user.atinternetAlreadyLoaded !== undefined) {
  2953. return;
  2954. }
  2955. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2956. window.tag = new ATInternet.Tracker.Tag();
  2957. if (typeof tarteaucitron.user.atMore === 'function') {
  2958. tarteaucitron.user.atMore();
  2959. }
  2960. if (typeof window.tag.privacy !== 'undefined') {
  2961. window.tag.privacy.setVisitorOptin();
  2962. }
  2963. if (tarteaucitron.user.atinternetSendData !== false) {
  2964. window.tag.page.send();
  2965. }
  2966. });
  2967. },
  2968. "fallback": function () {
  2969. "use strict";
  2970. if (tarteaucitron.user.atLibUrl === undefined) {
  2971. return;
  2972. }
  2973. tarteaucitron.user.atinternetAlreadyLoaded = true;
  2974. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2975. window.tag = new ATInternet.Tracker.Tag();
  2976. if (typeof tarteaucitron.user.atMore === 'function') {
  2977. tarteaucitron.user.atMore();
  2978. }
  2979. if (typeof window.tag.privacy !== 'undefined') {
  2980. var visitorMode = window.tag.privacy.getVisitorMode();
  2981. if (visitorMode !== null && visitorMode.name !== undefined && visitorMode.name == "optout") {
  2982. window.tag.privacy.setVisitorOptout();
  2983. } else {
  2984. window.tag.privacy.setVisitorMode('cnil', 'exempt');
  2985. }
  2986. }
  2987. if (tarteaucitron.user.atinternetSendData !== false) {
  2988. window.tag.page.send();
  2989. }
  2990. });
  2991. }
  2992. };
  2993. // AT Internet
  2994. tarteaucitron.services.atinternethightrack = {
  2995. "key": "atinternethightrack",
  2996. "type": "analytic",
  2997. "name": "AT Internet",
  2998. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2999. "needConsent": true,
  3000. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession'],
  3001. "js": function () {
  3002. "use strict";
  3003. if (tarteaucitron.user.atLibUrl === undefined) {
  3004. return;
  3005. }
  3006. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  3007. var tag = new ATInternet.Tracker.Tag();
  3008. if (typeof tarteaucitron.user.atMore === 'function') {
  3009. tarteaucitron.user.atMore();
  3010. }
  3011. })
  3012. }
  3013. };
  3014. // youtube
  3015. tarteaucitron.services.youtube = {
  3016. "key": "youtube",
  3017. "type": "video",
  3018. "name": "YouTube",
  3019. "uri": "https://policies.google.com/privacy",
  3020. "needConsent": true,
  3021. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3022. "js": function () {
  3023. "use strict";
  3024. tarteaucitron.fallback(['youtube_player'], function (x) {
  3025. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
  3026. video_id = x.getAttribute("videoID"),
  3027. srcdoc = x.getAttribute("srcdoc"),
  3028. loading = x.getAttribute("loading"),
  3029. video_width = x.getAttribute("width"),
  3030. frame_width = 'width=',
  3031. video_height = x.getAttribute("height"),
  3032. frame_height = 'height=',
  3033. video_frame,
  3034. allowfullscreen = x.getAttribute("allowfullscreen"),
  3035. attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "loop"],
  3036. params = attrs.filter(function (a) {
  3037. return x.getAttribute(a) !== null;
  3038. }).map(function (a) {
  3039. return a + "=" + x.getAttribute(a);
  3040. }).join("&");
  3041. if (video_id === undefined) {
  3042. return "";
  3043. }
  3044. if (video_width !== undefined) {
  3045. frame_width += '"' + video_width + '" ';
  3046. } else {
  3047. frame_width += '"" ';
  3048. }
  3049. if (video_height !== undefined) {
  3050. frame_height += '"' + video_height + '" ';
  3051. } else {
  3052. frame_height += '"" ';
  3053. }
  3054. if (srcdoc !== undefined && srcdoc !== null && srcdoc !== "") {
  3055. srcdoc = 'srcdoc="' + srcdoc + '" ';
  3056. } else {
  3057. srcdoc = '';
  3058. }
  3059. if (loading !== undefined && loading !== null && loading !== "") {
  3060. loading = 'loading ';
  3061. } else {
  3062. loading = '';
  3063. }
  3064. 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>';
  3065. return video_frame;
  3066. });
  3067. },
  3068. "fallback": function () {
  3069. "use strict";
  3070. var id = 'youtube';
  3071. tarteaucitron.fallback(['youtube_player'], function (elem) {
  3072. elem.style.width = elem.getAttribute('width') + 'px';
  3073. elem.style.height = elem.getAttribute('height') + 'px';
  3074. return tarteaucitron.engage(id);
  3075. });
  3076. }
  3077. };
  3078. // youtube playlist
  3079. tarteaucitron.services.youtubeplaylist = {
  3080. "key": "youtubeplaylist",
  3081. "type": "video",
  3082. "name": "YouTube (playlist)",
  3083. "uri": "https://policies.google.com/privacy",
  3084. "needConsent": true,
  3085. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  3086. "js": function () {
  3087. "use strict";
  3088. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  3089. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
  3090. playlist_id = x.getAttribute("playlistID"),
  3091. video_width = x.getAttribute("width"),
  3092. frame_width = 'width=',
  3093. video_height = x.getAttribute("height"),
  3094. frame_height = 'height=',
  3095. video_frame,
  3096. allowfullscreen = x.getAttribute("allowfullscreen"),
  3097. 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");
  3098. if (playlist_id === undefined) {
  3099. return "";
  3100. }
  3101. if (video_width !== undefined) {
  3102. frame_width += '"' + video_width + '" ';
  3103. } else {
  3104. frame_width += '"" ';
  3105. }
  3106. if (video_height !== undefined) {
  3107. frame_height += '"' + video_height + '" ';
  3108. } else {
  3109. frame_height += '"" ';
  3110. }
  3111. 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>';
  3112. return video_frame;
  3113. });
  3114. },
  3115. "fallback": function () {
  3116. "use strict";
  3117. var id = 'youtubeplaylist';
  3118. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  3119. elem.style.width = elem.getAttribute('width') + 'px';
  3120. elem.style.height = elem.getAttribute('height') + 'px';
  3121. return tarteaucitron.engage(id);
  3122. });
  3123. }
  3124. };
  3125. // zopim
  3126. tarteaucitron.services.zopim = {
  3127. "key": "zopim",
  3128. "type": "support",
  3129. "name": "Zopim",
  3130. "uri": "https://www.zopim.com/privacy",
  3131. "needConsent": true,
  3132. "cookies": ['__zlcid', '__zprivacy'],
  3133. "js": function () {
  3134. "use strict";
  3135. if (tarteaucitron.user.zopimID === undefined) {
  3136. return;
  3137. }
  3138. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  3139. }
  3140. };
  3141. // kameleoon
  3142. tarteaucitron.services.kameleoon = {
  3143. "key": "kameleoon",
  3144. "type": "analytic",
  3145. "name": "Kameleoon",
  3146. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  3147. "needConsent": true,
  3148. "cookies": [],
  3149. "js": function () {
  3150. "use strict";
  3151. if (tarteaucitron.user.kameleoon !== undefined) {
  3152. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  3153. }
  3154. }
  3155. };
  3156. // linkedin insight
  3157. tarteaucitron.services.linkedininsighttag = {
  3158. "key": "linkedininsighttag",
  3159. "type": "ads",
  3160. "name": "Linkedin Insight",
  3161. "uri": "https://www.linkedin.com/legal/cookie_policy",
  3162. "needConsent": true,
  3163. "cookies": [],
  3164. "js": function () {
  3165. "use strict";
  3166. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  3167. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  3168. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  3169. }
  3170. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  3171. }
  3172. };
  3173. // xiti smartTag
  3174. tarteaucitron.services.xiti_smarttag = {
  3175. "key": "xiti_smarttag",
  3176. "type": "analytic",
  3177. "name": "Xiti (SmartTag)",
  3178. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  3179. "needConsent": true,
  3180. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "attvtreman", "attvtsession"],
  3181. "js": function () {
  3182. "use strict";
  3183. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  3184. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  3185. } else {
  3186. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  3187. if (xitiSmarttagId === undefined) {
  3188. return;
  3189. }
  3190. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  3191. }
  3192. }
  3193. };
  3194. // facebook pixel
  3195. tarteaucitron.services.facebookpixel = {
  3196. "key": "facebookpixel",
  3197. "type": "ads",
  3198. "name": "Facebook Pixel",
  3199. "uri": "https://www.facebook.com/policy.php",
  3200. "needConsent": true,
  3201. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  3202. "js": function () {
  3203. "use strict";
  3204. var n;
  3205. if(window.fbq)return;
  3206. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  3207. if(!window._fbq)window._fbq=n;
  3208. n.push=n;
  3209. n.loaded=!0;
  3210. n.version='2.0';
  3211. n.queue=[];
  3212. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  3213. fbq('init', tarteaucitron.user.facebookpixelId);
  3214. fbq('track', 'PageView');
  3215. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  3216. tarteaucitron.user.facebookpixelMore();
  3217. }
  3218. }
  3219. };
  3220. //Issuu
  3221. tarteaucitron.services.issuu = {
  3222. "key": "issuu",
  3223. "type": "other",
  3224. "name": "Issuu",
  3225. "uri": "https://issuu.com/legal/privacy",
  3226. "needConsent": true,
  3227. "cookies": ['__qca', 'iutk', 'mc'],
  3228. "js": function () {
  3229. "use strict";
  3230. tarteaucitron.fallback(['issuu_player'], function (x) {
  3231. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Issuu iframe'),
  3232. issuu_id = x.getAttribute("issuuID"),
  3233. issuu_width = x.getAttribute("width"),
  3234. frame_width = 'width=',
  3235. issuu_height = x.getAttribute("height"),
  3236. frame_height = 'height=',
  3237. issuu_frame,
  3238. issuu_embed;
  3239. if (issuu_id === undefined) {
  3240. return "";
  3241. }
  3242. if (issuu_width !== undefined) {
  3243. frame_width += '"' + issuu_width + '" ';
  3244. } else {
  3245. frame_width += '"" ';
  3246. }
  3247. if (issuu_height !== undefined) {
  3248. frame_height += '"' + issuu_height + '" ';
  3249. } else {
  3250. frame_height += '"" ';
  3251. }
  3252. if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
  3253. issuu_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
  3254. return issuu_frame;
  3255. });
  3256. },
  3257. "fallback": function () {
  3258. "use strict";
  3259. var id = 'issuu';
  3260. tarteaucitron.fallback(['issuu_player'], function (elem) {
  3261. elem.style.width = elem.getAttribute('width') + 'px';
  3262. elem.style.height = elem.getAttribute('height') + 'px';
  3263. return tarteaucitron.engage(id);
  3264. });
  3265. }
  3266. };
  3267. // webmecanik
  3268. tarteaucitron.services.webmecanik = {
  3269. "key": "webmecanik",
  3270. "type": "analytic",
  3271. "name": "Webmecanik",
  3272. "uri": "https://webmecanik.com/tos",
  3273. "needConsent": true,
  3274. "cookies": ['mtc_id', 'mtc_sid'],
  3275. "js": function () {
  3276. "use strict";
  3277. if (tarteaucitron.user.webmecanikurl === undefined) {
  3278. return;
  3279. }
  3280. window.MauticTrackingObject = 'mt';
  3281. window.mt = window.mt || function () {
  3282. window.mt.q = window.mt.q || [];
  3283. window.mt.q.push(arguments);
  3284. };
  3285. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  3286. mt('send', 'pageview');
  3287. });
  3288. }
  3289. };
  3290. // google analytics multiple
  3291. tarteaucitron.services.multiplegtag = {
  3292. "key": "multiplegtag",
  3293. "type": "analytic",
  3294. "name": "Google Analytics (gtag.js)",
  3295. "uri": "https://support.google.com/analytics/answer/6004245",
  3296. "needConsent": true,
  3297. "cookies": (function () {
  3298. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  3299. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3300. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  3301. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  3302. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  3303. });
  3304. }
  3305. return cookies;
  3306. })(),
  3307. "js": function () {
  3308. "use strict";
  3309. window.dataLayer = window.dataLayer || [];
  3310. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  3311. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  3312. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  3313. window.gtag = function gtag(){dataLayer.push(arguments);}
  3314. gtag('js', new Date());
  3315. gtag('config', ua);
  3316. });
  3317. });
  3318. }
  3319. }
  3320. };
  3321. // Koban
  3322. tarteaucitron.services.koban = {
  3323. "key": "koban",
  3324. "type": "analytic",
  3325. "name": "Koban",
  3326. "uri": "https://koban.cloud/tos",
  3327. "needConsent": true,
  3328. "cookies": ['kbntrk'],
  3329. "js": function () {
  3330. "use strict";
  3331. if (tarteaucitron.user.kobanurl === undefined) {
  3332. return;
  3333. }
  3334. if (tarteaucitron.user.kobanapi === undefined) {
  3335. return;
  3336. }
  3337. window.KobanObject = 'kb';
  3338. window.kb = window.kb || function() {
  3339. window.kb.q = window.kb.q || [];
  3340. window.kb.q.push(arguments);
  3341. };
  3342. window.kb.l = new Date();
  3343. kb('reg', tarteaucitron.user.kobanapi);
  3344. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  3345. });
  3346. }
  3347. };
  3348. // matomo
  3349. /*
  3350. 1. Set the following variable before the initialization :
  3351. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  3352. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  3353. 2. Push the service :
  3354. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  3355. 3. HTML
  3356. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3357. */
  3358. tarteaucitron.services.matomo = {
  3359. "key": "matomo",
  3360. "type": "analytic",
  3361. "name": "Matomo (privacy by design)",
  3362. "uri": "https://matomo.org/faq/general/faq_146/",
  3363. "needConsent": false,
  3364. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3365. "js": function () {
  3366. "use strict";
  3367. if (tarteaucitron.user.matomoId === undefined) {
  3368. return;
  3369. }
  3370. window._paq = window._paq || [];
  3371. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3372. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3373. window._paq.push(["setDoNotTrack", 1]);
  3374. window._paq.push(["trackPageView"]);
  3375. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3376. window._paq.push(["enableLinkTracking"]);
  3377. window._paq.push([function() {
  3378. var self = this;
  3379. function getOriginalVisitorCookieTimeout() {
  3380. var now = new Date(),
  3381. nowTs = Math.round(now.getTime() / 1000),
  3382. visitorInfo = self.getVisitorInfo();
  3383. var createTs = parseInt(visitorInfo[2]);
  3384. var cookieTimeout = 33696000; // 13 mois en secondes
  3385. var originalTimeout = createTs + cookieTimeout - nowTs;
  3386. return originalTimeout;
  3387. }
  3388. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  3389. }]);
  3390. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3391. // waiting for piwik to be ready to check first party cookies
  3392. var interval = setInterval(function() {
  3393. if (typeof Piwik === 'undefined') return
  3394. clearInterval(interval)
  3395. // make piwik/matomo cookie accessible by getting tracker
  3396. Piwik.getTracker();
  3397. // looping throught cookies
  3398. var theCookies = document.cookie.split(';');
  3399. for (var i = 1 ; i <= theCookies.length; i++) {
  3400. var cookie = theCookies[i-1].split('=');
  3401. var cookieName = cookie[0].trim();
  3402. // if cookie starts like a piwik one, register it
  3403. if (cookieName.indexOf('_pk_') === 0) {
  3404. tarteaucitron.services.matomo.cookies.push(cookieName);
  3405. }
  3406. }
  3407. }, 100)
  3408. }
  3409. };
  3410. tarteaucitron.services.matomohightrack = {
  3411. "key": "matomohightrack",
  3412. "type": "analytic",
  3413. "name": "Matomo",
  3414. "uri": "https://matomo.org/faq/general/faq_146/",
  3415. "needConsent": false,
  3416. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  3417. "js": function () {
  3418. "use strict";
  3419. if (tarteaucitron.user.matomoId === undefined) {
  3420. return;
  3421. }
  3422. window._paq = window._paq || [];
  3423. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  3424. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  3425. window._paq.push(["trackPageView"]);
  3426. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  3427. window._paq.push(["enableLinkTracking"]);
  3428. window._paq.push([function() {
  3429. var self = this;
  3430. }]);
  3431. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  3432. // waiting for piwik to be ready to check first party cookies
  3433. var interval = setInterval(function() {
  3434. if (typeof Piwik === 'undefined') return
  3435. clearInterval(interval)
  3436. Piwik.getTracker();
  3437. var theCookies = document.cookie.split(';');
  3438. for (var i = 1 ; i <= theCookies.length; i++) {
  3439. var cookie = theCookies[i-1].split('=');
  3440. var cookieName = cookie[0].trim();
  3441. if (cookieName.indexOf('_pk_') === 0) {
  3442. tarteaucitron.services.matomo.cookies.push(cookieName);
  3443. }
  3444. }
  3445. }, 100)
  3446. }
  3447. };
  3448. // Hotjar
  3449. /*
  3450. 1. Set the following variable before the initialization :
  3451. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  3452. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  3453. 2. Push the service :
  3454. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  3455. 3. HTML
  3456. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  3457. */
  3458. tarteaucitron.services.hotjar = {
  3459. "key": "hotjar",
  3460. "type": "analytic",
  3461. "name": "Hotjar",
  3462. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  3463. "needConsent": true,
  3464. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage", "_hjAbsoluteSessionInProgress", "_hjIncludeInPageviewSample", "_hjid"],
  3465. "js": function () {
  3466. "use strict";
  3467. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  3468. return;
  3469. }
  3470. window.hj = window.hj || function() {
  3471. (window.hj.q = window.hj.q || []).push(arguments)
  3472. };
  3473. window._hjSettings = {
  3474. hjid: tarteaucitron.user.hotjarId,
  3475. hjsv: tarteaucitron.user.HotjarSv
  3476. };
  3477. var uri = 'https://static.hotjar.com/c/hotjar-';
  3478. var extension = '.js?sv=';
  3479. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  3480. }
  3481. };
  3482. // bing ads universal event tracking
  3483. tarteaucitron.services.bingads = {
  3484. 'key': 'bingads',
  3485. 'type': 'ads',
  3486. 'name': 'Bing Ads Universal Event Tracking',
  3487. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  3488. 'needConsent': true,
  3489. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  3490. 'js': function () {
  3491. 'use strict';
  3492. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  3493. window.uetq = window.uetq || [];
  3494. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  3495. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  3496. if ('bingadsStoreCookies' in tarteaucitron.user) {
  3497. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  3498. }
  3499. bingadsCreate.q = window.uetq;
  3500. window.uetq = new UET(bingadsCreate);
  3501. window.uetq.push('pageLoad');
  3502. });
  3503. }
  3504. };
  3505. //Matterport
  3506. tarteaucitron.services.matterport = {
  3507. "key": "matterport",
  3508. "type": "other",
  3509. "name": "Matterport",
  3510. "uri": "https://matterport.com/es/legal/privacy-policy/",
  3511. "needConsent": true,
  3512. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  3513. "js": function () {
  3514. "use strict";
  3515. tarteaucitron.fallback(['matterport'], function (x) {
  3516. var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Matterport iframe'),
  3517. matterport_id = x.getAttribute("matterportID"),
  3518. matterport_width = x.getAttribute("width"),
  3519. frame_width = 'width=',
  3520. matterport_height = x.getAttribute("height"),
  3521. frame_height = 'height=',
  3522. matterport_parameters = x.getAttribute("parameters"),
  3523. matterport_allowfullscreen = x.getAttribute('allowfullscreen'),
  3524. matterport_frame;
  3525. if (matterport_id === undefined) {
  3526. return "";
  3527. }
  3528. if (matterport_width !== undefined) {
  3529. frame_width += '"' + matterport_width + '" ';
  3530. } else {
  3531. frame_width += '"" ';
  3532. }
  3533. if (matterport_height !== undefined) {
  3534. frame_height += '"' + matterport_height + '" ';
  3535. } else {
  3536. frame_height += '"" ';
  3537. }
  3538. if (matterport_parameters === undefined) {
  3539. return "";
  3540. }
  3541. 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>';
  3542. return matterport_frame;
  3543. });
  3544. },
  3545. "fallback": function () {
  3546. "use strict";
  3547. var id = 'matterport';
  3548. tarteaucitron.fallback(['matterport'], function (elem) {
  3549. elem.style.width = elem.getAttribute('width') + 'px';
  3550. elem.style.height = elem.getAttribute('height') + 'px';
  3551. return tarteaucitron.engage(id);
  3552. });
  3553. }
  3554. };
  3555. // Adform
  3556. tarteaucitron.services.adform = {
  3557. "key": "adform",
  3558. "type": "ads",
  3559. "name": "Adform",
  3560. "uri": "https://site.adform.com/privacy-center/overview/",
  3561. "needConsent": true,
  3562. "cookies": [],
  3563. "js": function () {
  3564. "use strict";
  3565. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  3566. return;
  3567. }
  3568. window._adftrack = {
  3569. pm: tarteaucitron.user.adformpm,
  3570. divider: encodeURIComponent('|'),
  3571. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  3572. };
  3573. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  3574. }
  3575. };
  3576. // Active Campaign
  3577. tarteaucitron.services.activecampaign = {
  3578. "key": "activecampaign",
  3579. "type": "ads",
  3580. "name": "Active Campaign",
  3581. "uri": "https://www.activecampaign.com/privacy-policy/",
  3582. "needConsent": true,
  3583. "cookies": [],
  3584. "js": function () {
  3585. "use strict";
  3586. if (tarteaucitron.user.actid === undefined) {
  3587. return;
  3588. }
  3589. window.trackcmp_email = '';
  3590. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  3591. }
  3592. };
  3593. // tawk.to
  3594. tarteaucitron.services.tawkto = {
  3595. "key": "tawkto",
  3596. "type": "support",
  3597. "name": "Tawk.to chat",
  3598. "uri": "https://www.tawk.to/data-protection/",
  3599. "needConsent": true,
  3600. "cookies": [],
  3601. "js": function () {
  3602. "use strict";
  3603. if (tarteaucitron.user.tawktoId === undefined) {
  3604. return;
  3605. }
  3606. window.Tawk_API=window.Tawk_API||{};
  3607. window.Tawk_LoadStart=new Date();
  3608. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  3609. }
  3610. };
  3611. // getquanty
  3612. tarteaucitron.services.getquanty = {
  3613. "key": "getquanty",
  3614. "type": "analytic",
  3615. "name": "GetQuanty",
  3616. "uri": "https://www.getquanty.com/mentions-legales/",
  3617. "needConsent": true,
  3618. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  3619. "js": function () {
  3620. "use strict";
  3621. if (tarteaucitron.user.getguanty === undefined) {
  3622. return;
  3623. }
  3624. if (tarteaucitron.user.getquantyAlreadyLoaded !== undefined) {
  3625. return;
  3626. }
  3627. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&consent=1');
  3628. },
  3629. "fallback": function () {
  3630. "use strict";
  3631. if (tarteaucitron.user.getguanty === undefined) {
  3632. return;
  3633. }
  3634. tarteaucitron.user.getquantyAlreadyLoaded = true;
  3635. tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&notrack=1');
  3636. }
  3637. };
  3638. // emolytics
  3639. tarteaucitron.services.emolytics = {
  3640. "key": "emolytics",
  3641. "type": "analytic",
  3642. "name": "Emolytics",
  3643. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  3644. "needConsent": true,
  3645. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  3646. "js": function () {
  3647. "use strict";
  3648. if (tarteaucitron.user.emolyticsID === undefined) {
  3649. return;
  3650. }
  3651. var scriptEmolytics = document.createElement('script');
  3652. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  3653. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  3654. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  3655. }
  3656. };
  3657. // youtubeapi
  3658. tarteaucitron.services.youtubeapi = {
  3659. "key": "youtubeapi",
  3660. "type": "video",
  3661. "name": "Youtube (Js API)",
  3662. "uri": "https://policies.google.com/privacy",
  3663. "needConsent": true,
  3664. "cookies": [],
  3665. "js": function () {
  3666. "use strict";
  3667. tarteaucitron.addScript('https://www.youtube.com/player_api');
  3668. }
  3669. };
  3670. // Facil'ITI
  3671. tarteaucitron.services.faciliti = {
  3672. "key": "faciliti",
  3673. "type": "other",
  3674. "name": "Facil'ITI",
  3675. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  3676. "needConsent": true,
  3677. "cookies": ['FACIL_ITI_LS'],
  3678. "js": function () {
  3679. "use strict";
  3680. if (tarteaucitron.user.facilitiID === undefined) {
  3681. return;
  3682. }
  3683. (function(w, d, s, f) {
  3684. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  3685. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  3686. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  3687. }(window, document, 'script', 'FACIL_ITI'));
  3688. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  3689. }
  3690. };
  3691. // userlike
  3692. tarteaucitron.services.userlike = {
  3693. "key": "userlike",
  3694. "type": "support",
  3695. "name": "Userlike",
  3696. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  3697. "needConsent": true,
  3698. "cookies": ['uslk_s', 'uslk_e'],
  3699. "js": function () {
  3700. "use strict";
  3701. if (tarteaucitron.user.userlikeKey === undefined) {
  3702. return;
  3703. }
  3704. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  3705. }
  3706. };
  3707. // adobeanalytics
  3708. tarteaucitron.services.adobeanalytics = {
  3709. "key": "adobeanalytics",
  3710. "type": "analytic",
  3711. "name": "Adobe Analytics",
  3712. "uri": "https://www.adobe.com/privacy/policy.html",
  3713. "needConsent": true,
  3714. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  3715. "js": function () {
  3716. "use strict";
  3717. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  3718. return;
  3719. }
  3720. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  3721. }
  3722. };
  3723. // woopra customer journey analytics
  3724. tarteaucitron.services.woopra = {
  3725. 'key': 'woopra',
  3726. 'type': 'analytic',
  3727. 'name': 'Woopra Customer Journey Analytics',
  3728. 'uri': 'https://www.woopra.com/privacy',
  3729. 'needConsent': true,
  3730. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  3731. 'js': function () {
  3732. 'use strict';
  3733. //var w = tarteaucitron.user.woopraDomain;
  3734. //window[w] = window[w] || [];
  3735. (function(){
  3736. 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)
  3737. })("woopra");
  3738. woopra.config({
  3739. domain: tarteaucitron.user.woopraDomain
  3740. });
  3741. woopra.track();
  3742. }
  3743. };
  3744. // ausha
  3745. tarteaucitron.services.ausha = {
  3746. key: "ausha",
  3747. type: "video",
  3748. name: "Ausha",
  3749. uri: "https://www.ausha.co/protection-personal-data/",
  3750. needConsent: true,
  3751. cookies: [],
  3752. js: function () {
  3753. "use strict";
  3754. tarteaucitron.fallback(['ausha_player'], function (x) {
  3755. var player_height = x.getAttribute('data-height'),
  3756. podcast_id = x.getAttribute('data-podcast-id'),
  3757. player_id = x.getAttribute('data-player-id'),
  3758. playlist = x.getAttribute('data-playlist'),
  3759. color = x.getAttribute('data-color');
  3760. if (podcast_id === undefined) {
  3761. return "";
  3762. }
  3763. var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3';
  3764. if (playlist && playlist.length > 0) src += '&playlist=' + playlist;
  3765. if (color && color.length > 0) src += '&color=' + color.replace('#', '%23');
  3766. if (player_id && player_id.length > 0) src += '&playerId=' + player_id;
  3767. return '<iframe id="' + player_id + '" loading="lazy" width="100%" height="' + player_height + '" scrolling="no" frameborder="no" src="' + src + '"></iframe>';
  3768. });
  3769. tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player');
  3770. },
  3771. fallback: function () {
  3772. "use strict";
  3773. tarteaucitron.fallback(['ausha_player'], function (elem) {
  3774. elem.style.height = elem.getAttribute('data-height') + 'px';
  3775. return tarteaucitron.engage('ausha');
  3776. });
  3777. }
  3778. };