Merge pull request #7331 from overleaf/ab-upgrade-button-event

[web] Add upgrade-button-click event with source segmentation key

GitOrigin-RevId: c095e2e8e521b6aad40509b49cedd1cd6afc0e66
This commit is contained in:
Alexandre Bourdin 2022-04-06 14:33:34 +02:00 committed by Copybot
parent b28271082c
commit 9cd5922cef
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,9 @@ export default App.controller(
$scope.upgradeSubscription = function () { $scope.upgradeSubscription = function () {
eventTracking.send('subscription-funnel', 'project-page', 'upgrade') eventTracking.send('subscription-funnel', 'project-page', 'upgrade')
eventTracking.sendMB('upgrade-button-click', {
source: 'dashboard',
})
} }
$scope.share = function () { $scope.share = function () {

View file

@ -5,7 +5,9 @@ export default App.controller(
function ($scope, eventTracking) { function ($scope, eventTracking) {
$scope.upgradeSubscription = function () { $scope.upgradeSubscription = function () {
eventTracking.send('subscription-funnel', 'subscription-page', 'upgrade') eventTracking.send('subscription-funnel', 'subscription-page', 'upgrade')
eventTracking.sendMB('subscription-page-upgrade-button-click') eventTracking.sendMB('upgrade-button-click', {
source: 'subscription-page',
})
} }
} }
) )