Files
speckle-server/packages/frontend/src/embed/EmbedApp.vue
T
2022-04-04 19:00:24 +03:00

22 lines
534 B
Vue

<template lang="html">
<router-view />
</template>
<script>
export default {
components: {},
mounted() {
const mixpanelId = this.$mixpanelId()
this.$mixpanel.register({
// Unfortunately we can't replace this to camelCase, because that will break metrics
// eslint-disable-next-line camelcase
server_id: this.$mixpanelServerId(),
hostApp: 'web-embed'
})
if (mixpanelId !== null) {
this.$mixpanel.identify(mixpanelId)
}
this.$mixpanel.track('Visit Embed App')
}
}
</script>