tarteaucitron.services.js 122 KB

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