mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 13:32:04 +00:00
Use Countly tracking method where appropriate.
This commit is contained in:
parent
b841d41b68
commit
0dd3a70b4b
6 changed files with 15 additions and 15 deletions
services/web/public/coffee
|
@ -71,13 +71,13 @@ define [
|
|||
|
||||
# Tracking code.
|
||||
$scope.$watch "ui.view", (newView, oldView) ->
|
||||
event_tracking.send "ide-open-view-#{ newView }" if newView?
|
||||
event_tracking.sendCountly "ide-open-view-#{ newView }" if newView?
|
||||
|
||||
$scope.$watch "ui.chatOpen", (isOpen) ->
|
||||
event_tracking.send "ide-open-chat" if isOpen
|
||||
event_tracking.sendCountly "ide-open-chat" if isOpen
|
||||
|
||||
$scope.$watch "ui.leftMenuShown", (isOpen) ->
|
||||
event_tracking.send "ide-open-left-menu" if isOpen
|
||||
event_tracking.sendCountly "ide-open-left-menu" if isOpen
|
||||
# End of tracking code.
|
||||
|
||||
window._ide = ide
|
||||
|
|
|
@ -4,7 +4,7 @@ define [
|
|||
], (App) ->
|
||||
App.controller "HotkeysController", ($scope, $modal, event_tracking) ->
|
||||
$scope.openHotkeysModal = ->
|
||||
event_tracking.send 'ide-open-hotkeys-modal'
|
||||
event_tracking.sendCountly "ide-open-hotkeys-modal"
|
||||
|
||||
$modal.open {
|
||||
templateUrl: "hotkeysModalTemplate"
|
||||
|
|
|
@ -17,10 +17,10 @@ define [
|
|||
|
||||
# log hints tracking
|
||||
$scope.trackLogHintsLearnMore = () ->
|
||||
event_tracking.send 'logs-hints-learn-more'
|
||||
event_tracking.sendCountly "logs-hints-learn-more"
|
||||
|
||||
trackLogHintsFeedback = (isPositive, hintId) ->
|
||||
event_tracking.send 'log-hints-feedback', { isPositive, hintId }
|
||||
event_tracking.sendCountly "log-hints-feedback", { isPositive, hintId }
|
||||
|
||||
$scope.trackLogHintsPositiveFeedback = (hintId) -> trackLogHintsFeedback true, hintId
|
||||
$scope.trackLogHintsNegativeFeedback = (hintId) -> trackLogHintsFeedback false, hintId
|
||||
|
@ -250,7 +250,7 @@ define [
|
|||
return path
|
||||
|
||||
$scope.recompile = (options = {}) ->
|
||||
event_tracking.send "editor-recompile", options
|
||||
event_tracking.sendCountly "editor-recompile", options
|
||||
|
||||
return if $scope.pdf.compiling
|
||||
|
||||
|
@ -289,7 +289,7 @@ define [
|
|||
|
||||
$scope.toggleLogs = () ->
|
||||
$scope.shouldShowLogs = !$scope.shouldShowLogs
|
||||
event_tracking.send "ide-open-logs" if $scope.shouldShowLogs
|
||||
event_tracking.sendCountly "ide-open-logs" if $scope.shouldShowLogs
|
||||
|
||||
$scope.showPdf = () ->
|
||||
$scope.pdf.view = "pdf"
|
||||
|
@ -297,7 +297,7 @@ define [
|
|||
|
||||
$scope.toggleRawLog = () ->
|
||||
$scope.pdf.showRawLog = !$scope.pdf.showRawLog
|
||||
event_tracking.send "logs-view-raw" if $scope.pdf.showRawLog
|
||||
event_tracking.sendCountly "logs-view-raw" if $scope.pdf.showRawLog
|
||||
|
||||
$scope.openClearCacheModal = () ->
|
||||
modalInstance = $modal.open(
|
||||
|
@ -452,7 +452,7 @@ define [
|
|||
|
||||
App.controller "PdfLogEntryController", ["$scope", "ide", "event_tracking", ($scope, ide, event_tracking) ->
|
||||
$scope.openInEditor = (entry) ->
|
||||
event_tracking.send 'logs-jump-to-location'
|
||||
event_tracking.sendCountly 'logs-jump-to-location'
|
||||
entity = ide.fileTreeManager.findEntityByPath(entry.file)
|
||||
return if !entity? or entity.type != "doc"
|
||||
if entry.line?
|
||||
|
|
|
@ -8,7 +8,7 @@ define [
|
|||
for key in Object.keys(data)
|
||||
changedSetting = key
|
||||
changedSettingVal = data[key]
|
||||
event_tracking.send "setting-changed", { changedSetting, changedSettingVal }
|
||||
event_tracking.sendCountly "setting-changed", { changedSetting, changedSettingVal }
|
||||
# End of tracking code.
|
||||
|
||||
data._csrf = window.csrfToken
|
||||
|
@ -20,7 +20,7 @@ define [
|
|||
for key in Object.keys(data)
|
||||
changedSetting = key
|
||||
changedSettingVal = data[key]
|
||||
event_tracking.send "project-setting-changed", { changedSetting, changedSettingVal}
|
||||
event_tracking.sendCountly "project-setting-changed", { changedSetting, changedSettingVal}
|
||||
# End of tracking code.
|
||||
|
||||
data._csrf = window.csrfToken
|
||||
|
@ -32,7 +32,7 @@ define [
|
|||
for key in Object.keys(data)
|
||||
changedSetting = key
|
||||
changedSettingVal = data[key]
|
||||
event_tracking.send "project-admin-setting-changed", { changedSetting, changedSettingVal }
|
||||
event_tracking.sendCountly "project-admin-setting-changed", { changedSetting, changedSettingVal }
|
||||
# End of tracking code.
|
||||
|
||||
data._csrf = window.csrfToken
|
||||
|
|
|
@ -3,7 +3,7 @@ define [
|
|||
], (App) ->
|
||||
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
|
||||
$scope.openShareProjectModal = () ->
|
||||
event_tracking.send 'ide-open-share-modal'
|
||||
event_tracking.sendCountly "ide-open-share-modal"
|
||||
|
||||
$modal.open(
|
||||
templateUrl: "shareProjectModalTemplate"
|
||||
|
|
|
@ -11,7 +11,7 @@ define [
|
|||
eventData = { key }
|
||||
eventData.segmentation = segmentation if segmentation?
|
||||
|
||||
Countly.q.push(['add_event', eventData]);
|
||||
Countly.q.push([ "add_event", eventData ]);
|
||||
}
|
||||
|
||||
# App.directive "countlyTrack", () ->
|
||||
|
|
Loading…
Add table
Reference in a new issue