From d48cea02ddf8b6e57c652f7f4a1cd3e605c13ffd Mon Sep 17 00:00:00 2001 From: benny Vasquez Date: Wed, 27 Mar 2024 16:07:40 -0400 Subject: [PATCH] adding the javascript to allow web stats gathering. --- docs/.vuepress/config.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 45a5b0c57..cb8a827f7 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -2,7 +2,19 @@ module.exports = { title: 'AlmaLinux Wiki', description: 'AlmaLinux OS Documentation', - head: [ + head: [ ['script', {}, ` + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="https://matomo.almalinux.org/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '5']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); +`], ['link', { rel: "shortcut icon", type: 'image/png', href: "/images/logo.png"}], ], base: '/',