From 6c04bc87127f97075aed49315e987c259bfbf290 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 25 Apr 2019 15:20:43 +0100 Subject: [PATCH] Merge pull request #1728 from sharelatex/jel-feature-event Track events that display "Start Free Trial" buttons GitOrigin-RevId: 4890d8f1da8b0cd47d7c97eab322e6048f774d30 --- .../review-panel/controllers/ReviewPanelController.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/web/public/src/ide/review-panel/controllers/ReviewPanelController.js b/services/web/public/src/ide/review-panel/controllers/ReviewPanelController.js index d9acc4245b..366bb086bc 100644 --- a/services/web/public/src/ide/review-panel/controllers/ReviewPanelController.js +++ b/services/web/public/src/ide/review-panel/controllers/ReviewPanelController.js @@ -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