Removed plausible from built-in

This commit is contained in:
Mawoka
2022-10-07 17:14:55 +02:00
parent 724e5e51ef
commit b191c3ab89
3 changed files with 13 additions and 7 deletions
+12
View File
@@ -24,6 +24,7 @@
console.log('After nav');
}
});*/
const plausible_data_url = import.meta.env.VITE_PLAUSIBLE_DATA_URL;
if (browser) {
pathname.set(window.location.pathname);
@@ -62,6 +63,17 @@
}
</script>
<svelte:head>
{#if plausible_data_url}
<link rel="prefetch" href="https://sugar.mawoka.eu.org/" />
<script
async=""
defer=""
data-domain={plausible_data_url}
src="https://sugar.mawoka.eu.org/js/plausible.hash.outbound-links.js"></script>
{/if}
</svelte:head>
{#if $navbarVisible}
<Navbar />
<div class="pt-16 h-screen">