Add mixpanel to VersionCard

This commit is contained in:
andrewwallacespeckle
2025-04-19 12:40:13 +01:00
parent a00e3f3013
commit 63b60bcda7
@@ -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>