mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 22:50:46 +02:00
Add event tracking for upgrade button
This commit is contained in:
@@ -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", [
|
||||
|
||||
Reference in New Issue
Block a user