feat: add page view to telemetry
This commit is contained in:
@@ -20,8 +20,14 @@ import { initUserInfo } from "~/helpers/teams/BackendUserInfo"
|
||||
import { registerApolloAuthUpdate } from "~/helpers/apollo"
|
||||
import { initializeFirebase } from "~/helpers/fb"
|
||||
import { getSettingSubject } from "~/newstore/settings"
|
||||
import { logPageView } from "~/helpers/fb/analytics"
|
||||
|
||||
export default {
|
||||
watch: {
|
||||
$route(to) {
|
||||
logPageView(to.fullPath)
|
||||
},
|
||||
},
|
||||
beforeMount() {
|
||||
registerApolloAuthUpdate()
|
||||
|
||||
@@ -35,7 +41,6 @@ export default {
|
||||
},
|
||||
async mounted() {
|
||||
performMigrations()
|
||||
|
||||
console.log(
|
||||
"%cWe ❤︎ open source!",
|
||||
"background-color:white;padding:8px 16px;border-radius:8px;font-size:32px;color:red;"
|
||||
@@ -71,6 +76,8 @@ export default {
|
||||
|
||||
initializeFirebase()
|
||||
initUserInfo()
|
||||
|
||||
logPageView(this.$router.currentRoute.fullPath)
|
||||
},
|
||||
beforeDestroy() {
|
||||
document.removeEventListener("keydown", this._keyListener)
|
||||
|
||||
Reference in New Issue
Block a user