mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Actually send the data to Countly.
This commit is contained in:
parent
5c121a5f05
commit
b841d41b68
1 changed files with 16 additions and 2 deletions
|
@ -6,10 +6,24 @@ define [
|
||||||
return {
|
return {
|
||||||
send: (category, action, label, value)->
|
send: (category, action, label, value)->
|
||||||
ga('send', 'event', category, action, label, value)
|
ga('send', 'event', category, action, label, value)
|
||||||
event_name = "#{action}-#{category}"
|
|
||||||
window?.heap?.track?(event_name, {label, value})
|
sendCountly: (key, segmentation) ->
|
||||||
|
eventData = { key }
|
||||||
|
eventData.segmentation = segmentation if segmentation?
|
||||||
|
|
||||||
|
Countly.q.push(['add_event', eventData]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# App.directive "countlyTrack", () ->
|
||||||
|
# return {
|
||||||
|
# restrict: "A"
|
||||||
|
# scope: false,
|
||||||
|
# link: (scope, el, attrs) ->
|
||||||
|
# eventKey = attrs.countlyTrack
|
||||||
|
# if (eventKey?)
|
||||||
|
# el.on "click", () ->
|
||||||
|
# console.log eventKey
|
||||||
|
# }
|
||||||
|
|
||||||
#header
|
#header
|
||||||
$('.navbar a').on "click", (e)->
|
$('.navbar a').on "click", (e)->
|
||||||
|
|
Loading…
Reference in a new issue