tarteaucitron.services.js 103 KB

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