mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Track a few high-frequency events only once.
This commit is contained in:
parent
5ea9558976
commit
64654257a1
3 changed files with 6 additions and 6 deletions
|
@ -72,13 +72,13 @@ define [
|
||||||
# Tracking code.
|
# Tracking code.
|
||||||
$scope.$watch "ui.view", (newView, oldView) ->
|
$scope.$watch "ui.view", (newView, oldView) ->
|
||||||
if newView? and newView != "editor" and newView != "pdf"
|
if newView? and newView != "editor" and newView != "pdf"
|
||||||
event_tracking.sendCountly "ide-open-view-#{ newView }"
|
event_tracking.sendCountlyOnce "ide-open-view-#{ newView }"
|
||||||
|
|
||||||
$scope.$watch "ui.chatOpen", (isOpen) ->
|
$scope.$watch "ui.chatOpen", (isOpen) ->
|
||||||
event_tracking.sendCountly "ide-open-chat" if isOpen
|
event_tracking.sendCountlyOnce "ide-open-chat" if isOpen
|
||||||
|
|
||||||
$scope.$watch "ui.leftMenuShown", (isOpen) ->
|
$scope.$watch "ui.leftMenuShown", (isOpen) ->
|
||||||
event_tracking.sendCountly "ide-open-left-menu" if isOpen
|
event_tracking.sendCountlyOnce "ide-open-left-menu" if isOpen
|
||||||
# End of tracking code.
|
# End of tracking code.
|
||||||
|
|
||||||
window._ide = ide
|
window._ide = ide
|
||||||
|
|
|
@ -333,7 +333,7 @@ define [
|
||||||
|
|
||||||
$scope.toggleLogs = () ->
|
$scope.toggleLogs = () ->
|
||||||
$scope.shouldShowLogs = !$scope.shouldShowLogs
|
$scope.shouldShowLogs = !$scope.shouldShowLogs
|
||||||
event_tracking.sendCountly "ide-open-logs" if $scope.shouldShowLogs
|
event_tracking.sendCountlyOnce "ide-open-logs" if $scope.shouldShowLogs
|
||||||
|
|
||||||
$scope.showPdf = () ->
|
$scope.showPdf = () ->
|
||||||
$scope.pdf.view = "pdf"
|
$scope.pdf.view = "pdf"
|
||||||
|
@ -499,7 +499,7 @@ define [
|
||||||
|
|
||||||
App.controller "PdfLogEntryController", ["$scope", "ide", "event_tracking", ($scope, ide, event_tracking) ->
|
App.controller "PdfLogEntryController", ["$scope", "ide", "event_tracking", ($scope, ide, event_tracking) ->
|
||||||
$scope.openInEditor = (entry) ->
|
$scope.openInEditor = (entry) ->
|
||||||
event_tracking.sendCountly 'logs-jump-to-location'
|
event_tracking.sendCountlyOnce 'logs-jump-to-location'
|
||||||
entity = ide.fileTreeManager.findEntityByPath(entry.file)
|
entity = ide.fileTreeManager.findEntityByPath(entry.file)
|
||||||
return if !entity? or entity.type != "doc"
|
return if !entity? or entity.type != "doc"
|
||||||
if entry.line?
|
if entry.line?
|
||||||
|
|
|
@ -3,7 +3,7 @@ define [
|
||||||
], (App) ->
|
], (App) ->
|
||||||
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
|
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
|
||||||
$scope.openShareProjectModal = () ->
|
$scope.openShareProjectModal = () ->
|
||||||
event_tracking.sendCountly "ide-open-share-modal"
|
event_tracking.sendCountlyOnce "ide-open-share-modal"
|
||||||
|
|
||||||
$modal.open(
|
$modal.open(
|
||||||
templateUrl: "shareProjectModalTemplate"
|
templateUrl: "shareProjectModalTemplate"
|
||||||
|
|
Loading…
Reference in a new issue