mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 17:29:56 -05:00
9cd5922cef
[web] Add upgrade-button-click event with source segmentation key GitOrigin-RevId: c095e2e8e521b6aad40509b49cedd1cd6afc0e66
13 lines
371 B
JavaScript
13 lines
371 B
JavaScript
import App from '../../base'
|
|
|
|
export default App.controller(
|
|
'UpgradeSubscriptionController',
|
|
function ($scope, eventTracking) {
|
|
$scope.upgradeSubscription = function () {
|
|
eventTracking.send('subscription-funnel', 'subscription-page', 'upgrade')
|
|
eventTracking.sendMB('upgrade-button-click', {
|
|
source: 'subscription-page',
|
|
})
|
|
}
|
|
}
|
|
)
|