✨ Switch to Plausible analytics
Detects automatically route changes - use provided script - specify domain - send event name with optional props
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import { browser } from '$app/environment'
|
||||
import { page } from '$app/stores'
|
||||
import { beforeNavigate } from '$app/navigation'
|
||||
import { PUBLIC_ANALYTICS_KEY, PUBLIC_ANALYTICS_URL } from '$env/static/public'
|
||||
import { PUBLIC_ANALYTICS_DOMAIN } from '$env/static/public'
|
||||
import type { PageData } from './$types'
|
||||
import { onMount, setContext } from 'svelte'
|
||||
import { pageLoading, previousPage } from '$utils/stores'
|
||||
@@ -77,8 +77,5 @@
|
||||
<SmoothScroll />
|
||||
|
||||
{#if browser}
|
||||
<Analytics
|
||||
appKey={PUBLIC_ANALYTICS_KEY}
|
||||
url={PUBLIC_ANALYTICS_URL}
|
||||
/>
|
||||
<Analytics domain={PUBLIC_ANALYTICS_DOMAIN} />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user