From dbe9aaa00bf9f9d4c3fe16bebc53d4d6557f87ab Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Thu, 16 Apr 2026 21:15:56 -0700 Subject: [PATCH] feat: add Plausible analytics to Vue SPA and docs --- docs/plausible.js | 1 + mkdocs.yml | 3 +++ web/index.html | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 docs/plausible.js diff --git a/docs/plausible.js b/docs/plausible.js new file mode 100644 index 0000000..769bf63 --- /dev/null +++ b/docs/plausible.js @@ -0,0 +1 @@ +(function(){var s=document.createElement("script");s.defer=true;s.dataset.domain="docs.circuitforge.tech,circuitforge.tech";s.dataset.api="https://analytics.circuitforge.tech/api/event";s.src="https://analytics.circuitforge.tech/js/script.js";document.head.appendChild(s);})(); diff --git a/mkdocs.yml b/mkdocs.yml index f99cb24..468ca52 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -61,3 +61,6 @@ nav: - Trust Score Algorithm: reference/trust-scoring.md - Tier System: reference/tier-system.md - Architecture: reference/architecture.md + +extra_javascript: + - plausible.js diff --git a/web/index.html b/web/index.html index 0f7b55c..f8fac8b 100644 --- a/web/index.html +++ b/web/index.html @@ -27,6 +27,9 @@ + +