message: Improves development/debugging experience for analytics
diff: @@ -52,19 +52,22 @@ categories =
  other: 'Other Events'
  module.exports.track = track =
  - reduce(Object.keys(categories), (memo, kind) ->
  + reduce Object.keys(categories), (memo, kind) ->
  memo[kind] = (description, options = {}) ->
  - # Send google analytics event
  - ga? 'send', {
  + if NODE_ENV is 'development'
  + console.info "analytics.#{kind}: #{description}", options
  +
  + else
  + ga? 'send',
  hitType: 'event'
  - eventCategory: options.category || 'UI Interactions'
  + eventCategory: options.category or 'UI Interactions'
  eventAction: description
  eventLabel: options.label
  eventValue: options.value
  - nonInteraction: (if options.category in ['Funnel Progressions', 'Impressions', 'Timing'] then 1 else 0)
  - }
  + nonInteraction: if options.category in ['Funnel Progressions', 'Impressions', 'Timing'] then 1 else 0
  +
  memo
  - , {})
  + , {}
  module.exports.exception = (errorObj) ->
  @ga? 'send', 'exception', errorObj
  