mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 18:24:29 +00:00
Add event tracking for upgrade button
This commit is contained in:
parent
47696ea3f1
commit
d7756ea2de
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
define [
|
define [
|
||||||
"base"
|
"base"
|
||||||
], (App) ->
|
], (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.subscribed = true
|
||||||
|
|
||||||
$scope.unsubscribe = () ->
|
$scope.unsubscribe = () ->
|
||||||
|
@ -24,6 +24,9 @@ define [
|
||||||
controller: "DeleteAccountModalController",
|
controller: "DeleteAccountModalController",
|
||||||
scope: $scope
|
scope: $scope
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$scope.upgradeIntegration = (service) ->
|
||||||
|
event_tracking.send 'subscription-funnel', 'settings-page', service
|
||||||
]
|
]
|
||||||
|
|
||||||
App.controller "DeleteAccountModalController", [
|
App.controller "DeleteAccountModalController", [
|
||||||
|
|
Loading…
Reference in a new issue