Fix analytics with pageview event