From e0dde8a91b9999a0ae9dcb842846a5b647087206 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 24 Oct 2019 15:15:56 +0200 Subject: Remove Analytics --- src/features/planSelection/components/PlanSelection.js | 2 -- src/features/planSelection/containers/PlanSelectionScreen.js | 9 --------- 2 files changed, 11 deletions(-) (limited to 'src') 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'; import { PLANS } from '../../../config'; import { FeatureList } from '../../../components/ui/FeatureList'; import Appear from '../../../components/ui/effects/Appear'; -import { gaPage } from '../../../lib/analytics'; const messages = defineMessages({ welcome: { @@ -185,7 +184,6 @@ class PlanSelection extends Component { }; componentDidMount() { - gaPage('/select-plan'); } 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'; import PlanSelection from '../components/PlanSelection'; import ErrorBoundary from '../../../components/util/ErrorBoundary'; import { planSelectionStore, GA_CATEGORY_PLAN_SELECTION } from '..'; -import { gaEvent, gaPage } from '../../../lib/analytics'; const { dialog, app } = remote; @@ -67,8 +66,6 @@ class PlanSelectionScreen extends Component { upgradeAccount={(planId) => { if (user.data.hadSubscription) { this.upgradeAccount(planId); - - gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', planId); } else { activateTrial({ planId, @@ -76,8 +73,6 @@ class PlanSelectionScreen extends Component { } }} stayOnFree={() => { - gaPage('/select-plan/downgrade'); - const selection = dialog.showMessageBoxSync(app.mainWindow, { type: 'question', message: intl.formatMessage(messages.dialogTitle), @@ -91,15 +86,11 @@ class PlanSelectionScreen extends Component { ], }); - gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Stay on Free'); - if (selection === 0) { downgradeAccount(); hideOverlay(); } else { this.upgradeAccount(plans.personal.yearly.id); - - gaEvent(GA_CATEGORY_PLAN_SELECTION, 'SelectPlan', 'Downgrade'); } }} subscriptionExpired={user.team && user.team.state === 'expired' && !user.team.userHasDowngraded} -- cgit v1.2.3-70-g09d2