mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 21:13:43 -05:00
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:
parent
cc96ecfd74
commit
6c04bc8712
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue