tarteaucitron.services.js 117 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316
  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. params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay");
  569. if (video_id === undefined) {
  570. return "";
  571. }
  572. if (video_width !== undefined) {
  573. frame_width += '"' + video_width + '" ';
  574. } else {
  575. frame_width += '"" ';
  576. }
  577. if (video_height !== undefined) {
  578. frame_height += '"' + video_height + '" ';
  579. } else {
  580. frame_height += '"" ';
  581. }
  582. video_frame = '<iframe src="//www.dailymotion.com/embed/video/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' frameborder="0" allowfullscreen></iframe>';
  583. return video_frame;
  584. });
  585. },
  586. "fallback": function () {
  587. "use strict";
  588. var id = 'dailymotion';
  589. tarteaucitron.fallback(['dailymotion_player'], function (elem) {
  590. elem.style.width = elem.getAttribute('width') + 'px';
  591. elem.style.height = elem.getAttribute('height') + 'px';
  592. return tarteaucitron.engage(id);
  593. });
  594. }
  595. };
  596. // dating affiliation
  597. tarteaucitron.services.datingaffiliation = {
  598. "key": "datingaffiliation",
  599. "type": "ads",
  600. "name": "Dating Affiliation",
  601. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  602. "needConsent": true,
  603. "cookies": [],
  604. "js": function () {
  605. "use strict";
  606. tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
  607. var comfrom = x.getAttribute("data-comfrom"),
  608. r = x.getAttribute("data-r"),
  609. p = x.getAttribute("data-p"),
  610. cf0 = x.getAttribute("data-cf0"),
  611. langue = x.getAttribute("data-langue"),
  612. forward_affiliate = x.getAttribute("data-forwardAffiliate"),
  613. cf2 = x.getAttribute("data-cf2"),
  614. cfsa2 = x.getAttribute("data-cfsa2"),
  615. width = x.getAttribute("width"),
  616. height = x.getAttribute("height"),
  617. url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
  618. 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>';
  619. });
  620. },
  621. "fallback": function () {
  622. "use strict";
  623. var id = 'datingaffiliation';
  624. tarteaucitron.fallback(['datingaffiliation-canvas'], function (elem) {
  625. elem.style.width = elem.getAttribute('width') + 'px';
  626. elem.style.height = elem.getAttribute('height') + 'px';
  627. return tarteaucitron.engage(id);
  628. });
  629. }
  630. };
  631. // dating affiliation popup
  632. tarteaucitron.services.datingaffiliationpopup = {
  633. "key": "datingaffiliationpopup",
  634. "type": "ads",
  635. "name": "Dating Affiliation (Pop Up)",
  636. "uri": "http://www.dating-affiliation.com/conditions-generales.php",
  637. "needConsent": true,
  638. "cookies": ['__utma', '__utmb', '__utmc', '__utmt_Tools', '__utmv', '__utmz', '_ga', '_gat', '_gat_UA-65072040-17', '__da-pu-xflirt-ID-pc-o169'],
  639. "js": function () {
  640. "use strict";
  641. var uniqIds = [],
  642. i,
  643. uri;
  644. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], function (x) {
  645. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  646. uniqIds.push(uniqId);
  647. 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>';
  648. });
  649. for (i = 0; i < uniqIds.length; i += 1) {
  650. uri = 'http://www.promotools.biz/da/popunder/script.php?';
  651. uri += 'comfrom=' + document.getElementById(uniqIds[i]).getAttribute('comfrom') + '&';
  652. uri += 'promo=' + document.getElementById(uniqIds[i]).getAttribute('promo') + '&';
  653. uri += 'product_id=' + document.getElementById(uniqIds[i]).getAttribute('productid') + '&';
  654. uri += 'submitconfig=' + document.getElementById(uniqIds[i]).getAttribute('submitconfig') + '&';
  655. uri += 'ur=' + document.getElementById(uniqIds[i]).getAttribute('ur') + '&';
  656. uri += 'brand=' + document.getElementById(uniqIds[i]).getAttribute('brand') + '&';
  657. uri += 'lang=' + document.getElementById(uniqIds[i]).getAttribute('lang') + '&';
  658. uri += 'cf0=' + document.getElementById(uniqIds[i]).getAttribute('cf0') + '&';
  659. uri += 'cf2=' + document.getElementById(uniqIds[i]).getAttribute('cf2') + '&';
  660. uri += 'subid1=' + document.getElementById(uniqIds[i]).getAttribute('subid1') + '&';
  661. uri += 'cfsa2=' + document.getElementById(uniqIds[i]).getAttribute('cfsa2') + '&';
  662. uri += 'subid2=' + document.getElementById(uniqIds[i]).getAttribute('subid2') + '&';
  663. uri += 'nicheId=' + document.getElementById(uniqIds[i]).getAttribute('nicheid') + '&';
  664. uri += 'degreId=' + document.getElementById(uniqIds[i]).getAttribute('degreid') + '&';
  665. uri += 'bt=' + document.getElementById(uniqIds[i]).getAttribute('bt') + '&';
  666. uri += 'vis=' + document.getElementById(uniqIds[i]).getAttribute('vis') + '&';
  667. uri += 'hid=' + document.getElementById(uniqIds[i]).getAttribute('hid') + '&';
  668. uri += 'snd=' + document.getElementById(uniqIds[i]).getAttribute('snd') + '&';
  669. uri += 'aabd=' + document.getElementById(uniqIds[i]).getAttribute('aabd') + '&';
  670. uri += 'aabs=' + document.getElementById(uniqIds[i]).getAttribute('aabs');
  671. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  672. }
  673. },
  674. "fallback": function () {
  675. "use strict";
  676. var id = 'datingaffiliationpopup';
  677. tarteaucitron.fallback(['datingaffiliationpopup-canvas'], tarteaucitron.engage(id));
  678. }
  679. };
  680. // leadforensics
  681. tarteaucitron.services.leadforensics = {
  682. "key": "leadforensics",
  683. "type": "analytic",
  684. "name": "LeadForensics",
  685. "uri": "https://www.leadforensics.com/privacy-policy/",
  686. "needConsent": true,
  687. "cookies": ['trackalyzer'],
  688. "js": function () {
  689. "use strict";
  690. if (tarteaucitron.user.leadforensicsSf14gv === undefined ||
  691. tarteaucitron.user.leadforensicsIidentifier === undefined) {
  692. return;
  693. }
  694. window.sf14gv = tarteaucitron.user.leadforensicsSf14gv;
  695. (function() {
  696. var sf14g = document.createElement('script'); sf14g.type = 'text/javascript'; sf14g.async = true;
  697. sf14g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 't.sf14g.com/sf14g.js';
  698. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sf14g, s);
  699. })();
  700. tarteaucitron.addScript('//secure.leadforensics.com/js/' + tarteaucitron.user.leadforensicsIidentifier + '.js');
  701. }
  702. };
  703. // disqus
  704. tarteaucitron.services.disqus = {
  705. "key": "disqus",
  706. "type": "comment",
  707. "name": "Disqus",
  708. "uri": "https://help.disqus.com/customer/portal/articles/466259-privacy-policy",
  709. "needConsent": true,
  710. "cookies": [],
  711. "js": function () {
  712. "use strict";
  713. if (tarteaucitron.user.disqusShortname === undefined) {
  714. return;
  715. }
  716. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/embed.js');
  717. tarteaucitron.addScript('//' + tarteaucitron.user.disqusShortname + '.disqus.com/count.js');
  718. },
  719. "fallback": function () {
  720. "use strict";
  721. var id = 'disqus';
  722. if (document.getElementById('disqus_thread')) {
  723. document.getElementById('disqus_thread').innerHTML = tarteaucitron.engage(id);
  724. }
  725. }
  726. };
  727. // ekomi
  728. tarteaucitron.services.ekomi = {
  729. "key": "ekomi",
  730. "type": "social",
  731. "name": "eKomi",
  732. "uri": "http://www.ekomi-us.com/us/privacy/",
  733. "needConsent": true,
  734. "cookies": [],
  735. "js": function () {
  736. "use strict";
  737. if (tarteaucitron.user.ekomiCertId === undefined) {
  738. return;
  739. }
  740. window.eKomiIntegrationConfig = [
  741. {certId: tarteaucitron.user.ekomiCertId}
  742. ];
  743. tarteaucitron.addScript('//connect.ekomi.de/integration_1410173009/' + tarteaucitron.user.ekomiCertId + '.js');
  744. }
  745. };
  746. // etracker
  747. tarteaucitron.services.etracker = {
  748. "key": "etracker",
  749. "type": "analytic",
  750. "name": "eTracker",
  751. "uri": "https://www.etracker.com/en/data-protection.html",
  752. "needConsent": true,
  753. "cookies": [],
  754. "js": function () {
  755. "use strict";
  756. if (tarteaucitron.user.etracker === undefined) {
  757. return;
  758. }
  759. tarteaucitron.addScript('//static.etracker.com/code/e.js', '_etLoader', function () {}, true, "data-secure-code", tarteaucitron.user.etracker);
  760. }
  761. };
  762. // facebook
  763. tarteaucitron.services.facebook = {
  764. "key": "facebook",
  765. "type": "social",
  766. "name": "Facebook",
  767. "uri": "https://www.facebook.com/policies/cookies/",
  768. "needConsent": true,
  769. "cookies": [],
  770. "js": function () {
  771. "use strict";
  772. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], '');
  773. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  774. if (tarteaucitron.isAjax === true) {
  775. if (typeof FB !== "undefined") {
  776. FB.XFBML.parse();
  777. }
  778. }
  779. },
  780. "fallback": function () {
  781. "use strict";
  782. var id = 'facebook';
  783. tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-send', 'fb-share-button', 'fb-like', 'fb-video'], tarteaucitron.engage(id));
  784. }
  785. };
  786. // facebooklikebox
  787. tarteaucitron.services.facebooklikebox = {
  788. "key": "facebooklikebox",
  789. "type": "social",
  790. "name": "Facebook (like box)",
  791. "uri": "https://www.facebook.com/policies/cookies/",
  792. "needConsent": true,
  793. "cookies": [],
  794. "js": function () {
  795. "use strict";
  796. tarteaucitron.fallback(['fb-like-box', 'fb-page'], '');
  797. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.3', 'facebook-jssdk');
  798. if (tarteaucitron.isAjax === true) {
  799. if (typeof FB !== "undefined") {
  800. FB.XFBML.parse();
  801. }
  802. }
  803. },
  804. "fallback": function () {
  805. "use strict";
  806. var id = 'facebooklikebox';
  807. tarteaucitron.fallback(['fb-like-box', 'fb-page'], tarteaucitron.engage(id));
  808. }
  809. };
  810. // facebookcomment
  811. tarteaucitron.services.facebookcomment = {
  812. "key": "facebookcomment",
  813. "type": "comment",
  814. "name": "Facebook (commentaire)",
  815. "uri": "https://www.facebook.com/policies/cookies/",
  816. "needConsent": true,
  817. "cookies": [],
  818. "js": function () {
  819. "use strict";
  820. tarteaucitron.fallback(['fb-comments'], '');
  821. tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
  822. if (tarteaucitron.isAjax === true) {
  823. if (typeof FB !== "undefined") {
  824. FB.XFBML.parse();
  825. }
  826. }
  827. },
  828. "fallback": function () {
  829. "use strict";
  830. var id = 'facebookcomment';
  831. tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
  832. }
  833. };
  834. // ferank
  835. tarteaucitron.services.ferank = {
  836. "key": "ferank",
  837. "type": "analytic",
  838. "name": "FERank",
  839. "uri": "https://www.ferank.fr/respect-vie-privee/#mesureaudience",
  840. "needConsent": false,
  841. "cookies": [],
  842. "js": function () {
  843. "use strict";
  844. tarteaucitron.addScript('//static.ferank.fr/pixel.js', '', function () {
  845. if (typeof tarteaucitron.user.ferankMore === 'function') {
  846. tarteaucitron.user.ferankMore();
  847. }
  848. });
  849. }
  850. };
  851. // simpleanalytics
  852. tarteaucitron.services.simpleanalytics = {
  853. "key": "simpleanalytics",
  854. "type": "analytic",
  855. "name": "Simple Analytics",
  856. "uri": "https://docs.simpleanalytics.com/what-we-collect",
  857. "needConsent": false,
  858. "cookies": [],
  859. "js": function () {
  860. "use strict";
  861. tarteaucitron.addScript('https://scripts.simpleanalyticscdn.com/latest.js');
  862. }
  863. };
  864. // ferank pub
  865. tarteaucitron.services.ferankpub = {
  866. "key": "ferankpub",
  867. "type": "ads",
  868. "name": "FERank (pub)",
  869. "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire",
  870. "needConsent": false,
  871. "cookies": [],
  872. "js": function () {
  873. "use strict";
  874. tarteaucitron.addScript('//static.ferank.fr/publicite.async.js');
  875. if (tarteaucitron.isAjax === true) {
  876. if (typeof ferankReady === 'function') {
  877. ferankReady();
  878. }
  879. }
  880. },
  881. "fallback": function () {
  882. "use strict";
  883. var id = 'ferankpub';
  884. tarteaucitron.fallback(['ferank-publicite'], tarteaucitron.engage(id));
  885. }
  886. };
  887. // get+
  888. tarteaucitron.services.getplus = {
  889. "key": "getplus",
  890. "type": "analytic",
  891. "name": "Get+",
  892. "uri": "http://www.getplus.fr/Conditions-generales-de-vente_a226.html",
  893. "needConsent": true,
  894. "cookies": ['_first_pageview', '_jsuid', 'no_trackyy_' + tarteaucitron.user.getplusId, '_eventqueue'],
  895. "js": function () {
  896. "use strict";
  897. if (tarteaucitron.user.getplusId === undefined) {
  898. return;
  899. }
  900. window.webleads_site_ids = window.webleads_site_ids || [];
  901. window.webleads_site_ids.push(tarteaucitron.user.getplusId);
  902. tarteaucitron.addScript('//stats.webleads-tracker.com/js');
  903. }
  904. };
  905. // google+
  906. tarteaucitron.services.gplus = {
  907. "key": "gplus",
  908. "type": "social",
  909. "name": "Google+",
  910. "uri": "https://policies.google.com/privacy",
  911. "needConsent": true,
  912. "cookies": [],
  913. "js": function () {
  914. "use strict";
  915. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  916. },
  917. "fallback": function () {
  918. "use strict";
  919. var id = 'gplus';
  920. tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id));
  921. }
  922. };
  923. // google+ badge
  924. tarteaucitron.services.gplusbadge = {
  925. "key": "gplusbadge",
  926. "type": "social",
  927. "name": "Google+ (badge)",
  928. "uri": "https://policies.google.com/privacy",
  929. "needConsent": true,
  930. "cookies": [],
  931. "js": function () {
  932. "use strict";
  933. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  934. },
  935. "fallback": function () {
  936. "use strict";
  937. var id = 'gplusbadge';
  938. tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id));
  939. }
  940. };
  941. // google adsense
  942. tarteaucitron.services.adsense = {
  943. "key": "adsense",
  944. "type": "ads",
  945. "name": "Google Adsense",
  946. "uri": "https://adssettings.google.com/",
  947. "needConsent": true,
  948. "cookies": [],
  949. "js": function () {
  950. "use strict";
  951. tarteaucitron.addScript('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
  952. },
  953. "fallback": function () {
  954. "use strict";
  955. var id = 'adsense';
  956. tarteaucitron.fallback(['adsbygoogle'], tarteaucitron.engage(id));
  957. }
  958. };
  959. // google partners badge
  960. tarteaucitron.services.googlepartners = {
  961. "key": "googlepartners",
  962. "type": "ads",
  963. "name": "Google Partners Badge",
  964. "uri": "https://adssettings.google.com/",
  965. "needConsent": true,
  966. "cookies": [],
  967. "js": function () {
  968. "use strict";
  969. tarteaucitron.addScript('https://apis.google.com/js/platform.js');
  970. },
  971. "fallback": function () {
  972. "use strict";
  973. var id = 'googlepartners';
  974. tarteaucitron.fallback(['g-partnersbadge'], tarteaucitron.engage(id));
  975. }
  976. };
  977. // google adsense search (form)
  978. tarteaucitron.services.adsensesearchform = {
  979. "key": "adsensesearchform",
  980. "type": "ads",
  981. "name": "Google Adsense Search (form)",
  982. "uri": "https://adssettings.google.com/",
  983. "needConsent": true,
  984. "cookies": [],
  985. "js": function () {
  986. "use strict";
  987. tarteaucitron.addScript('//www.google.com/coop/cse/brand?form=cse-search-box&lang=' + tarteaucitron.getLanguage());
  988. }
  989. };
  990. // google adsense search (result)
  991. tarteaucitron.services.adsensesearchresult = {
  992. "key": "adsensesearchresult",
  993. "type": "ads",
  994. "name": "Google Adsense Search (result)",
  995. "uri": "https://adssettings.google.com/",
  996. "needConsent": true,
  997. "cookies": [],
  998. "js": function () {
  999. "use strict";
  1000. if (tarteaucitron.user.adsensesearchresultCx === undefined) {
  1001. return;
  1002. }
  1003. tarteaucitron.addScript('//www.google.com/cse/cse.js?cx=' + tarteaucitron.user.adsensesearchresultCx);
  1004. },
  1005. "fallback": function () {
  1006. "use strict";
  1007. var id = 'adsensesearchresult';
  1008. if (document.getElementById('gcse_searchresults')) {
  1009. document.getElementById('gcse_searchresults').innerHTML = tarteaucitron.engage(id);
  1010. }
  1011. }
  1012. };
  1013. // googleadwordsconversion
  1014. tarteaucitron.services.googleadwordsconversion = {
  1015. "key": "googleadwordsconversion",
  1016. "type": "ads",
  1017. "name": "Google Adwords (conversion)",
  1018. "uri": "https://www.google.com/settings/ads",
  1019. "needConsent": true,
  1020. "cookies": [],
  1021. "js": function () {
  1022. "use strict";
  1023. if (tarteaucitron.user.adwordsconversionId === undefined) {
  1024. return;
  1025. }
  1026. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1027. window.google_trackConversion({
  1028. google_conversion_id: tarteaucitron.user.adwordsconversionId,
  1029. google_conversion_label: tarteaucitron.user.adwordsconversionLabel,
  1030. google_conversion_language: tarteaucitron.user.adwordsconversionLanguage,
  1031. google_conversion_format: tarteaucitron.user.adwordsconversionFormat,
  1032. google_conversion_color: tarteaucitron.user.adwordsconversionColor,
  1033. google_conversion_value: tarteaucitron.user.adwordsconversionValue,
  1034. google_conversion_currency: tarteaucitron.user.adwordsconversionCurrency,
  1035. google_custom_params: {
  1036. parameter1: tarteaucitron.user.adwordsconversionCustom1,
  1037. parameter2: tarteaucitron.user.adwordsconversionCustom2
  1038. }
  1039. });
  1040. });
  1041. }
  1042. };
  1043. // googleadwordsremarketing
  1044. tarteaucitron.services.googleadwordsremarketing = {
  1045. "key": "googleadwordsremarketing",
  1046. "type": "ads",
  1047. "name": "Google Adwords (remarketing)",
  1048. "uri": "https://www.google.com/settings/ads",
  1049. "needConsent": true,
  1050. "cookies": [],
  1051. "js": function () {
  1052. "use strict";
  1053. if (tarteaucitron.user.adwordsremarketingId === undefined) {
  1054. return;
  1055. }
  1056. tarteaucitron.addScript('//www.googleadservices.com/pagead/conversion_async.js', '', function () {
  1057. window.google_trackConversion({
  1058. google_conversion_id: tarteaucitron.user.adwordsremarketingId,
  1059. google_remarketing_only: true
  1060. });
  1061. });
  1062. }
  1063. };
  1064. // google analytics (old)
  1065. tarteaucitron.services.gajs = {
  1066. "key": "gajs",
  1067. "type": "analytic",
  1068. "name": "Google Analytics (ga.js)",
  1069. "uri": "https://support.google.com/analytics/answer/6004245",
  1070. "needConsent": true,
  1071. "cookies": (function () {
  1072. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  1073. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gajsUa;
  1074. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  1075. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.gajsUa.replace(/G-/g, '')];
  1076. })(),
  1077. "js": function () {
  1078. "use strict";
  1079. window._gaq = window._gaq || [];
  1080. window._gaq.push(['_setAccount', tarteaucitron.user.gajsUa]);
  1081. if (tarteaucitron.user.gajsAnonymizeIp) {
  1082. window._gaq.push (['_gat._anonymizeIp']);
  1083. }
  1084. if (tarteaucitron.user.gajsPageView) {
  1085. window._gaq.push(['_trackPageview, ' + tarteaucitron.user.gajsPageView]);
  1086. } else {
  1087. window._gaq.push(['_trackPageview']);
  1088. }
  1089. tarteaucitron.addScript('//www.google-analytics.com/ga.js', '', function () {
  1090. if (typeof tarteaucitron.user.gajsMore === 'function') {
  1091. tarteaucitron.user.gajsMore();
  1092. }
  1093. });
  1094. }
  1095. };
  1096. // google analytics
  1097. tarteaucitron.services.analytics = {
  1098. "key": "analytics",
  1099. "type": "analytic",
  1100. "name": "Google Analytics (universal)",
  1101. "uri": "https://support.google.com/analytics/answer/6004245",
  1102. "needConsent": true,
  1103. "cookies": (function () {
  1104. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  1105. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.analyticsUa;
  1106. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  1107. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.analyticsUa.replace(/G-/g, '')];
  1108. })(),
  1109. "js": function () {
  1110. "use strict";
  1111. window.GoogleAnalyticsObject = 'ga';
  1112. window.ga = window.ga || function () {
  1113. window.ga.q = window.ga.q || [];
  1114. window.ga.q.push(arguments);
  1115. };
  1116. window.ga.l = new Date();
  1117. tarteaucitron.addScript('https://www.google-analytics.com/analytics.js', '', function () {
  1118. var uaCreate = {'cookieExpires': 34128000};
  1119. tarteaucitron.extend(uaCreate, tarteaucitron.user.analyticsUaCreate || {});
  1120. ga('create', tarteaucitron.user.analyticsUa, uaCreate);
  1121. if (tarteaucitron.user.analyticsAnonymizeIp) {
  1122. ga('set', 'anonymizeIp', true);
  1123. }
  1124. if (typeof tarteaucitron.user.analyticsPrepare === 'function') {
  1125. tarteaucitron.user.analyticsPrepare();
  1126. }
  1127. if (tarteaucitron.user.analyticsPageView) {
  1128. ga('send', 'pageview', tarteaucitron.user.analyticsPageView);
  1129. } else {
  1130. ga('send', 'pageview');
  1131. }
  1132. if (typeof tarteaucitron.user.analyticsMore === 'function') {
  1133. tarteaucitron.user.analyticsMore();
  1134. }
  1135. });
  1136. }
  1137. };
  1138. // google analytics
  1139. tarteaucitron.services.gtag = {
  1140. "key": "gtag",
  1141. "type": "analytic",
  1142. "name": "Google Analytics (gtag.js)",
  1143. "uri": "https://support.google.com/analytics/answer/6004245",
  1144. "needConsent": true,
  1145. "cookies": (function () {
  1146. // Add _gat_gtag_UA_XXXXXXX_XX cookie to cookies array
  1147. var gatGtagUaCookie = '_gat_gtag_' + tarteaucitron.user.gtagUa;
  1148. gatGtagUaCookie = gatGtagUaCookie.replace(/-/g, '_');
  1149. return ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', gatGtagUaCookie, '_ga_' + tarteaucitron.user.gtagUa.replace(/G-/g, '')];
  1150. })(),
  1151. "js": function () {
  1152. "use strict";
  1153. window.dataLayer = window.dataLayer || [];
  1154. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
  1155. window.gtag = function gtag(){dataLayer.push(arguments);}
  1156. gtag('js', new Date());
  1157. gtag('config', tarteaucitron.user.gtagUa);
  1158. if (typeof tarteaucitron.user.gtagMore === 'function') {
  1159. tarteaucitron.user.gtagMore();
  1160. }
  1161. });
  1162. }
  1163. };
  1164. // google maps
  1165. tarteaucitron.services.googlemaps = {
  1166. "key": "googlemaps",
  1167. "type": "api",
  1168. "name": "Google Maps",
  1169. "uri": "https://adssettings.google.com/",
  1170. "needConsent": true,
  1171. "cookies": [],
  1172. "js": function () {
  1173. "use strict";
  1174. var mapOptions,
  1175. map,
  1176. uniqIds = [],
  1177. i;
  1178. if (tarteaucitron.user.mapscallback === undefined) {
  1179. tarteaucitron.user.mapscallback = 'tac_googlemaps_callback';
  1180. }
  1181. // Add Google Maps libraries if any (https://developers.google.com/maps/documentation/javascript/libraries)
  1182. var googleMapsLibraries = '';
  1183. if (tarteaucitron.user.googlemapsLibraries) {
  1184. googleMapsLibraries = '&libraries=' + tarteaucitron.user.googlemapsLibraries;
  1185. }
  1186. tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&key=' + tarteaucitron.user.googlemapsKey + '&callback='+tarteaucitron.user.mapscallback + googleMapsLibraries);
  1187. window.tac_googlemaps_callback = function () {
  1188. tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
  1189. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1190. uniqIds.push(uniqId);
  1191. 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>';
  1192. });
  1193. for (i = 0; i < uniqIds.length; i += 1) {
  1194. mapOptions = {
  1195. zoom: parseInt(document.getElementById(uniqIds[i]).getAttribute('zoom'), 10),
  1196. center: new google.maps.LatLng(parseFloat(document.getElementById(uniqIds[i]).getAttribute('latitude'), 10), parseFloat(document.getElementById(uniqIds[i]).getAttribute('longitude'), 10))
  1197. };
  1198. map = new google.maps.Map(document.getElementById(uniqIds[i]), mapOptions);
  1199. 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});
  1200. }
  1201. };
  1202. },
  1203. "fallback": function () {
  1204. "use strict";
  1205. var id = 'googlemaps';
  1206. tarteaucitron.fallback(['googlemaps-canvas'], tarteaucitron.engage(id));
  1207. }
  1208. };
  1209. // googlemaps search
  1210. tarteaucitron.services.googlemapssearch = {
  1211. "key": "googlemapssearch",
  1212. "type": "api",
  1213. "name": "Google Maps Search API",
  1214. "uri": "https://adssettings.google.com/",
  1215. "needConsent": true,
  1216. "cookies": ['nid'],
  1217. "js": function () {
  1218. "use strict";
  1219. tarteaucitron.fallback(['googlemapssearch'], function (x) {
  1220. var width = x.getAttribute("width"),
  1221. height = x.getAttribute("height"),
  1222. // url = x.getAttribute("data-url");
  1223. query = escape(x.getAttribute("data-search")),
  1224. key = x.getAttribute("data-api-key");
  1225. // return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1226. 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> '
  1227. });
  1228. },
  1229. "fallback": function () {
  1230. "use strict";
  1231. var id = 'googlemapssearch';
  1232. tarteaucitron.fallback(['googlemapssearch'], function (elem) {
  1233. elem.style.width = elem.getAttribute('width') + 'px';
  1234. elem.style.height = elem.getAttribute('height') + 'px';
  1235. return tarteaucitron.engage(id);
  1236. });
  1237. }
  1238. };
  1239. // googlemaps embed iframe
  1240. tarteaucitron.services.googlemapsembed = {
  1241. "key": "googlemapsembed",
  1242. "type": "api",
  1243. "name": "Google Maps Embed",
  1244. "uri": "https://adssettings.google.com/",
  1245. "needConsent": true,
  1246. "cookies": ['apisid', 'hsid', 'nid', 'sapisid', 'sid', 'sidcc', 'ssid', '1p_jar'],
  1247. "js": function () {
  1248. "use strict";
  1249. tarteaucitron.fallback(['googlemapsembed'], function (x) {
  1250. var width = tarteaucitron.getElemWidth(x),
  1251. height = tarteaucitron.getElemHeight(x),
  1252. url = x.getAttribute("data-url");
  1253. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1254. });
  1255. },
  1256. "fallback": function () {
  1257. "use strict";
  1258. var id = 'googlemapsembed';
  1259. tarteaucitron.fallback(['googlemapsembed'], function (elem) {
  1260. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1261. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1262. return tarteaucitron.engage(id);
  1263. });
  1264. }
  1265. };
  1266. // google tag manager
  1267. tarteaucitron.services.googletagmanager = {
  1268. "key": "googletagmanager",
  1269. "type": "api",
  1270. "name": "Google Tag Manager",
  1271. "uri": "https://adssettings.google.com/",
  1272. "needConsent": true,
  1273. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1274. "js": function () {
  1275. "use strict";
  1276. if (tarteaucitron.user.googletagmanagerId === undefined) {
  1277. return;
  1278. }
  1279. window.dataLayer = window.dataLayer || [];
  1280. window.dataLayer.push({
  1281. 'gtm.start': new Date().getTime(),
  1282. event: 'gtm.js'
  1283. });
  1284. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + tarteaucitron.user.googletagmanagerId);
  1285. }
  1286. };
  1287. // google tag manager multiple
  1288. tarteaucitron.services.multiplegoogletagmanager = {
  1289. "key": "multiplegoogletagmanager",
  1290. "type": "api",
  1291. "name": "Google Tag Manager",
  1292. "uri": "https://adssettings.google.com/",
  1293. "needConsent": true,
  1294. "cookies": ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'],
  1295. "js": function () {
  1296. "use strict";
  1297. if (tarteaucitron.user.multiplegoogletagmanagerId === undefined) {
  1298. return;
  1299. }
  1300. window.dataLayer = window.dataLayer || [];
  1301. window.dataLayer.push({
  1302. 'gtm.start': new Date().getTime(),
  1303. event: 'gtm.js'
  1304. });
  1305. tarteaucitron.user.multiplegoogletagmanagerId.forEach(function (id) {
  1306. tarteaucitron.addScript('https://www.googletagmanager.com/gtm.js?id=' + id);
  1307. });
  1308. }
  1309. };
  1310. // google webfonts
  1311. tarteaucitron.services.googlefonts = {
  1312. "key": "googlefonts",
  1313. "type": "api",
  1314. "name": "Google Webfonts",
  1315. "uri": "https://www.google.com/intl/de/policies/privacy/",
  1316. "needConsent": true,
  1317. "cookies": [],
  1318. "js": function () {
  1319. "use strict";
  1320. if (tarteaucitron.user.googleFonts === undefined) {
  1321. return;
  1322. }
  1323. tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
  1324. WebFont.load({
  1325. google: {
  1326. families: tarteaucitron.user.googleFonts
  1327. }
  1328. });
  1329. });
  1330. }
  1331. };
  1332. // hubspot
  1333. tarteaucitron.services.hubspot = {
  1334. "key": "hubspot",
  1335. "type": "analytic",
  1336. "name": "Hubspot",
  1337. "uri": "https://legal.hubspot.com/privacy-policy",
  1338. "needConsent": true,
  1339. "cookies": ['hubspotutk', 'fr', '__hstc', '__hssrc', '__hssc', '__cfduid'],
  1340. "js": function () {
  1341. "use strict";
  1342. tarteaucitron.addScript('//js.hs-scripts.com/' + tarteaucitron.user.hubspotId + '.js', 'hs-script-loader');
  1343. }
  1344. };
  1345. // jsapi
  1346. tarteaucitron.services.jsapi = {
  1347. "key": "jsapi",
  1348. "type": "api",
  1349. "name": "Google jsapi",
  1350. "uri": "https://policies.google.com/privacy",
  1351. "needConsent": true,
  1352. "cookies": [],
  1353. "js": function () {
  1354. "use strict";
  1355. tarteaucitron.addScript('//www.google.com/jsapi');
  1356. }
  1357. };
  1358. // twitterwidgetsapi
  1359. tarteaucitron.services.twitterwidgetsapi = {
  1360. "key": "twitterwidgetsapi",
  1361. "type": "api",
  1362. "name": "Twitter Widgets API",
  1363. "uri": "https://support.twitter.com/articles/20170514",
  1364. "needConsent": true,
  1365. "cookies": [],
  1366. "js": function () {
  1367. "use strict";
  1368. tarteaucitron.fallback(['tacTwitterAPI'], '');
  1369. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1370. },
  1371. "fallback": function () {
  1372. "use strict";
  1373. var id = 'twitterwidgetsapi';
  1374. tarteaucitron.fallback(['tacTwitterAPI'], tarteaucitron.engage(id));
  1375. }
  1376. };
  1377. // recaptcha
  1378. tarteaucitron.services.recaptcha = {
  1379. "key": "recaptcha",
  1380. "type": "api",
  1381. "name": "reCAPTCHA",
  1382. "uri": "https://policies.google.com/privacy",
  1383. "needConsent": true,
  1384. "cookies": ['nid'],
  1385. "js": function () {
  1386. "use strict";
  1387. window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
  1388. tarteaucitron.fallback(['g-recaptcha'], '');
  1389. tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
  1390. },
  1391. "fallback": function () {
  1392. "use strict";
  1393. var id = 'recaptcha';
  1394. tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id));
  1395. }
  1396. };
  1397. // linkedin
  1398. tarteaucitron.services.linkedin = {
  1399. "key": "linkedin",
  1400. "type": "social",
  1401. "name": "Linkedin",
  1402. "uri": "https://www.linkedin.com/legal/cookie_policy",
  1403. "needConsent": true,
  1404. "cookies": [],
  1405. "js": function () {
  1406. "use strict";
  1407. tarteaucitron.fallback(['tacLinkedin'], '');
  1408. tarteaucitron.addScript('//platform.linkedin.com/in.js');
  1409. if (tarteaucitron.isAjax === true) {
  1410. if (typeof IN !== "undefined") {
  1411. IN.parse();
  1412. }
  1413. }
  1414. },
  1415. "fallback": function () {
  1416. "use strict";
  1417. var id = 'linkedin';
  1418. tarteaucitron.fallback(['tacLinkedin'], tarteaucitron.engage(id));
  1419. }
  1420. };
  1421. // mautic
  1422. tarteaucitron.services.mautic = {
  1423. "key": "mautic",
  1424. "type": "analytic",
  1425. "name": "Mautic",
  1426. "uri": "https://www.mautic.org/privacy-policy/",
  1427. "needConsent": true,
  1428. "cookies": ['mtc_id', 'mtc_sid'],
  1429. "js": function () {
  1430. "use strict";
  1431. if (tarteaucitron.user.mauticurl === undefined) {
  1432. return;
  1433. }
  1434. window.MauticTrackingObject = 'mt';
  1435. window.mt = window.mt || function () {
  1436. window.mt.q = window.mt.q || [];
  1437. window.mt.q.push(arguments);
  1438. };
  1439. tarteaucitron.addScript(tarteaucitron.user.mauticurl, '', function() {
  1440. mt('send', 'pageview');
  1441. });
  1442. }
  1443. };
  1444. // microsoftcampaignanalytics
  1445. tarteaucitron.services.microsoftcampaignanalytics = {
  1446. "key": "microsoftcampaignanalytics",
  1447. "type": "analytic",
  1448. "name": "Microsoft Campaign Analytics",
  1449. "uri": "https://privacy.microsoft.com/privacystatement/",
  1450. "needConsent": true,
  1451. "cookies": [],
  1452. "js": function () {
  1453. "use strict";
  1454. if (tarteaucitron.user.microsoftcampaignanalyticsUUID === undefined) {
  1455. return;
  1456. }
  1457. tarteaucitron.addScript('//flex.atdmt.com/mstag/site/' + tarteaucitron.user.microsoftcampaignanalyticsUUID + '/mstag.js', 'mstag_tops', function () {
  1458. window.mstag = {loadTag : function () {}, time : (new Date()).getTime()};
  1459. window.mstag.loadTag("analytics", {dedup: "1", domainId: tarteaucitron.user.microsoftcampaignanalyticsdomainId, type: "1", actionid: tarteaucitron.user.microsoftcampaignanalyticsactionId});
  1460. });
  1461. }
  1462. };
  1463. // pinterest
  1464. tarteaucitron.services.pinterest = {
  1465. "key": "pinterest",
  1466. "type": "social",
  1467. "name": "Pinterest",
  1468. "uri": "https://about.pinterest.com/privacy-policy",
  1469. "needConsent": true,
  1470. "cookies": [],
  1471. "js": function () {
  1472. "use strict";
  1473. tarteaucitron.fallback(['tacPinterest'], '');
  1474. tarteaucitron.addScript('//assets.pinterest.com/js/pinit.js');
  1475. },
  1476. "fallback": function () {
  1477. "use strict";
  1478. var id = 'pinterest';
  1479. tarteaucitron.fallback(['tacPinterest'], tarteaucitron.engage(id));
  1480. }
  1481. };
  1482. // prelinker
  1483. tarteaucitron.services.prelinker = {
  1484. "key": "prelinker",
  1485. "type": "ads",
  1486. "name": "Prelinker",
  1487. "uri": "http://www.prelinker.com/index/index/cgu/",
  1488. "needConsent": true,
  1489. "cookies": ['_sp_id.32f5', '_sp_ses.32f5'],
  1490. "js": function () {
  1491. "use strict";
  1492. var uniqIds = [],
  1493. i,
  1494. uri;
  1495. tarteaucitron.fallback(['prelinker-canvas'], function (x) {
  1496. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1497. uniqIds.push(uniqId);
  1498. return '<div id="' + uniqId + '" siteId="' + x.getAttribute('siteId') + '" bannerId="' + x.getAttribute('bannerId') + '" defaultLanguage="' + x.getAttribute('defaultLanguage') + '" tracker="' + x.getAttribute('tracker') + '"></div>';
  1499. });
  1500. for (i = 0; i < uniqIds.length; i += 1) {
  1501. uri = 'http://promo.easy-dating.org/banner/index?';
  1502. uri += 'site_id=' + document.getElementById(uniqIds[i]).getAttribute('siteId') + '&';
  1503. uri += 'banner_id=' + document.getElementById(uniqIds[i]).getAttribute('bannerId') + '&';
  1504. uri += 'default_language=' + document.getElementById(uniqIds[i]).getAttribute('defaultLanguage') + '&';
  1505. uri += 'tr4ck=' + document.getElementById(uniqIds[i]).getAttribute('trackrt');
  1506. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1507. }
  1508. },
  1509. "fallback": function () {
  1510. "use strict";
  1511. var id = 'prelinker';
  1512. tarteaucitron.fallback(['prelinker-canvas'], tarteaucitron.engage(id));
  1513. }
  1514. };
  1515. // prezi
  1516. tarteaucitron.services.prezi = {
  1517. "key": "prezi",
  1518. "type": "video",
  1519. "name": "Prezi",
  1520. "uri": "https://prezi.com/privacy-policy/",
  1521. "needConsent": true,
  1522. "cookies": [],
  1523. "js": function () {
  1524. "use strict";
  1525. tarteaucitron.fallback(['prezi-canvas'], function (x) {
  1526. var id = x.getAttribute("data-id"),
  1527. width = x.getAttribute("width"),
  1528. height = x.getAttribute("height"),
  1529. url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0';
  1530. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1531. });
  1532. },
  1533. "fallback": function () {
  1534. "use strict";
  1535. var id = 'prezi';
  1536. tarteaucitron.fallback(['prezi-canvas'], function (elem) {
  1537. elem.style.width = elem.getAttribute('width') + 'px';
  1538. elem.style.height = elem.getAttribute('height') + 'px';
  1539. return tarteaucitron.engage(id);
  1540. });
  1541. }
  1542. };
  1543. // pubdirecte
  1544. tarteaucitron.services.pubdirecte = {
  1545. "key": "pubdirecte",
  1546. "type": "ads",
  1547. "name": "Pubdirecte",
  1548. "uri": "http://pubdirecte.com/contact.php",
  1549. "needConsent": true,
  1550. "cookies": [],
  1551. "js": function () {
  1552. "use strict";
  1553. var uniqIds = [],
  1554. i,
  1555. uri;
  1556. tarteaucitron.fallback(['pubdirecte-canvas'], function (x) {
  1557. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1558. uniqIds.push(uniqId);
  1559. return '<div id="' + uniqId + '" pid="' + x.getAttribute('pid') + '" ref="' + x.getAttribute('ref') + '"></div>';
  1560. });
  1561. for (i = 0; i < uniqIds.length; i += 1) {
  1562. uri = '//www.pubdirecte.com/script/banniere.php?';
  1563. uri += 'id=' + document.getElementById(uniqIds[i]).getAttribute('pid') + '&';
  1564. uri += 'ref=' + document.getElementById(uniqIds[i]).getAttribute('ref');
  1565. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1566. }
  1567. },
  1568. "fallback": function () {
  1569. "use strict";
  1570. var id = 'pubdirecte';
  1571. tarteaucitron.fallback(['pubdirecte-canvas'], tarteaucitron.engage(id));
  1572. }
  1573. };
  1574. // purechat
  1575. tarteaucitron.services.purechat = {
  1576. "key": "purechat",
  1577. "type": "support",
  1578. "name": "PureChat",
  1579. "uri": "https://www.purechat.com/privacy",
  1580. "needConsent": true,
  1581. "cookies": [],
  1582. "js": function () {
  1583. "use strict";
  1584. if (tarteaucitron.user.purechatId === undefined) {
  1585. return;
  1586. }
  1587. tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
  1588. try {
  1589. window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
  1590. } catch (e) {}
  1591. });
  1592. }
  1593. };
  1594. // rumbletalk
  1595. tarteaucitron.services.rumbletalk = {
  1596. "key": "rumbletalk",
  1597. "type": "social",
  1598. "name": "RumbleTalk",
  1599. "needConsent": true,
  1600. "cookies": ['AWSALB'],
  1601. "js": function () {
  1602. "use strict";
  1603. if (tarteaucitron.user.rumbletalkid === undefined) {
  1604. return;
  1605. }
  1606. tarteaucitron.addScript('https://rumbletalk.com/client/?' + tarteaucitron.user.rumbletalkid);
  1607. tarteaucitron.fallback(['rumbletalk'], function (x) {
  1608. var width = tarteaucitron.getElemWidth(x),
  1609. height = tarteaucitron.getElemHeight(x),
  1610. id = x.getAttribute("data-id");
  1611. return '<div style="height: ' + height + 'px; width: ' + width + 'px;"><div id="' + id + '"></div></div>';
  1612. });
  1613. },
  1614. "fallback": function () {
  1615. "use strict";
  1616. var id = 'rumbletalk';
  1617. tarteaucitron.fallback(['rumbletalk'], function (elem) {
  1618. elem.style.width = tarteaucitron.getElemWidth(elem) + 'px';
  1619. elem.style.height = tarteaucitron.getElemHeight(elem) + 'px';
  1620. return tarteaucitron.engage(id);
  1621. });
  1622. }
  1623. };
  1624. // shareaholic
  1625. tarteaucitron.services.shareaholic = {
  1626. "key": "shareaholic",
  1627. "type": "social",
  1628. "name": "Shareaholic",
  1629. "uri": "https://shareaholic.com/privacy/choices",
  1630. "needConsent": true,
  1631. "cookies": ['__utma', '__utmb', '__utmc', '__utmz', '__utmt_Shareaholic%20Pageviews'],
  1632. "js": function () {
  1633. "use strict";
  1634. if (tarteaucitron.user.shareaholicSiteId === undefined) {
  1635. return;
  1636. }
  1637. tarteaucitron.fallback(['shareaholic-canvas'], '');
  1638. tarteaucitron.addScript('//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js', '', function () {
  1639. try {
  1640. Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
  1641. } catch (e) {}
  1642. });
  1643. },
  1644. "fallback": function () {
  1645. "use strict";
  1646. var id = 'shareaholic';
  1647. tarteaucitron.fallback(['shareaholic-canvas'], tarteaucitron.engage(id));
  1648. }
  1649. };
  1650. // shareasale
  1651. tarteaucitron.services.shareasale = {
  1652. "key": "shareasale",
  1653. "type": "ads",
  1654. "name": "ShareASale",
  1655. "uri": "https://www.shareasale.com/PrivacyPolicy.pdf",
  1656. "needConsent": true,
  1657. "cookies": [],
  1658. "js": function () {
  1659. "use strict";
  1660. var uniqIds = [],
  1661. i,
  1662. uri;
  1663. tarteaucitron.fallback(['shareasale-canvas'], function (x) {
  1664. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1665. uniqIds.push(uniqId);
  1666. 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>';
  1667. });
  1668. for (i = 0; i < uniqIds.length; i += 1) {
  1669. uri = 'https://shareasale.com/sale.cfm?';
  1670. uri += 'amount=' + document.getElementById(uniqIds[i]).getAttribute('amount') + '&';
  1671. uri += 'tracking=' + document.getElementById(uniqIds[i]).getAttribute('tracking') + '&';
  1672. uri += 'transtype=' + document.getElementById(uniqIds[i]).getAttribute('transtype') + '&';
  1673. uri += 'persale=' + document.getElementById(uniqIds[i]).getAttribute('persale') + '&';
  1674. uri += 'perlead=' + document.getElementById(uniqIds[i]).getAttribute('perlead') + '&';
  1675. uri += 'perhit=' + document.getElementById(uniqIds[i]).getAttribute('perhit') + '&';
  1676. uri += 'merchantID=' + document.getElementById(uniqIds[i]).getAttribute('merchantID');
  1677. document.getElementById(uniqIds[i]).innerHTML = '<img src=\'' + uri + '\' width=\'1\' height=\'1\' />';
  1678. }
  1679. },
  1680. "fallback": function () {
  1681. "use strict";
  1682. var id = 'shareasale';
  1683. tarteaucitron.fallback(['shareasale-canvas'], tarteaucitron.engage(id));
  1684. }
  1685. };
  1686. // sharethis
  1687. tarteaucitron.services.sharethis = {
  1688. "key": "sharethis",
  1689. "type": "social",
  1690. "name": "ShareThis",
  1691. "uri": "http://www.sharethis.com/legal/privacy/",
  1692. "needConsent": true,
  1693. "cookies": ['__unam'],
  1694. "js": function () {
  1695. "use strict";
  1696. if (tarteaucitron.user.sharethisPublisher === undefined) {
  1697. return;
  1698. }
  1699. var switchTo5x = true,
  1700. uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
  1701. tarteaucitron.fallback(['tacSharethis'], '');
  1702. tarteaucitron.addScript(uri, '', function () {
  1703. stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
  1704. });
  1705. if (tarteaucitron.isAjax === true) {
  1706. if (typeof stButtons !== "undefined") {
  1707. stButtons.locateElements();
  1708. }
  1709. }
  1710. },
  1711. "fallback": function () {
  1712. "use strict";
  1713. var id = 'sharethis';
  1714. tarteaucitron.fallback(['tacSharethis'], tarteaucitron.engage(id));
  1715. }
  1716. };
  1717. // slideshare
  1718. tarteaucitron.services.slideshare = {
  1719. "key": "slideshare",
  1720. "type": "video",
  1721. "name": "SlideShare",
  1722. "uri": "https://www.linkedin.com/legal/privacy-policy",
  1723. "needConsent": true,
  1724. "cookies": [],
  1725. "js": function () {
  1726. "use strict";
  1727. tarteaucitron.fallback(['slideshare-canvas'], function (x) {
  1728. var id = x.getAttribute("data-id"),
  1729. width = x.getAttribute("width"),
  1730. height = x.getAttribute("height"),
  1731. url = '//www.slideshare.net/slideshow/embed_code/' + id;
  1732. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
  1733. });
  1734. },
  1735. "fallback": function () {
  1736. "use strict";
  1737. var id = 'slideshare';
  1738. tarteaucitron.fallback(['slideshare-canvas'], function (elem) {
  1739. elem.style.width = elem.getAttribute('width') + 'px';
  1740. elem.style.height = elem.getAttribute('height') + 'px';
  1741. return tarteaucitron.engage(id);
  1742. });
  1743. }
  1744. };
  1745. // statcounter
  1746. tarteaucitron.services.statcounter = {
  1747. "key": "statcounter",
  1748. "type": "analytic",
  1749. "name": "StatCounter",
  1750. "uri": "https://fr.statcounter.com/about/legal/#privacy",
  1751. "needConsent": true,
  1752. "cookies": ['sc_is_visitor_unique'],
  1753. "js": function () {
  1754. "use strict";
  1755. var uniqIds = [],
  1756. i,
  1757. uri = '//statcounter.com/counter/counter.js';
  1758. tarteaucitron.fallback(['statcounter-canvas'], function (x) {
  1759. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1760. uniqIds.push(uniqId);
  1761. return '<div id="' + uniqId + '"></div>';
  1762. });
  1763. for (i = 0; i < uniqIds.length; i += 1) {
  1764. tarteaucitron.makeAsync.init(uri, uniqIds[i]);
  1765. }
  1766. },
  1767. "fallback": function () {
  1768. "use strict";
  1769. var id = 'statcounter';
  1770. tarteaucitron.fallback(['statcounter-canvas'], tarteaucitron.engage(id));
  1771. }
  1772. };
  1773. // timelinejs
  1774. tarteaucitron.services.timelinejs = {
  1775. "key": "timelinejs",
  1776. "type": "api",
  1777. "name": "Timeline JS",
  1778. "uri": "http://timeline.knightlab.com/#help",
  1779. "needConsent": true,
  1780. "cookies": [],
  1781. "js": function () {
  1782. "use strict";
  1783. tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
  1784. var spreadsheet_id = x.getAttribute("spreadsheet_id"),
  1785. width = x.getAttribute("width"),
  1786. height = x.getAttribute("height"),
  1787. lang = x.getAttribute("lang_2_letter"),
  1788. font = x.getAttribute("font"),
  1789. map = x.getAttribute("map"),
  1790. start_at_end = x.getAttribute("start_at_end"),
  1791. hash_bookmark = x.getAttribute("hash_bookmark"),
  1792. start_at_slide = x.getAttribute("start_at_slide"),
  1793. start_zoom = x.getAttribute("start_zoom"),
  1794. 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;
  1795. return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" allowtransparency allowfullscreen></iframe>';
  1796. });
  1797. },
  1798. "fallback": function () {
  1799. "use strict";
  1800. var id = 'timelinejs';
  1801. tarteaucitron.fallback(['timelinejs-canvas'], function (elem) {
  1802. elem.style.width = elem.getAttribute('width') + 'px';
  1803. elem.style.height = elem.getAttribute('height') + 'px';
  1804. return tarteaucitron.engage(id);
  1805. });
  1806. }
  1807. };
  1808. // tagcommander
  1809. tarteaucitron.services.tagcommander = {
  1810. "key": "tagcommander",
  1811. "type": "api",
  1812. "name": "TagCommander",
  1813. "uri": "https://www.commandersact.com/en/privacy/",
  1814. "needConsent": true,
  1815. "cookies": [],
  1816. "js": function () {
  1817. "use strict";
  1818. if (tarteaucitron.user.tagcommanderid === undefined) {
  1819. return;
  1820. }
  1821. tarteaucitron.addScript('https://cdn.tagcommander.com/' + tarteaucitron.user.tagcommanderid + '.js');
  1822. }
  1823. };
  1824. // typekit
  1825. tarteaucitron.services.typekit = {
  1826. "key": "typekit",
  1827. "type": "api",
  1828. "name": "Typekit (adobe)",
  1829. "uri": "https://www.adobe.com/privacy.html",
  1830. "needConsent": true,
  1831. "cookies": [],
  1832. "js": function () {
  1833. "use strict";
  1834. if (tarteaucitron.user.typekitId === undefined) {
  1835. return;
  1836. }
  1837. tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
  1838. try {
  1839. Typekit.load();
  1840. } catch (e) {}
  1841. });
  1842. }
  1843. };
  1844. // twenga
  1845. tarteaucitron.services.twenga = {
  1846. "key": "twenga",
  1847. "type": "ads",
  1848. "name": "Twenga",
  1849. "uri": "http://www.twenga.com/privacy.php",
  1850. "needConsent": true,
  1851. "cookies": [],
  1852. "js": function () {
  1853. "use strict";
  1854. if (tarteaucitron.user.twengaId === undefined || tarteaucitron.user.twengaLocale === undefined) {
  1855. return;
  1856. }
  1857. tarteaucitron.addScript('//tracker.twenga.' + tarteaucitron.user.twengaLocale + '/st/tracker_' + tarteaucitron.user.twengaId + '.js');
  1858. }
  1859. };
  1860. // twitter
  1861. tarteaucitron.services.twitter = {
  1862. "key": "twitter",
  1863. "type": "social",
  1864. "name": "Twitter",
  1865. "uri": "https://support.twitter.com/articles/20170514",
  1866. "needConsent": true,
  1867. "cookies": [],
  1868. "js": function () {
  1869. "use strict";
  1870. tarteaucitron.fallback(['tacTwitter'], '');
  1871. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1872. },
  1873. "fallback": function () {
  1874. "use strict";
  1875. var id = 'twitter';
  1876. tarteaucitron.fallback(['tacTwitter'], tarteaucitron.engage(id));
  1877. }
  1878. };
  1879. // twitter embed
  1880. tarteaucitron.services.twitterembed = {
  1881. "key": "twitterembed",
  1882. "type": "social",
  1883. "name": "Twitter (cards)",
  1884. "uri": "https://support.twitter.com/articles/20170514",
  1885. "needConsent": true,
  1886. "cookies": [],
  1887. "js": function () {
  1888. "use strict";
  1889. var uniqIds = [],
  1890. i,
  1891. e,
  1892. html;
  1893. tarteaucitron.fallback(['twitterembed-canvas'], function (x) {
  1894. var uniqId = '_' + Math.random().toString(36).substr(2, 9);
  1895. uniqIds.push(uniqId);
  1896. html = '<div id="' + uniqId + '" ';
  1897. html += 'tweetid="' + x.getAttribute('tweetid') + '" ';
  1898. html += 'theme="' + x.getAttribute('theme') + '" ';
  1899. html += 'cards="' + x.getAttribute('cards') + '" ';
  1900. html += 'conversation="' + x.getAttribute('conversation') + '" ';
  1901. html += 'data-width="' + x.getAttribute('data-width') + '" ';
  1902. html += 'data-align="' + x.getAttribute('data-align') + '" ';
  1903. html += '></div>';
  1904. return html;
  1905. });
  1906. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs', function () {
  1907. for (i = 0; i < uniqIds.length; i += 1) {
  1908. e = document.getElementById(uniqIds[i]);
  1909. twttr.widgets.createTweet(
  1910. e.getAttribute('tweetid'),
  1911. e,
  1912. {
  1913. theme: e.getAttribute('theme'),
  1914. cards: e.getAttribute('cards'),
  1915. conversation: e.getAttribute('conversation'),
  1916. lang: tarteaucitron.getLanguage(),
  1917. dnt: true,
  1918. width: e.getAttribute('data-width'),
  1919. align: e.getAttribute('data-align')
  1920. }
  1921. );
  1922. }
  1923. });
  1924. },
  1925. "fallback": function () {
  1926. "use strict";
  1927. var id = 'twitterembed';
  1928. tarteaucitron.fallback(['twitterembed-canvas'], function (elem) {
  1929. elem.style.width = elem.getAttribute('data-width') + 'px';
  1930. return tarteaucitron.engage(id);
  1931. });
  1932. }
  1933. };
  1934. // twitter timeline
  1935. tarteaucitron.services.twittertimeline = {
  1936. "key": "twittertimeline",
  1937. "type": "social",
  1938. "name": "Twitter (timelines)",
  1939. "uri": "https://support.twitter.com/articles/20170514",
  1940. "needConsent": true,
  1941. "cookies": [],
  1942. "js": function () {
  1943. "use strict";
  1944. tarteaucitron.fallback(['tacTwitterTimelines'], '');
  1945. tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
  1946. },
  1947. "fallback": function () {
  1948. "use strict";
  1949. var id = 'twittertimeline';
  1950. tarteaucitron.fallback(['tacTwitterTimelines'], tarteaucitron.engage(id));
  1951. }
  1952. };
  1953. // twitter universal website tag
  1954. tarteaucitron.services.twitteruwt = {
  1955. "key": "twitteruwt",
  1956. "type": "analytic",
  1957. "name": "Twitter Universal Website Tag",
  1958. "uri": "https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
  1959. "needConsent": true,
  1960. "cookies": [],
  1961. "js": function () {
  1962. "use strict";
  1963. window.twq = function () {
  1964. window.twq.exe ? window.twq.exe.apply(window.twq, arguments) : window.twq.queue.push(arguments);
  1965. }
  1966. window.twq.version = '1.1';
  1967. window.twq.queue = [];
  1968. tarteaucitron.addScript('https://static.ads-twitter.com/uwt.js', '', function () {
  1969. window.twq('init', tarteaucitron.user.twitteruwtId);
  1970. window.twq('track', 'PageView');
  1971. });
  1972. }
  1973. };
  1974. // user voice
  1975. tarteaucitron.services.uservoice = {
  1976. "key": "uservoice",
  1977. "type": "support",
  1978. "name": "UserVoice",
  1979. "uri": "https://www.uservoice.com/privacy/",
  1980. "needConsent": true,
  1981. "cookies": [],
  1982. "js": function () {
  1983. "use strict";
  1984. if (tarteaucitron.user.userVoiceApi === undefined) {
  1985. return;
  1986. }
  1987. tarteaucitron.addScript('//widget.uservoice.com/' + tarteaucitron.user.userVoiceApi + '.js');
  1988. }
  1989. };
  1990. // vimeo
  1991. tarteaucitron.services.vimeo = {
  1992. "key": "vimeo",
  1993. "type": "video",
  1994. "name": "Vimeo",
  1995. "uri": "https://vimeo.com/privacy",
  1996. "needConsent": true,
  1997. "cookies": ['__utmt_player', '__utma', '__utmb', '__utmc', '__utmv', 'vuid', '__utmz', 'player'],
  1998. "js": function () {
  1999. "use strict";
  2000. tarteaucitron.fallback(['vimeo_player'], function (x) {
  2001. var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
  2002. frame_width = 'width=',
  2003. video_height = x.getAttribute("data-height") || x.getAttribute("height"),
  2004. frame_height = 'height=',
  2005. video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"),
  2006. video_autopause = x.getAttribute("data-autopause") || '',
  2007. video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '',
  2008. video_background = x.getAttribute("data-background") || '',
  2009. video_byline = x.getAttribute("data-byline") || x.getAttribute("byline") || '',
  2010. video_color = x.getAttribute("data-color") || '',
  2011. video_controls = x.getAttribute("data-controls") || '',
  2012. video_loop = x.getAttribute("data-loop") || x.getAttribute("loop") || '',
  2013. video_maxheight = x.getAttribute("data-maxheight") || '',
  2014. video_maxwidth = x.getAttribute("data-maxwidth") || '',
  2015. video_muted = x.getAttribute("data-muted") || '',
  2016. video_playsinline = x.getAttribute("data-playsinline") || '',
  2017. video_portrait = x.getAttribute("data-portrait") || x.getAttribute("portrait") || '',
  2018. video_speed = x.getAttribute("data-speed") || '',
  2019. video_title = x.getAttribute("data-title") || x.getAttribute("title") || '',
  2020. video_transparent = x.getAttribute("data-transparent") || '',
  2021. video_frame;
  2022. if (video_id === undefined) {
  2023. return "";
  2024. }
  2025. if (video_width !== undefined) {
  2026. frame_width += '"' + video_width + '" ';
  2027. } else {
  2028. frame_width += '"" ';
  2029. }
  2030. if (video_height !== undefined) {
  2031. frame_height += '"' + video_height + '" ';
  2032. } else {
  2033. frame_height += '"" ';
  2034. }
  2035. var video_qs = "?";
  2036. if (video_title.length > 0) {
  2037. video_qs += "title=" + video_title;
  2038. }
  2039. if (video_byline.length > 0) {
  2040. if (video_qs.length > 0) {
  2041. video_qs += "&";
  2042. }
  2043. video_qs += "byline=" + video_byline;
  2044. }
  2045. if (video_portrait.length > 0) {
  2046. if (video_qs.length > 0) {
  2047. video_qs += "&";
  2048. }
  2049. video_qs += "portrait=" + video_portrait;
  2050. }
  2051. if (video_loop.length > 0) {
  2052. if (video_qs.length > 0) {
  2053. video_qs += "&";
  2054. }
  2055. video_qs += "loop=" + video_loop;
  2056. }
  2057. if (video_autoplay.length > 0) {
  2058. if (video_qs.length > 0) {
  2059. video_qs += "&";
  2060. }
  2061. video_qs += "autoplay=" + video_autoplay;
  2062. }
  2063. if (video_autopause.length > 0) {
  2064. if (video_qs.length > 0) {
  2065. video_qs += "&";
  2066. }
  2067. video_qs += "autopause=" + video_autopause;
  2068. }
  2069. if (video_background.length > 0) {
  2070. if (video_qs.length > 0) {
  2071. video_qs += "&";
  2072. }
  2073. video_qs += "background=" + video_background;
  2074. }
  2075. if (video_color.length > 0) {
  2076. if (video_qs.length > 0) {
  2077. video_qs += "&";
  2078. }
  2079. video_qs += "color=" + video_color;
  2080. }
  2081. if (video_controls.length > 0) {
  2082. if (video_qs.length > 0) {
  2083. video_qs += "&";
  2084. }
  2085. video_qs += "controls=" + video_controls;
  2086. }
  2087. if (video_maxheight.length > 0) {
  2088. if (video_qs.length > 0) {
  2089. video_qs += "&";
  2090. }
  2091. video_qs += "maxheight=" + video_maxheight;
  2092. }
  2093. if (video_maxwidth.length > 0) {
  2094. if (video_qs.length > 0) {
  2095. video_qs += "&";
  2096. }
  2097. video_qs += "maxwidth=" + video_maxwidth;
  2098. }
  2099. if (video_muted.length > 0) {
  2100. if (video_qs.length > 0) {
  2101. video_qs += "&";
  2102. }
  2103. video_qs += "muted=" + video_muted;
  2104. }
  2105. if (video_playsinline.length > 0) {
  2106. if (video_qs.length > 0) {
  2107. video_qs += "&";
  2108. }
  2109. video_qs += "playsinline=" + video_playsinline;
  2110. }
  2111. if (video_speed.length > 0) {
  2112. if (video_qs.length > 0) {
  2113. video_qs += "&";
  2114. }
  2115. video_qs += "speed=" + video_speed;
  2116. }
  2117. if (video_transparent.length > 0) {
  2118. if (video_qs.length > 0) {
  2119. video_qs += "&";
  2120. }
  2121. video_qs += "transparent=" + video_transparent;
  2122. }
  2123. if (video_qs === "?") {
  2124. video_qs = "";
  2125. }
  2126. video_frame = '<iframe src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
  2127. return video_frame;
  2128. });
  2129. },
  2130. "fallback": function () {
  2131. "use strict";
  2132. var id = 'vimeo';
  2133. tarteaucitron.fallback(['vimeo_player'], function (elem) {
  2134. elem.style.width = elem.getAttribute('width') + 'px';
  2135. elem.style.height = elem.getAttribute('height') + 'px';
  2136. return tarteaucitron.engage(id);
  2137. });
  2138. }
  2139. };
  2140. // visualrevenue
  2141. tarteaucitron.services.visualrevenue = {
  2142. "key": "visualrevenue",
  2143. "type": "analytic",
  2144. "name": "VisualRevenue",
  2145. "uri": "http://www.outbrain.com/legal/privacy-713/",
  2146. "needConsent": true,
  2147. "cookies": ['__vrf', '__vrm', '__vrl', '__vry', '__vru', '__vrid', '__vrz'],
  2148. "js": function () {
  2149. "use strict";
  2150. if (tarteaucitron.user.visualrevenueId === undefined) {
  2151. return;
  2152. }
  2153. window._vrq = window._vrq || [];
  2154. window._vrq.push(['id', tarteaucitron.user.visualrevenueId]);
  2155. window._vrq.push(['automate', true]);
  2156. window._vrq.push(['track', function () {}]);
  2157. tarteaucitron.addScript('http://a.visualrevenue.com/vrs.js');
  2158. }
  2159. };
  2160. // verizon dot tag
  2161. tarteaucitron.services.verizondottag = {
  2162. "key": "verizondottag",
  2163. "type": "analytic",
  2164. "name": "Verizon Dot Tag",
  2165. "uri": "https://developer.verizonmedia.com/native/guide/audience-management/dottags/",
  2166. "needConsent": true,
  2167. "cookies": [],
  2168. "js": function () {
  2169. "use strict";
  2170. window.dotq = window.dotq || [];
  2171. window.dotq.push({
  2172. 'projectId': tarteaucitron.user.verizondottagProjectId,
  2173. 'properties': {'pixelId': tarteaucitron.user.verizondottagPixelId}
  2174. });
  2175. tarteaucitron.addScript('https://s.yimg.com/wi/ytc.js', '', function () {
  2176. const items = window.dotq;
  2177. window.dotq = [];
  2178. window.dotq.push = function (item) {
  2179. YAHOO.ywa.I13N.fireBeacon([item])
  2180. };
  2181. YAHOO.ywa.I13N.fireBeacon(items)
  2182. });
  2183. }
  2184. };
  2185. // vshop
  2186. tarteaucitron.services.vshop = {
  2187. "key": "vshop",
  2188. "type": "ads",
  2189. "name": "vShop",
  2190. "uri": "http://vshop.fr/privacy-policy",
  2191. "needConsent": true,
  2192. "cookies": [],
  2193. "js": function () {
  2194. "use strict";
  2195. tarteaucitron.fallback(['vcashW'], '');
  2196. tarteaucitron.addScript('//vshop.fr/js/w.js');
  2197. },
  2198. "fallback": function () {
  2199. "use strict";
  2200. var id = 'vshop';
  2201. tarteaucitron.fallback(['vcashW'], tarteaucitron.engage(id));
  2202. }
  2203. };
  2204. // wysistat
  2205. tarteaucitron.services.wysistat = {
  2206. "key": "wysistat",
  2207. "type": "analytic",
  2208. "name": "Wysistat",
  2209. "uri": "http://wysistat.net/contact/",
  2210. "needConsent": true,
  2211. "cookies": ['Wysistat'],
  2212. "js": function () {
  2213. "use strict";
  2214. if (tarteaucitron.user.wysistat === undefined) {
  2215. return;
  2216. }
  2217. tarteaucitron.addScript('//www.wysistat.com/statistique.js', '', function () {
  2218. 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);
  2219. });
  2220. }
  2221. };
  2222. // xiti
  2223. tarteaucitron.services.xiti = {
  2224. "key": "xiti",
  2225. "type": "analytic",
  2226. "name": "Xiti",
  2227. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2228. "needConsent": true,
  2229. "cookies": [],
  2230. "js": function () {
  2231. "use strict";
  2232. if (tarteaucitron.user.xitiId === undefined) {
  2233. return;
  2234. }
  2235. var Xt_param = 's=' + tarteaucitron.user.xitiId + '&p=',
  2236. Xt_r,
  2237. Xt_h,
  2238. Xt_i,
  2239. Xt_s,
  2240. div = document.createElement('div');
  2241. try {
  2242. Xt_r = top.document.referrer;
  2243. } catch (e) {
  2244. Xt_r = document.referrer;
  2245. }
  2246. Xt_h = new Date();
  2247. Xt_i = '<img style="display:none" border="0" alt="" ';
  2248. Xt_i += 'src="http://logv3.xiti.com/hit.xiti?' + Xt_param;
  2249. Xt_i += '&hl=' + Xt_h.getHours() + 'x' + Xt_h.getMinutes() + 'x' + Xt_h.getSeconds();
  2250. if (parseFloat(navigator.appVersion) >= 4) {
  2251. Xt_s = screen;
  2252. Xt_i += '&r=' + Xt_s.width + 'x' + Xt_s.height + 'x' + Xt_s.pixelDepth + 'x' + Xt_s.colorDepth;
  2253. }
  2254. div.innerHTML = Xt_i + '&ref=' + Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$') + '" title="Internet Audience">';
  2255. document.getElementsByTagName('body')[0].appendChild(div.firstChild);
  2256. if (typeof tarteaucitron.user.xitiMore === 'function') {
  2257. tarteaucitron.user.xitiMore();
  2258. }
  2259. }
  2260. };
  2261. // AT Internet
  2262. tarteaucitron.services.atinternet = {
  2263. "key": "atinternet",
  2264. "type": "analytic",
  2265. "name": "AT Internet (privacy by design)",
  2266. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2267. "needConsent": false,
  2268. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2269. "js": function () {
  2270. "use strict";
  2271. if (tarteaucitron.user.atLibUrl === undefined) {
  2272. return;
  2273. }
  2274. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2275. var tag = new ATInternet.Tracker.Tag();
  2276. if (typeof tarteaucitron.user.atMore === 'function') {
  2277. tarteaucitron.user.atMore();
  2278. }
  2279. })
  2280. }
  2281. };
  2282. // AT Internet
  2283. tarteaucitron.services.atinternethightrack = {
  2284. "key": "atinternethightrack",
  2285. "type": "analytic",
  2286. "name": "AT Internet",
  2287. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2288. "needConsent": true,
  2289. "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
  2290. "js": function () {
  2291. "use strict";
  2292. if (tarteaucitron.user.atLibUrl === undefined) {
  2293. return;
  2294. }
  2295. tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
  2296. var tag = new ATInternet.Tracker.Tag();
  2297. if (typeof tarteaucitron.user.atMore === 'function') {
  2298. tarteaucitron.user.atMore();
  2299. }
  2300. })
  2301. }
  2302. };
  2303. // youtube
  2304. tarteaucitron.services.youtube = {
  2305. "key": "youtube",
  2306. "type": "video",
  2307. "name": "YouTube",
  2308. "uri": "https://policies.google.com/privacy",
  2309. "needConsent": true,
  2310. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2311. "js": function () {
  2312. "use strict";
  2313. tarteaucitron.fallback(['youtube_player'], function (x) {
  2314. var video_id = x.getAttribute("videoID"),
  2315. video_width = x.getAttribute("width"),
  2316. frame_width = 'width=',
  2317. video_height = x.getAttribute("height"),
  2318. frame_height = 'height=',
  2319. video_frame,
  2320. 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");
  2321. if (video_id === undefined) {
  2322. return "";
  2323. }
  2324. if (video_width !== undefined) {
  2325. frame_width += '"' + video_width + '" ';
  2326. } else {
  2327. frame_width += '"" ';
  2328. }
  2329. if (video_height !== undefined) {
  2330. frame_height += '"' + video_height + '" ';
  2331. } else {
  2332. frame_height += '"" ';
  2333. }
  2334. video_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" frameborder="0" allowfullscreen></iframe>';
  2335. return video_frame;
  2336. });
  2337. },
  2338. "fallback": function () {
  2339. "use strict";
  2340. var id = 'youtube';
  2341. tarteaucitron.fallback(['youtube_player'], function (elem) {
  2342. elem.style.width = elem.getAttribute('width') + 'px';
  2343. elem.style.height = elem.getAttribute('height') + 'px';
  2344. return tarteaucitron.engage(id);
  2345. });
  2346. }
  2347. };
  2348. // youtube playlist
  2349. tarteaucitron.services.youtubeplaylist = {
  2350. "key": "youtubeplaylist",
  2351. "type": "video",
  2352. "name": "YouTube (playlist)",
  2353. "uri": "https://policies.google.com/privacy",
  2354. "needConsent": true,
  2355. "cookies": ['VISITOR_INFO1_LIVE', 'YSC', 'PREF', 'GEUP'],
  2356. "js": function () {
  2357. "use strict";
  2358. tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
  2359. var playlist_id = x.getAttribute("playlistID"),
  2360. video_width = x.getAttribute("width"),
  2361. frame_width = 'width=',
  2362. video_height = x.getAttribute("height"),
  2363. frame_height = 'height=',
  2364. video_frame,
  2365. 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");
  2366. if (playlist_id === undefined) {
  2367. return "";
  2368. }
  2369. if (video_width !== undefined) {
  2370. frame_width += '"' + video_width + '" ';
  2371. } else {
  2372. frame_width += '"" ';
  2373. }
  2374. if (video_height !== undefined) {
  2375. frame_height += '"' + video_height + '" ';
  2376. } else {
  2377. frame_height += '"" ';
  2378. }
  2379. 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>';
  2380. return video_frame;
  2381. });
  2382. },
  2383. "fallback": function () {
  2384. "use strict";
  2385. var id = 'youtubeplaylist';
  2386. tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
  2387. elem.style.width = elem.getAttribute('width') + 'px';
  2388. elem.style.height = elem.getAttribute('height') + 'px';
  2389. return tarteaucitron.engage(id);
  2390. });
  2391. }
  2392. };
  2393. // zopim
  2394. tarteaucitron.services.zopim = {
  2395. "key": "zopim",
  2396. "type": "support",
  2397. "name": "Zopim",
  2398. "uri": "https://www.zopim.com/privacy",
  2399. "needConsent": true,
  2400. "cookies": ['__zlcid', '__zprivacy'],
  2401. "js": function () {
  2402. "use strict";
  2403. if (tarteaucitron.user.zopimID === undefined) {
  2404. return;
  2405. }
  2406. tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
  2407. }
  2408. };
  2409. // kameleoon
  2410. tarteaucitron.services.kameleoon = {
  2411. "key": "kameleoon",
  2412. "type": "analytic",
  2413. "name": "Kameleoon",
  2414. "uri": "https://www.kameleoon.com/fr/compliance/rgpd",
  2415. "needConsent": true,
  2416. "cookies": [],
  2417. "js": function () {
  2418. "use strict";
  2419. if (tarteaucitron.user.kameleoon !== undefined) {
  2420. tarteaucitron.addScript("https://" + tarteaucitron.user.kameleoon + ".kameleoon.eu/kameleoon.js");
  2421. }
  2422. }
  2423. };
  2424. // linkedin insight
  2425. tarteaucitron.services.linkedininsighttag = {
  2426. "key": "linkedininsighttag",
  2427. "type": "ads",
  2428. "name": "Linkedin Insight",
  2429. "uri": "https://www.linkedin.com/legal/cookie_policy",
  2430. "needConsent": true,
  2431. "cookies": [],
  2432. "js": function () {
  2433. "use strict";
  2434. if (tarteaucitron.user.linkedininsighttag !== undefined) {
  2435. window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
  2436. window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
  2437. }
  2438. tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
  2439. }
  2440. };
  2441. // xiti smartTag
  2442. tarteaucitron.services.xiti_smarttag = {
  2443. "key": "xiti_smarttag",
  2444. "type": "analytic",
  2445. "name": "Xiti (SmartTag)",
  2446. "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
  2447. "needConsent": true,
  2448. "cookies": ["atidvisitor", "atreman", "atredir", "atsession", "atuserid", "attvtreman", "attvtsession"],
  2449. "js": function () {
  2450. "use strict";
  2451. if (tarteaucitron.user.xiti_smarttagLocalPath !== undefined) {
  2452. tarteaucitron.addScript(tarteaucitron.user.xiti_smarttagLocalPath, 'smarttag', null, null, "onload", "addTracker();");
  2453. } else {
  2454. var xitiSmarttagId = tarteaucitron.user.xiti_smarttagSiteId;
  2455. if (xitiSmarttagId === undefined) {
  2456. return;
  2457. }
  2458. tarteaucitron.addScript('//tag.aticdn.net/' + xitiSmarttagId + '/smarttag.js', 'smarttag', null, null, "onload", "addTracker();");
  2459. }
  2460. }
  2461. };
  2462. // facebook pixel
  2463. tarteaucitron.services.facebookpixel = {
  2464. "key": "facebookpixel",
  2465. "type": "ads",
  2466. "name": "Facebook Pixel",
  2467. "uri": "https://fr-fr.facebook.com/business/help/www/651294705016616",
  2468. "needConsent": true,
  2469. "cookies": ['datr', 'fr', 'reg_ext_ref', 'reg_fb_gate', 'reg_fb_ref', 'sb', 'wd', 'x-src'],
  2470. "js": function () {
  2471. "use strict";
  2472. var n;
  2473. if(window.fbq)return;
  2474. n=window.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)} ;
  2475. if(!window._fbq)window._fbq=n;
  2476. n.push=n;
  2477. n.loaded=!0;
  2478. n.version='2.0';
  2479. n.queue=[];
  2480. tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
  2481. fbq('init', tarteaucitron.user.facebookpixelId);
  2482. fbq('track', 'PageView');
  2483. if (typeof tarteaucitron.user.facebookpixelMore === 'function') {
  2484. tarteaucitron.user.facebookpixelMore();
  2485. }
  2486. }
  2487. };
  2488. //Issuu
  2489. tarteaucitron.services.issuu = {
  2490. "key": "issuu",
  2491. "type": "other",
  2492. "name": "Issuu",
  2493. "uri": "https://issuu.com/legal/privacy",
  2494. "needConsent": true,
  2495. "cookies": ['__qca', 'iutk', 'mc'],
  2496. "js": function () {
  2497. "use strict";
  2498. tarteaucitron.fallback(['issuu_player'], function (x) {
  2499. var issuu_id = x.getAttribute("issuuID"),
  2500. issuu_width = x.getAttribute("width"),
  2501. frame_width = 'width=',
  2502. issuu_height = x.getAttribute("height"),
  2503. frame_height = 'height=',
  2504. issuu_frame;
  2505. if (issuu_id === undefined) {
  2506. return "";
  2507. }
  2508. if (issuu_width !== undefined) {
  2509. frame_width += '"' + issuu_width + '" ';
  2510. } else {
  2511. frame_width += '"" ';
  2512. }
  2513. if (issuu_height !== undefined) {
  2514. frame_height += '"' + issuu_height + '" ';
  2515. } else {
  2516. frame_height += '"" ';
  2517. }
  2518. issuu_frame = '<iframe type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html#' + issuu_id + '" frameborder="0"></iframe>';
  2519. return issuu_frame;
  2520. });
  2521. },
  2522. "fallback": function () {
  2523. "use strict";
  2524. var id = 'issuu';
  2525. tarteaucitron.fallback(['issuu_player'], function (elem) {
  2526. elem.style.width = elem.getAttribute('width') + 'px';
  2527. elem.style.height = elem.getAttribute('height') + 'px';
  2528. return tarteaucitron.engage(id);
  2529. });
  2530. }
  2531. };
  2532. // webmecanik
  2533. tarteaucitron.services.webmecanik = {
  2534. "key": "webmecanik",
  2535. "type": "analytic",
  2536. "name": "Webmecanik",
  2537. "uri": "https://webmecanik.com/tos",
  2538. "needConsent": true,
  2539. "cookies": ['mtc_id', 'mtc_sid'],
  2540. "js": function () {
  2541. "use strict";
  2542. if (tarteaucitron.user.webmecanikurl === undefined) {
  2543. return;
  2544. }
  2545. window.MauticTrackingObject = 'mt';
  2546. window.mt = window.mt || function () {
  2547. window.mt.q = window.mt.q || [];
  2548. window.mt.q.push(arguments);
  2549. };
  2550. tarteaucitron.addScript(tarteaucitron.user.webmecanikurl, '', function() {
  2551. mt('send', 'pageview');
  2552. });
  2553. }
  2554. };
  2555. // google analytics multiple
  2556. tarteaucitron.services.multiplegtag = {
  2557. "key": "multiplegtag",
  2558. "type": "analytic",
  2559. "name": "Google Analytics (gtag.js)",
  2560. "uri": "https://support.google.com/analytics/answer/6004245",
  2561. "needConsent": true,
  2562. "cookies": (function () {
  2563. var cookies = ['_ga', '_gat', '_gid', '__utma', '__utmb', '__utmc', '__utmt', '__utmz'];
  2564. if (tarteaucitron.user.multiplegtagUa !== undefined) {
  2565. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2566. cookies.push('_gat_gtag_' + ua.replace(/-/g, '_'));
  2567. cookies.push('_ga_' + ua.replace(/G-/g, ''));
  2568. });
  2569. }
  2570. return cookies;
  2571. })(),
  2572. "js": function () {
  2573. "use strict";
  2574. window.dataLayer = window.dataLayer || [];
  2575. tarteaucitron.user.multiplegtagUa.forEach(function(ua) {
  2576. tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + ua, '', function () {
  2577. window.gtag = function gtag(){dataLayer.push(arguments);}
  2578. gtag('js', new Date());
  2579. gtag('config', ua);
  2580. });
  2581. });
  2582. }
  2583. };
  2584. // Koban
  2585. tarteaucitron.services.koban = {
  2586. "key": "koban",
  2587. "type": "analytic",
  2588. "name": "Koban",
  2589. "uri": "https://koban.cloud/tos",
  2590. "needConsent": true,
  2591. "cookies": ['kbntrk'],
  2592. "js": function () {
  2593. "use strict";
  2594. if (tarteaucitron.user.kobanurl === undefined) {
  2595. return;
  2596. }
  2597. if (tarteaucitron.user.kobanapi === undefined) {
  2598. return;
  2599. }
  2600. window.KobanObject = 'kb';
  2601. window.kb = window.kb || function() {
  2602. window.kb.q = window.kb.q || [];
  2603. window.kb.q.push(arguments);
  2604. };
  2605. window.kb.l = new Date();
  2606. kb('reg', tarteaucitron.user.kobanapi);
  2607. tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
  2608. });
  2609. }
  2610. };
  2611. // matomo
  2612. /*
  2613. 1. Set the following variable before the initialization :
  2614. tarteaucitron.user.matomoId = YOUR_SITE_ID_FROM_MATOMO;
  2615. tarteaucitron.user.matomoHost = "YOUR_MATOMO_URL"; //eg: https://stat.mydomain.com/
  2616. 2. Push the service :
  2617. (tarteaucitron.job = tarteaucitron.job || []).push('matomo');
  2618. 3. HTML
  2619. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2620. */
  2621. tarteaucitron.services.matomo = {
  2622. "key": "matomo",
  2623. "type": "analytic",
  2624. "name": "Matomo (privacy by design)",
  2625. "uri": "https://matomo.org/faq/general/faq_146/",
  2626. "needConsent": false,
  2627. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2628. "js": function () {
  2629. "use strict";
  2630. if (tarteaucitron.user.matomoId === undefined) {
  2631. return;
  2632. }
  2633. window._paq = window._paq || [];
  2634. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2635. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2636. window._paq.push(["setDoNotTrack", 1]);
  2637. window._paq.push(["trackPageView"]);
  2638. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2639. window._paq.push(["enableLinkTracking"]);
  2640. window._paq.push([function() {
  2641. var self = this;
  2642. function getOriginalVisitorCookieTimeout() {
  2643. var now = new Date(),
  2644. nowTs = Math.round(now.getTime() / 1000),
  2645. visitorInfo = self.getVisitorInfo();
  2646. var createTs = parseInt(visitorInfo[2]);
  2647. var cookieTimeout = 33696000; // 13 mois en secondes
  2648. var originalTimeout = createTs + cookieTimeout - nowTs;
  2649. return originalTimeout;
  2650. }
  2651. this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
  2652. }]);
  2653. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2654. // waiting for piwik to be ready to check first party cookies
  2655. var interval = setInterval(function() {
  2656. if (typeof Piwik === 'undefined') return
  2657. clearInterval(interval)
  2658. // make piwik/matomo cookie accessible by getting tracker
  2659. Piwik.getTracker();
  2660. // looping throught cookies
  2661. var theCookies = document.cookie.split(';');
  2662. for (var i = 1 ; i <= theCookies.length; i++) {
  2663. var cookie = theCookies[i-1].split('=');
  2664. var cookieName = cookie[0].trim();
  2665. // if cookie starts like a piwik one, register it
  2666. if (cookieName.indexOf('_pk_') === 0) {
  2667. tarteaucitron.services.matomo.cookies.push(cookieName);
  2668. }
  2669. }
  2670. }, 100)
  2671. }
  2672. };
  2673. tarteaucitron.services.matomohightrack = {
  2674. "key": "matomohightrack",
  2675. "type": "analytic",
  2676. "name": "Matomo",
  2677. "uri": "https://matomo.org/faq/general/faq_146/",
  2678. "needConsent": true,
  2679. "cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
  2680. "js": function () {
  2681. "use strict";
  2682. if (tarteaucitron.user.matomoId === undefined) {
  2683. return;
  2684. }
  2685. window._paq = window._paq || [];
  2686. window._paq.push(["setSiteId", tarteaucitron.user.matomoId]);
  2687. window._paq.push(["setTrackerUrl", tarteaucitron.user.matomoHost + "piwik.php"]);
  2688. window._paq.push(["trackPageView"]);
  2689. window._paq.push(["setIgnoreClasses", ["no-tracking", "colorbox"]]);
  2690. window._paq.push(["enableLinkTracking"]);
  2691. window._paq.push([function() {
  2692. var self = this;
  2693. }]);
  2694. tarteaucitron.addScript(tarteaucitron.user.matomoHost + 'piwik.js', '', '', true, 'defer', true);
  2695. // waiting for piwik to be ready to check first party cookies
  2696. var interval = setInterval(function() {
  2697. if (typeof Piwik === 'undefined') return
  2698. clearInterval(interval)
  2699. Piwik.getTracker();
  2700. var theCookies = document.cookie.split(';');
  2701. for (var i = 1 ; i <= theCookies.length; i++) {
  2702. var cookie = theCookies[i-1].split('=');
  2703. var cookieName = cookie[0].trim();
  2704. if (cookieName.indexOf('_pk_') === 0) {
  2705. tarteaucitron.services.matomo.cookies.push(cookieName);
  2706. }
  2707. }
  2708. }, 100)
  2709. }
  2710. };
  2711. // Hotjar
  2712. /*
  2713. 1. Set the following variable before the initialization :
  2714. tarteaucitron.user.hotjarId = YOUR_WEBSITE_ID;
  2715. tarteaucitron.user.HotjarSv = XXXX; // Can be found in your website tracking code as "hjvs=XXXX"
  2716. 2. Push the service :
  2717. (tarteaucitron.job = tarteaucitron.job || []).push('hotjar');
  2718. 3. HTML
  2719. You don't need to add any html code, if the service is autorized, the javascript is added. otherwise no.
  2720. */
  2721. tarteaucitron.services.hotjar = {
  2722. "key": "hotjar",
  2723. "type": "analytic",
  2724. "name": "Hotjar",
  2725. "uri": "https://help.hotjar.com/hc/en-us/categories/115001323967-About-Hotjar",
  2726. "needConsent": true,
  2727. "cookies": ["hjClosedSurveyInvites", "_hjDonePolls", "_hjMinimizedPolls", "_hjDoneTestersWidgets", "_hjMinimizedTestersWidgets", "_hjDoneSurveys", "_hjIncludedInSample", "_hjShownFeedbackMessage"],
  2728. "js": function () {
  2729. "use strict";
  2730. if (tarteaucitron.user.hotjarId === undefined || tarteaucitron.user.HotjarSv === undefined) {
  2731. return;
  2732. }
  2733. window.hj = window.hj || function() {
  2734. (window.hj.q = window.hj.q || []).push(arguments)
  2735. };
  2736. window._hjSettings = {
  2737. hjid: tarteaucitron.user.hotjarId,
  2738. hjsv: tarteaucitron.user.HotjarSv
  2739. };
  2740. var uri = 'https://static.hotjar.com/c/hotjar-';
  2741. var extension = '.js?sv=';
  2742. tarteaucitron.addScript(uri + window._hjSettings.hjid + extension + window._hjSettings.hjsv);
  2743. }
  2744. };
  2745. // bing ads universal event tracking
  2746. tarteaucitron.services.bingads = {
  2747. 'key': 'bingads',
  2748. 'type': 'ads',
  2749. 'name': 'Bing Ads Universal Event Tracking',
  2750. 'uri': 'https://advertise.bingads.microsoft.com/en-us/resources/policies/personalized-ads',
  2751. 'needConsent': true,
  2752. 'cookies': ['_uetmsclkid', '_uetvid', '_uetsid'],
  2753. 'js': function () {
  2754. 'use strict';
  2755. //var u = tarteaucitron.user.bingadsTag || 'uetq';
  2756. window.uetq = window.uetq || [];
  2757. tarteaucitron.addScript('https://bat.bing.com/bat.js', '', function () {
  2758. var bingadsCreate = {ti: tarteaucitron.user.bingadsID};
  2759. if ('bingadsStoreCookies' in tarteaucitron.user) {
  2760. bingadsCreate['storeConvTrackCookies'] = tarteaucitron.user.bingadsStoreCookies;
  2761. }
  2762. bingadsCreate.q = window.uetq;
  2763. window.uetq = new UET(bingadsCreate);
  2764. window.uetq.push('pageLoad');
  2765. });
  2766. }
  2767. };
  2768. //Matterport
  2769. /*
  2770. SERVICE INIT
  2771. (tarteaucitron.job = tarteaucitron.job || []).push('matterport');
  2772. HTML TAG
  2773. <div class="matterport" matterportid="N2Q67sZUNUd" width="100%" height="550" parameters="&play=1"></div>
  2774. DELETE IFRAME
  2775. <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>'
  2776. */
  2777. tarteaucitron.services.matterport = {
  2778. "key": "matterport",
  2779. "type": "other",
  2780. "name": "Matterport",
  2781. "uri": "https://matterport.com/es/legal/privacy-policy/",
  2782. "needConsent": true,
  2783. "cookies": ['__cfduid', 'ajs_anonymous_id', 'ajs_group_id', 'ajs_user_id'],
  2784. "js": function () {
  2785. "use strict";
  2786. tarteaucitron.fallback(['matterport'], function (x) {
  2787. var matterport_id = x.getAttribute("matterportID"),
  2788. matterport_width = x.getAttribute("width"),
  2789. frame_width = 'width=',
  2790. matterport_height = x.getAttribute("height"),
  2791. frame_height = 'height=',
  2792. matterport_parameters = x.getAttribute("parameters"),
  2793. matterport_frame;
  2794. if (matterport_id === undefined) {
  2795. return "";
  2796. }
  2797. if (matterport_width !== undefined) {
  2798. frame_width += '"' + matterport_width + '" ';
  2799. } else {
  2800. frame_width += '"" ';
  2801. }
  2802. if (matterport_height !== undefined) {
  2803. frame_height += '"' + matterport_height + '" ';
  2804. } else {
  2805. frame_height += '"" ';
  2806. }
  2807. if (matterport_parameters === undefined) {
  2808. return "";
  2809. }
  2810. 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>';
  2811. return matterport_frame;
  2812. });
  2813. },
  2814. "fallback": function () {
  2815. "use strict";
  2816. var id = 'matterport';
  2817. tarteaucitron.fallback(['matterport'], function (elem) {
  2818. elem.style.width = elem.getAttribute('width') + 'px';
  2819. elem.style.height = elem.getAttribute('height') + 'px';
  2820. return tarteaucitron.engage(id);
  2821. });
  2822. }
  2823. };
  2824. // Adform
  2825. tarteaucitron.services.adform = {
  2826. "key": "adform",
  2827. "type": "ads",
  2828. "name": "Adform",
  2829. "uri": "https://site.adform.com/privacy-center/overview/",
  2830. "needConsent": true,
  2831. "cookies": [],
  2832. "js": function () {
  2833. "use strict";
  2834. if (tarteaucitron.user.adformpm === undefined || tarteaucitron.user.adformpagename === undefined) {
  2835. return;
  2836. }
  2837. window._adftrack = {
  2838. pm: tarteaucitron.user.adformpm,
  2839. divider: encodeURIComponent('|'),
  2840. pagename: encodeURIComponent(tarteaucitron.user.adformpagename)
  2841. };
  2842. tarteaucitron.addScript("https://track.adform.net/serving/scripts/trackpoint/async/");
  2843. }
  2844. };
  2845. // Active Campaign
  2846. tarteaucitron.services.activecampaign = {
  2847. "key": "activecampaign",
  2848. "type": "ads",
  2849. "name": "Active Campaign",
  2850. "uri": "https://www.activecampaign.com/privacy-policy/",
  2851. "needConsent": true,
  2852. "cookies": [],
  2853. "js": function () {
  2854. "use strict";
  2855. if (tarteaucitron.user.actid === undefined) {
  2856. return;
  2857. }
  2858. window.trackcmp_email = '';
  2859. tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
  2860. }
  2861. };
  2862. // tawk.to
  2863. tarteaucitron.services.tawkto = {
  2864. "key": "tawkto",
  2865. "type": "support",
  2866. "name": "Tawk.to chat",
  2867. "uri": "https://www.tawk.to/data-protection/",
  2868. "needConsent": true,
  2869. "cookies": [],
  2870. "js": function () {
  2871. "use strict";
  2872. if (tarteaucitron.user.tawktoId === undefined) {
  2873. return;
  2874. }
  2875. window.Tawk_API=window.Tawk_API||{};
  2876. window.Tawk_LoadStart=new Date();
  2877. tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
  2878. }
  2879. };
  2880. // getquanty
  2881. tarteaucitron.services.getquanty = {
  2882. "key": "getquanty",
  2883. "type": "analytic",
  2884. "name": "GetQuanty",
  2885. "uri": "https://www.getquanty.com/mentions-legales/",
  2886. "needConsent": true,
  2887. "cookies": ['_first_pageview', 'eqy_sessionid', 'eqy_siteid','cluid','eqy_company', 'cluid', 'gq_utm', '_jsuid'],
  2888. "js": function () {
  2889. "use strict";
  2890. if (tarteaucitron.user.getguanty === undefined) {
  2891. return;
  2892. }
  2893. window.webleads_site_ids = window.webleads_site_ids || [];
  2894. window.webleads_site_ids.push(tarteaucitron.user.getguanty);
  2895. tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
  2896. tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
  2897. }
  2898. };
  2899. // emolytics
  2900. tarteaucitron.services.emolytics = {
  2901. "key": "emolytics",
  2902. "type": "analytic",
  2903. "name": "Emolytics",
  2904. "uri": "https://www.emolytics.com/main/privacy-policy.php",
  2905. "needConsent": true,
  2906. "cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
  2907. "js": function () {
  2908. "use strict";
  2909. if (tarteaucitron.user.emolyticsID === undefined) {
  2910. return;
  2911. }
  2912. var scriptEmolytics = document.createElement('script');
  2913. scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
  2914. document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
  2915. tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
  2916. }
  2917. };
  2918. // youtubeapi
  2919. tarteaucitron.services.youtubeapi = {
  2920. "key": "youtubeapi",
  2921. "type": "video",
  2922. "name": "Youtube (Js API)",
  2923. "uri": "https://policies.google.com/privacy/",
  2924. "needConsent": true,
  2925. "cookies": [],
  2926. "js": function () {
  2927. "use strict";
  2928. tarteaucitron.addScript('https://www.youtube.com/player_api');
  2929. }
  2930. };
  2931. // Facil'ITI
  2932. tarteaucitron.services.faciliti = {
  2933. "key": "faciliti",
  2934. "type": "other",
  2935. "name": "Facil'ITI",
  2936. "uri": "https://ws.facil-iti.com/mentions-legales.html",
  2937. "needConsent": true,
  2938. "cookies": ['FACIL_ITI_LS'],
  2939. "js": function () {
  2940. "use strict";
  2941. if (tarteaucitron.user.facilitiID === undefined) {
  2942. return;
  2943. }
  2944. (function(w, d, s, f) {
  2945. w[f] = w[f] || {conf: function () { (w[f].data = w[f].data || []).push(arguments);}};
  2946. var l = d.createElement(s), e = d.getElementsByTagName(s)[0];
  2947. l.async = 1; l.src = 'https://ws.facil-iti.com/tag/faciliti-tag.min.js'; e.parentNode.insertBefore(l, e);
  2948. }(window, document, 'script', 'FACIL_ITI'));
  2949. FACIL_ITI.conf('userId', tarteaucitron.user.facilitiID);
  2950. }
  2951. };
  2952. // userlike
  2953. tarteaucitron.services.userlike = {
  2954. "key": "userlike",
  2955. "type": "support",
  2956. "name": "Userlike",
  2957. "uri": "https://www.userlike.com/en/terms#privacy-policy",
  2958. "needConsent": true,
  2959. "cookies": ['uslk_s', 'uslk_e'],
  2960. "js": function () {
  2961. "use strict";
  2962. if (tarteaucitron.user.userlikeKey === undefined) {
  2963. return;
  2964. }
  2965. tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
  2966. }
  2967. };
  2968. // adobeanalytics
  2969. tarteaucitron.services.adobeanalytics = {
  2970. "key": "adobeanalytics",
  2971. "type": "analytic",
  2972. "name": "Adobe Analytics",
  2973. "uri": "https://www.adobe.com/privacy/policy.html",
  2974. "needConsent": true,
  2975. "cookies": ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'],
  2976. "js": function () {
  2977. "use strict";
  2978. if (tarteaucitron.user.adobeanalyticskey === undefined) {
  2979. return;
  2980. }
  2981. tarteaucitron.addScript('//assets.adobedtm.com/launch-' + tarteaucitron.user.adobeanalyticskey + '.min.js');
  2982. }
  2983. };
  2984. // woopra customer journey analytics
  2985. tarteaucitron.services.woopra = {
  2986. 'key': 'woopra',
  2987. 'type': 'analytic',
  2988. 'name': 'Woopra Customer Journey Analytics',
  2989. 'uri': 'https://www.woopra.com/privacy',
  2990. 'needConsent': true,
  2991. 'cookies': ['wooTracker', 'intercom-session-erbfalba', 'intercom-id-erbfalba'],
  2992. 'js': function () {
  2993. 'use strict';
  2994. //var w = tarteaucitron.user.woopraDomain;
  2995. //window[w] = window[w] || [];
  2996. (function(){
  2997. 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)
  2998. })("woopra");
  2999. woopra.config({
  3000. domain: tarteaucitron.user.woopraDomain
  3001. });
  3002. woopra.track();
  3003. }
  3004. };