Updated trackmetrics.js