overleaf/services/web/frontend/js/main/subscription/upgrade-subscription.js
Jakob Ackermann 614734c3e1 Merge pull request #4100 from overleaf/ab-sub-page-click-event
Add event on subscription page upgrade button click

GitOrigin-RevId: 964eb6ad2d6ee7eceb3aac54501a61601d4948ac
2021-05-28 02:08:41 +00:00

11 lines
341 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('subscription-page-upgrade-button-click')
}
}
)