Move eventTrack() calls to top of code