From d7756ea2dee80e3d8fd6f669a1828274661c740c Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Thu, 15 Mar 2018 09:22:59 -0500 Subject: [PATCH] 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", [