Added analytics pageview to api