tarteaucitron.services.js 121 KB

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