code: function(render, fn) {
        if (typeof render === 'function') {
          fn = render;
          render = false;
        }
  
        // separate the tracking of the application over rendered pages
        if (render) {
          app.render('partials/analytics', function(error, html) {
            if (error) {
              return fn(error);
            }
  
            // hack :-\ (because the HTML gets cached)
            fn(
              error,
              html.replace(config.analytics.id, config.analytics['render-id'])
            );
          });
        } else {
          // this doesn't get called anymore
          app.render('analytics', { id: app.get('analytics id') }, fn);
        }
      }
docs: Renders the analytics snippet. Accepts a callback that recieves and error and html object.