Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

refactor(analytics): removed plausible tracking (#7)

Corentin Thomasset7c14226cee87
diff --git a/src/components/PlausibleScript.astro b/src/components/PlausibleScript.astro
deleted file mode 100644
index e304ba7c..00000000
--- a/src/components/PlausibleScript.astro
+++ /dev/null
@@ -1,11 +0,0 @@
----
-
-const plausibleDomain: string | undefined = import.meta.env.PLAUSIBLE_DOMAIN;
-const plausibleScriptSrc: string | undefined = import.meta.env.PLAUSIBLE_SCRIPT_SRC;
-
-const hasPlausible = plausibleDomain && plausibleScriptSrc;
----
-
-{hasPlausible && (
- <script is:inline defer data-domain={plausibleDomain} src={plausibleScriptSrc}></script>
-)}
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 4108a821..be3d4f79 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,5 +1,4 @@
---
-import PlausibleScript from '../components/PlausibleScript.astro';
import PosthogAnalytics from '../components/PosthogAnalytics.astro';
const appName = 'Papra';
@@ -48,7 +47,6 @@ const ogImageHeight = '630';
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
- <PlausibleScript />
<PosthogAnalytics />
</head>
<body class="bg-background font-sans antialiased min-h-screen text-foreground text-sm" data-kb-theme="dark">