overleaf/services/web/frontend/js/main/subscription/upgrade-subscription.js
Alexandre Bourdin 9cd5922cef Merge pull request #7331 from overleaf/ab-upgrade-button-event
[web] Add upgrade-button-click event with source segmentation key

GitOrigin-RevId: c095e2e8e521b6aad40509b49cedd1cd6afc0e66
2022-04-07 08:04:05 +00:00

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',
})
}
}
)