Can this be moved up to where trackEvent is created?