Add event tracking for upgrade button

This commit is contained in:
Jessica Lawshe 2018-03-15 09:22:59 -05:00
parent 47696ea3f1
commit d7756ea2de

View file

@ -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", [