var loadTwitterWidget = function(){
// Here you should add a line like
// if(typeof twttr === 'undefined') return;
twttr.ready(function(twttr) {
twttr.events.bind('tweet', function (event) {
_gaq.push(['_trackEvent', "Engagement", "Share-Twitter", username]);
});
twttr.widgets.load();
});
};
The user download count shows up, but the individual package graph fails. The error comes from loadTwitterWidget:
https://github.com/matteofigus/npm-stats-www/blob/master/public/javascripts/views/user.js#L112