modified event tracking code to work with new analytics.js