diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/features/planSelection/components/PlanSelection.js | 2 | ||||
-rw-r--r-- | src/features/planSelection/containers/PlanSelectionScreen.js | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/features/planSelection/components/PlanSelection.js b/src/features/planSelection/components/PlanSelection.js index b6bb9d32d..4bf5238dd 100644 --- a/src/features/planSelection/components/PlanSelection.js +++ b/src/features/planSelection/components/PlanSelection.js | |||
@@ -12,7 +12,6 @@ import { i18nPlanName } from '../../../helpers/plan-helpers'; | |||
12 | import { PLANS } from '../../../config'; | 12 | import { PLANS } from '../../../config'; |
13 | import { FeatureList } from '../../../components/ui/FeatureList'; | 13 | import { FeatureList } from '../../../components/ui/FeatureList'; |
14 | import Appear from '../../../components/ui/effects/Appear'; | 14 | import Appear from '../../../components/ui/effects/Appear'; |
15 | import { gaPage } from '../../../lib/analytics'; | ||
16 | 15 | ||
17 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
18 | welcome: { | 17 | welcome: { |
@@ -185,7 +184,6 @@ class PlanSelection extends Component { | |||
185 | }; | 184 | }; |
186 | 185 | ||
187 | componentDidMount() { | 186 | componentDidMount() { |
188 | gaPage('/select-plan'); | ||
189 | } | 187 | } |
190 | 188 | ||
191 | render() { | 189 | render() { |
diff --git a/src/features/planSelection/containers/PlanSelectionScreen.js b/src/features/planSelection/containers/PlanSelectionScreen.js index cb62f45d3..d04668279 100644 --- a/src/features/planSelection/containers/PlanSelectionScreen.js +++ b/src/features/planSelection/containers/PlanSelectionScreen.js | |||
@@ -9,7 +9,6 @@ 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, gaPage } from '../../../lib/analytics'; | ||
13 | 12 | ||
14 | const { dialog, app } = remote; | 13 | const { dialog, app } = remote; |
15 | 14 | ||
@@ -67,8 +66,6 @@ class PlanSelectionScreen extends Component { | |||
67 | upgradeAccount={(planId) => { | 66 | upgradeAccount={(planId) => { |
68 | if (user.data.hadSubscription) { | 67 | if (user.data.hadSubscription) { |
69 | this.upgradeAccount(planId); | 68 | this.upgradeAccount(planId); |
70 | |||
71 | gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', planId); | ||
72 | } else { | 69 | } else { |
73 | activateTrial({ | 70 | activateTrial({ |
74 | planId, | 71 | planId, |
@@ -76,8 +73,6 @@ class PlanSelectionScreen extends Component { | |||
76 | } | 73 | } |
77 | }} | 74 | }} |
78 | stayOnFree={() => { | 75 | stayOnFree={() => { |
79 | gaPage('/select-plan/downgrade'); | ||
80 | |||
81 | const selection = dialog.showMessageBoxSync(app.mainWindow, { | 76 | const selection = dialog.showMessageBoxSync(app.mainWindow, { |
82 | type: 'question', | 77 | type: 'question', |
83 | message: intl.formatMessage(messages.dialogTitle), | 78 | message: intl.formatMessage(messages.dialogTitle), |
@@ -91,15 +86,11 @@ class PlanSelectionScreen extends Component { | |||
91 | ], | 86 | ], |
92 | }); | 87 | }); |
93 | 88 | ||
94 | gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Stay on Free'); | ||
95 | |||
96 | if (selection === 0) { | 89 | if (selection === 0) { |
97 | downgradeAccount(); | 90 | downgradeAccount(); |
98 | hideOverlay(); | 91 | hideOverlay(); |
99 | } else { | 92 | } else { |
100 | this.upgradeAccount(plans.personal.yearly.id); | 93 | this.upgradeAccount(plans.personal.yearly.id); |
101 | |||
102 | gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Downgrade'); | ||
103 | } | 94 | } |
104 | }} | 95 | }} |
105 | subscriptionExpired={user.team && user.team.state === 'expired' && !user.team.userHasDowngraded} | 96 | subscriptionExpired={user.team && user.team.state === 'expired' && !user.team.userHasDowngraded} |