The minimalistic document archiving platform.
refactor(analytics): removed plausible tracking (#7)
Corentin Thomasset7c14226cee87
diff --git a/src/components/PlausibleScript.astro b/src/components/PlausibleScript.astrodeleted file mode 100644index 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.astroindex 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">