From 1a8e1f078784fb3c3e5d1ffd1eac5858dd785784 Mon Sep 17 00:00:00 2001 From: Derek Eder Date: Tue, 6 Jun 2023 15:31:46 -0500 Subject: [PATCH] using matomo instead of google analytics --- faq.html | 17 ++++++++++++++++- index.html | 19 ++++++++++++++++++- js/analytics_lib.js | 44 -------------------------------------------- 3 files changed, 34 insertions(+), 46 deletions(-) delete mode 100644 js/analytics_lib.js diff --git a/faq.html b/faq.html index dc91d45..bd690eb 100644 --- a/faq.html +++ b/faq.html @@ -117,8 +117,23 @@

Why is there no money budgeted for Capital Improvements in 2011?

- + + + + diff --git a/index.html b/index.html index 3a30a19..19c70d1 100644 --- a/index.html +++ b/index.html @@ -138,8 +138,25 @@

Where's the money going?

- + + + + + + diff --git a/js/analytics_lib.js b/js/analytics_lib.js deleted file mode 100644 index 6013edd..0000000 --- a/js/analytics_lib.js +++ /dev/null @@ -1,44 +0,0 @@ -/*-----------------------------------------------------------+ - | Utilizes event tracking in Google Analytics to track | - | clicks on outbound, document, and email links. | - | Requires jQuery | - +-----------------------------------------------------------*/ - - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-24927696-1']); - _gaq.push(['_trackPageview']); - - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - - _trackClickEvent = function (category, action, label) { - if (typeof(_gaq) != 'undefined') - _gaq.push(['_setAccount', 'UA-xxxxxxxx-x']); - _gaq.push(['_trackEvent', category, action, label]); - }; - -jQuery(function () { - - jQuery('a').click(function () { - var $a = jQuery(this); - var href = $a.attr("href"); - - //links going to outside sites - if (href.match(/^http/i) && !href.match(document.domain)) { - _trackClickEventWithGA("Outgoing", "Click", href); - } - - //direct links to files - if (href.match(/\.(avi|css|doc|docx|exe|gif|js|jpg|mov|mp3|pdf|png|ppt|pptx|rar|txt|vsd|vxd|wma|wmv|xls|xlsx|zip)$/i)) { - _trackClickEventWithGA("Downloads", "Click", href); - } - - //email links - if (href.match(/^mailto:/i)) { - _trackClickEventWithGA("Emails", "Click", href); - } - }); -}); \ No newline at end of file