Remove dependency on plausible.io tracker

Instead of sending data to a third-party by default, users can run privacy
friendly local log analysis systems like GoatCounter.

After this commit, Radicle Explorer will not randomly connect to unexpected
hosts anymore.
This commit is contained in:
Vincent Ambo
2024-09-30 14:50:19 +02:00
committed by Rūdolfs Ošiņš
parent 86d6452c80
commit 948605c30f
3 changed files with 0 additions and 18 deletions
-9
View File
@@ -29,7 +29,6 @@
"marked-katex-extension": "^5.1.2",
"marked-linkify-it": "^3.1.11",
"md5": "^2.3.0",
"plausible-tracker": "^0.3.9",
"svelte": "^4.2.19",
"twemoji": "^14.0.2",
"zod": "^3.23.8"
@@ -3578,14 +3577,6 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/plausible-tracker": {
"version": "0.3.9",
"resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.9.tgz",
"integrity": "sha512-hMhneYm3GCPyQon88SZrVJx+LlqhM1kZFQbuAgXPoh/Az2YvO1B6bitT9qlhpiTdJlsT5lsr3gPmzoVjb5CDXA==",
"engines": {
"node": ">=10"
}
},
"node_modules/playwright": {
"version": "1.47.2",
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.47.2.tgz",
-1
View File
@@ -73,7 +73,6 @@
"marked-katex-extension": "^5.1.2",
"marked-linkify-it": "^3.1.11",
"md5": "^2.3.0",
"plausible-tracker": "^0.3.9",
"svelte": "^4.2.19",
"twemoji": "^14.0.2",
"zod": "^3.23.8"
-8
View File
@@ -1,6 +1,4 @@
<script lang="ts">
import Plausible from "plausible-tracker";
import * as router from "@app/lib/router";
import { unreachable } from "@app/lib/utils";
@@ -28,12 +26,6 @@
void router.loadFromLocation();
if (import.meta.env.PROD) {
const plausible = Plausible({ domain: "app.radicle.xyz" });
plausible.enableAutoPageviews();
}
$: document.documentElement.setAttribute("data-codefont", $codeFont);
$: document.documentElement.setAttribute("data-theme", $theme);
</script>