tarteaucitron.services.js 129 KB

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