From 47696ea3f1a1d9a1171342acf48b853f06998df8 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 15 Mar 2018 09:21:30 -0500 Subject: [PATCH 1/4] Correct analytics label and send event when group modal opened --- services/web/public/coffee/main/plans.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main/plans.coffee b/services/web/public/coffee/main/plans.coffee index 450331a25f..060517a9d5 100644 --- a/services/web/public/coffee/main/plans.coffee +++ b/services/web/public/coffee/main/plans.coffee @@ -369,9 +369,10 @@ define [ $scope.switchToAnnual = -> $scope.ui.view = "annual" - event_tracking.send 'subscription-funnel', 'plans-page', 'student-prices' + event_tracking.send 'subscription-funnel', 'plans-page', 'annual-prices' $scope.openGroupPlanModal = () -> $modal.open { templateUrl: "groupPlanModalTemplate" } + event_tracking.send 'subscription-funnel', 'plans-page', 'group-inquiry-potential' From d7756ea2dee80e3d8fd6f669a1828274661c740c Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 15 Mar 2018 09:22:59 -0500 Subject: [PATCH 2/4] Add event tracking for upgrade button --- services/web/public/coffee/main/account-settings.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main/account-settings.coffee b/services/web/public/coffee/main/account-settings.coffee index 54cd8de1ea..82d323110e 100644 --- a/services/web/public/coffee/main/account-settings.coffee +++ b/services/web/public/coffee/main/account-settings.coffee @@ -1,7 +1,7 @@ define [ "base" ], (App) -> - App.controller "AccountSettingsController", ["$scope", "$http", "$modal", ($scope, $http, $modal) -> + App.controller "AccountSettingsController", ["$scope", "$http", "$modal", "event_tracking", ($scope, $http, $modal, event_tracking) -> $scope.subscribed = true $scope.unsubscribe = () -> @@ -24,6 +24,9 @@ define [ controller: "DeleteAccountModalController", scope: $scope ) + + $scope.upgradeIntegration = (service) -> + event_tracking.send 'subscription-funnel', 'settings-page', service ] App.controller "DeleteAccountModalController", [ From 89cfd98af34acd333cde8fa11008c1198f2caccb Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 15 Mar 2018 11:18:06 -0500 Subject: [PATCH 3/4] Add details to analytics label --- services/web/app/views/subscriptions/plans.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/subscriptions/plans.pug b/services/web/app/views/subscriptions/plans.pug index 032b535026..bafb855ff7 100644 --- a/services/web/app/views/subscriptions/plans.pug +++ b/services/web/app/views/subscriptions/plans.pug @@ -167,7 +167,7 @@ block content br a.btn.btn-info( ng-href="/user/subscription/new?planCode=student{{ plansVariant == 'default' ? planQueryString : '_'+plansVariant }}¤cy={{currencyCode}}", - ng-click="signUpNowClicked('student')" + ng-click="signUpNowClicked('student-monthly')" ) #{translate("start_free_trial")} .col-md-4 @@ -190,7 +190,7 @@ block content br a.btn.btn-info( ng-href="/user/subscription/new?planCode=student-annual{{ plansVariant == 'default' ? '' : '_'+plansVariant }}¤cy={{currencyCode}}", - ng-click="signUpNowClicked('student')" + ng-click="signUpNowClicked('student-annual')" ) #{translate("buy_now")} From 5cc6fb8843c4740857aeed00ef9bdef917898534 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 15 Mar 2018 11:21:17 -0500 Subject: [PATCH 4/4] Send analytics event after submitting group inquiry form --- services/web/public/coffee/main/contact-us.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/public/coffee/main/contact-us.coffee b/services/web/public/coffee/main/contact-us.coffee index 138f459890..2d1dee6d34 100644 --- a/services/web/public/coffee/main/contact-us.coffee +++ b/services/web/public/coffee/main/contact-us.coffee @@ -103,5 +103,6 @@ define [ request.then (response)-> $scope.sent = true + event_tracking.send 'subscription-funnel', 'plans-page', 'group-inquiry-sent' $scope.error = (response.status != 200) $scope.$apply()