replaced plausible with umami

This commit is contained in:
2023-11-26 11:10:59 +01:00
parent 43198a382b
commit ba0000af2a
4 changed files with 2 additions and 17 deletions
-7
View File
@@ -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>
-7
View File
@@ -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 -3
View File
@@ -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')
}
}