tarteaucitron.services.js 105 KB

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