     opts['env']      = KONFIG.environment
     opts['hostname'] = KONFIG.hostname
     opts
-
-
-  @setMqClient = (m) -> mqClient = m


    callback()

  errMQClientNotSet = new Error 'Tracker: RabbitMQ client not set'

  @track = (username, event, options = {}, callback = -> ) ->

    return callback null  unless KONFIG.sendEventsToSegment


Analytics = require('analytics-node')
analytics = new Analytics(KONFIG.segment)

module.exports = class Tracker extends bongo.Base

