replaced plausible with umami
This commit is contained in:
@@ -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')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user