Merge pull request #1728 from sharelatex/jel-feature-event

Track events that display "Start Free Trial" buttons

GitOrigin-RevId: 4890d8f1da8b0cd47d7c97eab322e6048f774d30
This commit is contained in:
Simon Detheridge 2019-04-25 15:20:43 +01:00 committed by sharelatex
parent cc96ecfd74
commit 6c04bc8712

View file

@ -907,10 +907,19 @@ define([
return ($scope.reviewPanel.fullTCStateCollapsed = !$scope.reviewPanel
.fullTCStateCollapsed)
} else {
_sendAnalytics()
return $scope.openTrackChangesUpgradeModal()
}
}
const _sendAnalytics = () => {
event_tracking.send(
'subscription-funnel',
'editor-click-feature',
'real-time-track-changes'
)
}
const _setUserTCState = function(userId, newValue, isLocal) {
if (isLocal == null) {
isLocal = false