From 1e657d4fd84f5f9506456d2308bc54275f561fab Mon Sep 17 00:00:00 2001 From: nukeador Date: Thu, 21 Jan 2021 13:24:53 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adimos=20stats=20de=20pucelabits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/base.njk | 3 ++- assets/js/stats.js | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 assets/js/stats.js diff --git a/_includes/base.njk b/_includes/base.njk index e2f7762977b..08b3dc68f57 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -3,7 +3,7 @@ Web Segura - Observatorio de seguridad web. - + @@ -18,6 +18,7 @@ + diff --git a/assets/js/stats.js b/assets/js/stats.js new file mode 100644 index 00000000000..1156055a338 --- /dev/null +++ b/assets/js/stats.js @@ -0,0 +1,13 @@ + + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//stats.pucelabits.org/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '5']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); +