mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 14:40:47 +02:00
Add sampled tracking method.
This commit is contained in:
@@ -267,7 +267,9 @@ define [
|
||||
return path
|
||||
|
||||
$scope.recompile = (options = {}) ->
|
||||
event_tracking.sendCountly "editor-recompile", options
|
||||
# event_tracking.sendCountly "editor-recompile", options
|
||||
|
||||
event_tracking.sendCountlySampled "editor-recompile", options
|
||||
|
||||
return if $scope.pdf.compiling
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@ define [
|
||||
eventData = { key }
|
||||
eventData.segmentation = segmentation if segmentation?
|
||||
Countly?.q.push([ "add_event", eventData ]);
|
||||
|
||||
sendCountlySampled: (key, segmentation) ->
|
||||
@sendCountly key, segmentation if Math.random() < .01
|
||||
}
|
||||
|
||||
# App.directive "countlyTrack", () ->
|
||||
|
||||
Reference in New Issue
Block a user