2014-02-12 05:23:40 -05:00
|
|
|
define () ->
|
|
|
|
class AnalyticsManager
|
|
|
|
constructor: (@ide) ->
|
|
|
|
@ide.editor.on "update:doc", () =>
|
|
|
|
@updateCount ||= 0
|
|
|
|
@updateCount++
|
|
|
|
if @updateCount == 100
|
2014-03-08 13:31:07 -05:00
|
|
|
ga('send', 'event', 'editor-interaction', 'multi-doc-update')
|
2014-02-12 05:23:40 -05:00
|
|
|
|
|
|
|
@ide.pdfManager.on "compile:pdf", () =>
|
|
|
|
@compileCount ||= 0
|
|
|
|
@compileCount++
|
|
|
|
if @compileCount == 1
|
2014-03-08 13:31:07 -05:00
|
|
|
ga('send', 'event', 'editor-interaction', 'single-compile')
|
2014-02-12 05:23:40 -05:00
|
|
|
if @compileCount == 3
|
2014-03-08 13:31:07 -05:00
|
|
|
ga('send', 'event', 'editor-interaction', 'multi-compile')
|