use google analytics with spa code example Example: how to set page in GA ga('set', 'page', '/new-page.html');