Web Analytics with Progressive Web Site (Gatsby.js)

I just added the script tag for Cloudflare Web Analytics, and I was able to see some data in the dashboard.
However, I can see analytics for root path only, not sub paths.
I use Gatsby.js and as you might know, it only loads the first page you visit and then, either preload the others or make an API call. From the user perspective, they see the URL changed, so it should be considered a page view.

It looks that Web Analytics beacon script only sends data on page load.

Web Analytics is currently not supporting Single Page Apps such as Gatsby.js.
We are working on a solution that we are hoping to release soon.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

We are supporting SPAs now. Please see more details from the latest blog post: Enhancing privacy-focused Web Analytics to better meet your metrics needs

1 Like