Migrate event tracking to use analytics.js