diff --git a/packages/app/src/app/components/StripeMessages/UpgradeSSEToV2.tsx b/packages/app/src/app/components/StripeMessages/UpgradeSSEToV2.tsx index 196c91bd20a..d2035ff490e 100644 --- a/packages/app/src/app/components/StripeMessages/UpgradeSSEToV2.tsx +++ b/packages/app/src/app/components/StripeMessages/UpgradeSSEToV2.tsx @@ -3,6 +3,7 @@ import { useEffects, useAppState } from 'app/overmind'; import { MessageStripe } from '@codesandbox/components'; import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator'; import { hasPermission } from '@codesandbox/common/lib/utils/permission'; +import track from '@codesandbox/common/lib/utils/analytics'; export const UpgradeSSEToV2Stripe = () => { const state = useAppState(); @@ -26,6 +27,8 @@ export const UpgradeSSEToV2Stripe = () => { setIsLoading(true); const sandboxId = state.editor.currentSandbox.id; + track('Editor - Convert to Cloud Sandbox', { owned: canConvert }); + if (canConvert) { const alias = state.editor.currentSandbox.alias;