mirror of
https://github.com/jakobkordez/call-tester.git
synced 2025-05-30 15:40:27 +00:00
Umami fixes
This commit is contained in:
parent
be8d8df00a
commit
52ee8cbfc4
@ -20,6 +20,7 @@
|
||||
"@tailwindcss/typography": "^0.5.13",
|
||||
"@types/eslint": "^8.56.7",
|
||||
"@types/node": "^20.14.6",
|
||||
"@types/umami": "^2.10.0",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"eslint": "^9.0.0",
|
||||
|
@ -1,11 +1,26 @@
|
||||
<script lang="ts">
|
||||
import { PUBLIC_ANALYTICS_URL, PUBLIC_ANALYTICS_ID } from '$env/static/public';
|
||||
import { PUBLIC_ANALYTICS_URL, PUBLIC_ANALYTICS_ID } from '$env/static/public';
|
||||
import { afterNavigate } from '$app/navigation';
|
||||
|
||||
export const ssr = false;
|
||||
export const prerender = false;
|
||||
export const csr = true;
|
||||
export const ssr = false;
|
||||
export const prerender = false;
|
||||
export const csr = true;
|
||||
|
||||
afterNavigate((e) => {
|
||||
if (window.umami && e.from?.route.id !== e.to?.route.id) {
|
||||
window.umami.track((p) => ({
|
||||
...p,
|
||||
url: e.to?.route.id
|
||||
}));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if PUBLIC_ANALYTICS_URL && PUBLIC_ANALYTICS_ID}
|
||||
<script defer src={PUBLIC_ANALYTICS_URL} data-website-id={PUBLIC_ANALYTICS_ID}></script>
|
||||
{/if}
|
||||
<script
|
||||
defer
|
||||
data-auto-track="false"
|
||||
src={PUBLIC_ANALYTICS_URL}
|
||||
data-website-id={PUBLIC_ANALYTICS_ID}
|
||||
></script>
|
||||
{/if}
|
||||
|
@ -1,2 +1,3 @@
|
||||
export const ssr = true;
|
||||
export const prerender = true;
|
||||
export const trailingSlash = 'always';
|
||||
|
@ -448,6 +448,11 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/pug/-/pug-2.0.10.tgz#52f8dbd6113517aef901db20b4f3fca543b88c1f"
|
||||
integrity sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==
|
||||
|
||||
"@types/umami@^2.10.0":
|
||||
version "2.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/umami/-/umami-2.10.0.tgz#0897ada5ea5b4c22fce2ff3fa2ccf9e1aef15083"
|
||||
integrity sha512-iWcs1KkcO3ooIi2rR9M5drmpQzlsT+sFiyWElIGmVwjdGlp+vQmy/VYIChYnF5ETqx7KrL80JfSkroS6dm37Hg==
|
||||
|
||||
"@types/xml2js@^0.4.14":
|
||||
version "0.4.14"
|
||||
resolved "https://registry.yarnpkg.com/@types/xml2js/-/xml2js-0.4.14.tgz#5d462a2a7330345e2309c6b549a183a376de8f9a"
|
||||
|
Loading…
x
Reference in New Issue
Block a user