       api.batch   = batch
 
       core.data.api = api
+      core.track = (eventName, params)->
+        api("track/#{eventName}", 'post', params)
+
+      sandbox.track = (eventName, params)->
+        core.track(eventName, params)
 
       initialized = core.data.deferred()
 

        dfd

      models = {}

      setupModel = (attrs)->
        if attrs.id
          model = new Model(attrs)

          backbone: { exports: 'Backbone', deps: ['underscore', 'jquery'] }

    init: (env)->
      core    = env.core
      sandbox = env.sandbox

      _         = require('underscore')
      Backbone  = require('backbone')
      easyXDM   = require('easyXDM')
