Google Analytics for Sapper (Svelte)
npm install sapper-google-analyticsIt's not enough to just add Analytics code for SPA sites,
as it doesn't track client-side navigation. So we
have to pass navigation events manually and this component
does exactly this.
Install the component:
``sh`
npm i sapper-google-analytics
And add it to your src/routes/_layout.svelte:
`html
``