aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/planSelection/containers/PlanSelectionScreen.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:56 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-24 15:15:56 +0200
commite0dde8a91b9999a0ae9dcb842846a5b647087206 (patch)
treea2225479d1d680fa9a0e1a80ab5bd7727d49d1b0 /src/features/planSelection/containers/PlanSelectionScreen.js
parentMerge https://github.com/meetfranz/franz into franz-5.4.0-release (diff)
downloadferdium-app-e0dde8a91b9999a0ae9dcb842846a5b647087206.tar.gz
ferdium-app-e0dde8a91b9999a0ae9dcb842846a5b647087206.tar.zst
ferdium-app-e0dde8a91b9999a0ae9dcb842846a5b647087206.zip
Remove Analytics
Diffstat (limited to 'src/features/planSelection/containers/PlanSelectionScreen.js')
-rw-r--r--src/features/planSelection/containers/PlanSelectionScreen.js9
1 files changed, 0 insertions, 9 deletions
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';
9import PlanSelection from '../components/PlanSelection'; 9import PlanSelection from '../components/PlanSelection';
10import ErrorBoundary from '../../../components/util/ErrorBoundary'; 10import ErrorBoundary from '../../../components/util/ErrorBoundary';
11import { planSelectionStore, GA_CATEGORY_PLAN_SELECTION } from '..'; 11import { planSelectionStore, GA_CATEGORY_PLAN_SELECTION } from '..';
12import { gaEvent, gaPage } from '../../../lib/analytics';
13 12
14const { dialog, app } = remote; 13const { 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}