mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 22:54:31 +02:00
feat: google analytics tracking
I LOVE TELEMETRY
This commit is contained in:
parent
a9835a74bf
commit
8458e95927
@ -9,6 +9,7 @@
|
|||||||
import { derived } from 'svelte/store';
|
import { derived } from 'svelte/store';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
|
import { page } from '$app/stores';
|
||||||
|
|
||||||
import { QueryClient } from '@tanstack/query-core';
|
import { QueryClient } from '@tanstack/query-core';
|
||||||
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
import { persistQueryClient } from '@tanstack/query-persist-client-core';
|
||||||
@ -55,6 +56,19 @@
|
|||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- telemetry good -->
|
||||||
|
<svelte:head>
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PLH0N9VQL5"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() {
|
||||||
|
dataLayer.push(arguments);
|
||||||
|
}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-PLH0N9VQL5');
|
||||||
|
</script>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<NavHost />
|
<NavHost />
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user