Only record pageviews and events on staging/prod

Fixes #11