Fix analytics page views after upgrading react router
getting rid of some deprecation warnings from react