Manually trigger page view
Google Analytics allows you to manually trigger a page view for situations where a page's content is fetched using AJAX using something like:
window.ga('send', 'pageview', window.location.pathname);
This would be helpful in single page apps for example.
4
votes
John Hughes
shared this idea