Add mixpanel to VersionCard
This commit is contained in:
@@ -89,9 +89,7 @@
|
||||
v-if="isLimited"
|
||||
color="outline"
|
||||
size="sm"
|
||||
@click="
|
||||
navigateTo(settingsWorkspaceRoutes.billing.route(activeWorkspaceSlug || ''))
|
||||
"
|
||||
@click="handleUpgradeClick"
|
||||
>
|
||||
Upgrade
|
||||
</FormButton>
|
||||
@@ -180,4 +178,13 @@ const handleViewChanges = () => {
|
||||
action: 'enable'
|
||||
})
|
||||
}
|
||||
|
||||
const handleUpgradeClick = () => {
|
||||
mp.track('Hidden Version Button Clicked', {
|
||||
location: 'viewer',
|
||||
// eslint-disable-next-line camelcase
|
||||
workspace_id: activeWorkspaceSlug.value
|
||||
})
|
||||
navigateTo(settingsWorkspaceRoutes.billing.route(activeWorkspaceSlug.value || ''))
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user