function karmaTrack(path) {
  var l = (window.console && console.log) ? console.log : function(){};
  try {
    if(typeof path !== 'string')
      return l('Path is not a string.');
    if(!pageTracker)
      return l('Page tracker does not exist.');
    if(typeof pageTracker._trackPageview !== 'function')
      return l('_trackPageview is not a function');
    pageTracker._trackPageview(path);
    l('Path tracked: ' + path);
  }
  catch(e) {
    l('Error while tracking: ' + e);
  }
}
