diff options
Diffstat (limited to 'src/features/planSelection/containers/PlanSelectionScreen.js')
-rw-r--r-- | src/features/planSelection/containers/PlanSelectionScreen.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/features/planSelection/containers/PlanSelectionScreen.js b/src/features/planSelection/containers/PlanSelectionScreen.js index 6e8cdbf47..3f9638e9d 100644 --- a/src/features/planSelection/containers/PlanSelectionScreen.js +++ b/src/features/planSelection/containers/PlanSelectionScreen.js | |||
@@ -9,7 +9,7 @@ import UserStore from '../../../stores/UserStore'; | |||
9 | import PlanSelection from '../components/PlanSelection'; | 9 | import PlanSelection from '../components/PlanSelection'; |
10 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | 10 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; |
11 | import { planSelectionStore, GA_CATEGORY_PLAN_SELECTION } from '..'; | 11 | import { planSelectionStore, GA_CATEGORY_PLAN_SELECTION } from '..'; |
12 | import { gaEvent } from '../../../lib/analytics'; | 12 | import { gaEvent, gaPage } from '../../../lib/analytics'; |
13 | 13 | ||
14 | const { dialog, app } = remote; | 14 | const { dialog, app } = remote; |
15 | 15 | ||
@@ -80,6 +80,8 @@ class PlanSelectionScreen extends Component { | |||
80 | } | 80 | } |
81 | }} | 81 | }} |
82 | stayOnFree={() => { | 82 | stayOnFree={() => { |
83 | gaPage('/select-plan/downgrade'); | ||
84 | |||
83 | const selection = dialog.showMessageBoxSync(app.mainWindow, { | 85 | const selection = dialog.showMessageBoxSync(app.mainWindow, { |
84 | type: 'question', | 86 | type: 'question', |
85 | message: intl.formatMessage(messages.dialogTitle), | 87 | message: intl.formatMessage(messages.dialogTitle), |
@@ -101,7 +103,7 @@ class PlanSelectionScreen extends Component { | |||
101 | } else { | 103 | } else { |
102 | this.upgradeAccount(plans.personal.yearly.id); | 104 | this.upgradeAccount(plans.personal.yearly.id); |
103 | 105 | ||
104 | gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Revoke'); | 106 | gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Downgrade'); |
105 | } | 107 | } |
106 | }} | 108 | }} |
107 | subscriptionExpired={user.team && user.team.state === 'expired' && !user.team.userHasDowngraded} | 109 | subscriptionExpired={user.team && user.team.state === 'expired' && !user.team.userHasDowngraded} |