Web analytics - add 'sendPageview()' method

My website uses client-side routing. Because of this, Cloudflare analytics records only the initial page view and does not record subsequent page views while a user navigates around the site.

This could be solved by Cloudflare web analytics two ways:
1.) by adding the ability to manually trigger a page view, similar to this:

ga('send', 'pageview', location);

This is how I achieve it with my current analytics provider, by implementing this in my router during page updates.

2.) Or, by listening for history.pushState events, and sending a page view when that occurs.

window.onpopstate = function(event) {
  // do stuff here
}

Please log the full URL including query string, because it’s significant.

Thanks!

Hi. Thanks for your feedback. We are working to support SPAs (Single Page Apps) near future, so please stay tuned!