Remove plausible

This commit is contained in:
Andras Schmelczer 2025-11-18 22:14:02 +00:00
parent 5cd8cd8725
commit ffcdbac8e2
3 changed files with 0 additions and 19 deletions

View file

@ -28,7 +28,6 @@
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1",
"webpack-merge": "^6.0.1",
"@plausible-analytics/tracker": "^0.4.3",
"@sentry/browser": "^10.8.0",
"ws": "^8.18.3"
}

View file

@ -1,15 +1,6 @@
import * as Sentry from "@sentry/browser";
import { init as plausibleInit } from "@plausible-analytics/tracker";
export const setUpTelemetry = (): (() => void) => {
plausibleInit({
domain: "vault-link",
endpoint: "https://stats.schmelczer.dev/status",
autoCapturePageviews: true,
captureOnLocalhost: true,
logging: true
});
Sentry.init({
dsn: "https://56accd39d92442e788a457a04623cf57@bugs.schmelczer.dev/1",
skipBrowserExtensionCheck: false
@ -36,6 +27,5 @@ export const setUpTelemetry = (): (() => void) => {
window.removeEventListener("error", onError);
window.removeEventListener("unhandledrejection", onUnhandledRejection);
Sentry.close(5000);
// unloading plausible requires reloading
};
};