replaced plausible with umami
This commit is contained in:
parent
43198a382b
commit
ba0000af2a
|
@ -12,6 +12,7 @@
|
|||
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" sizes="180x180">
|
||||
<link rel="mask-icon" href="/icons/favicon.svg" color="#1C1917">
|
||||
<meta name="theme-color" content="#1C1917">
|
||||
<script async src="https://stats.scambier.xyz/script.js" data-website-id="25b0bcf4-c4c1-4da4-a1bd-3251f7bc3878"></script>
|
||||
</head>
|
||||
|
||||
<body class="bg-stone-300 text-stone-900 dark:bg-stone-900 dark:text-stone-200 h-full relative">
|
||||
|
|
|
@ -20,14 +20,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
import { plausible } from '@/analytics'
|
||||
import AppHeader from '@/components/AppHeader.vue'
|
||||
import SideMenu from '@/components/SideMenu.vue'
|
||||
import ToastMessage from '@/components/ToastMessage.vue'
|
||||
|
||||
onMounted(() => {
|
||||
plausible.enableAutoPageviews()
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import Plausible from 'plausible-tracker'
|
||||
|
||||
// Setup tracking
|
||||
export const plausible = Plausible({
|
||||
domain: 'n0mbers.scambier.xyz',
|
||||
apiHost: 'https://stats.scambier.xyz',
|
||||
})
|
|
@ -1,7 +1,6 @@
|
|||
import { merge } from 'lodash-es'
|
||||
import { reactive, watch } from 'vue'
|
||||
|
||||
// import { plausible } from '@/analytics'
|
||||
import { LSK_STATS } from '@/globals'
|
||||
import * as storage from '@/storage'
|
||||
import { GameStats } from '@/types'
|
||||
|
@ -62,8 +61,7 @@ function setScore(seed: string, won: boolean, score: number): void {
|
|||
// Don't overwrite an existing score
|
||||
if (!gameStats.games[seed]) {
|
||||
gameStats.games[seed] = { score, won }
|
||||
// plausible.trackEvent(won ? 'win_game' : 'lose_game')
|
||||
// plausible.trackEvent('end_game')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user