mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add sampled tracking method.
This commit is contained in:
parent
3a24c4bff9
commit
07cce99c17
2 changed files with 6 additions and 1 deletions
|
@ -267,7 +267,9 @@ define [
|
||||||
return path
|
return path
|
||||||
|
|
||||||
$scope.recompile = (options = {}) ->
|
$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
|
return if $scope.pdf.compiling
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,9 @@ define [
|
||||||
eventData = { key }
|
eventData = { key }
|
||||||
eventData.segmentation = segmentation if segmentation?
|
eventData.segmentation = segmentation if segmentation?
|
||||||
Countly?.q.push([ "add_event", eventData ]);
|
Countly?.q.push([ "add_event", eventData ]);
|
||||||
|
|
||||||
|
sendCountlySampled: (key, segmentation) ->
|
||||||
|
@sendCountly key, segmentation if Math.random() < .01
|
||||||
}
|
}
|
||||||
|
|
||||||
# App.directive "countlyTrack", () ->
|
# App.directive "countlyTrack", () ->
|
||||||
|
|
Loading…
Reference in a new issue