updated analytics and added SPA analytics