Skip to content

Commit

Permalink
Feat: add plausible analytics script to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
avivash committed Dec 7, 2023
1 parent 2ac181e commit 97d1847
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
})
</script>

<svelte:head>
{#if window?.location?.href?.includes('control')}
<script
defer
data-domain="control.everywhere.computer"
src="https://plausible.io/js/script.js"
></script>
{/if}
</svelte:head>

<svelte:window bind:innerWidth={screenSize} />

<div
Expand Down

0 comments on commit 97d1847

Please sign in to comment.