aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/matomo/analytics.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/matomo/analytics.html b/layouts/partials/matomo/analytics.html
index 75a68f9..59c75b7 100644
--- a/layouts/partials/matomo/analytics.html
+++ b/layouts/partials/matomo/analytics.html
@@ -8,6 +8,10 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
+ if (window.location.hostname === "localhost") {
+ console.log("Analytics not running on local dev.");
+ return;
+ }
var u="//ouroboros.rocks/piwik/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);