Only track events in production

Our production environment has this environment variable set.
Track referrer in API requests