I’d like to better understand how the Netlify Analytics works with single-page applications. Given it’s sever-side, I can’t imagine that it would correctly capture page navigation as users move through the site.
In my specific case I’m using Gridsome (Vue version of Gatsby).
At the moment, Netlify Analytics isn’t really set up for SPAs. As you say, we aren’t capturing navigation events that happen purely on the client-side - we’re strictly collecting server requests only.
But! I have some good news. We are working on a mechanism that’ll allow folks building SPAs to send events to us, so that you can start to track those client-side events for yourself and get a better idea of your activity. So, just keep your eyes peeled for that update.
the best place to watch is literally this thread! I am checking in on this with the responsible team, and we will post an update as soon as we have one available.
I noticed that Netlify analytics offers analytics insights into “Top sources & pages” (reference here). How does this work with SPAs like ones made with React or Vue. The way I understand it is that apps made with these frameworks simply serve the associated app.js bundle with some basic html and load the routes all entirely on the client side via js.
If routes are all loaded on the client side, how does Netlify’s server side analytics know which pages were hit?
hi @RohanKapurDEV - i moved your thread here as it is the same topic. I’m checking in with the team responsible for this work to see if we have any updates.
i wish I had an update! at the moment, nothing yet. It’s not off the table, but, I don’t have anything specific or an ETA on this yet. Sorry, I wish i had better news
Like Perry said in January, I wish I had an update! As of right now there is no ETA on this changing. Should there be a change in the future, we will follow up on this thread.
Hi @hillary, @perry,
It’s been a while , could you share with us anything about Netlify Analytics API ? Please provide us with any info from the Dev team! Is there any advancements, plans or the feature is blocked for now ?
Thanks for following up. Like we last shared in March, I wish I had an update! As of right now there is no ETA on this changing. Should there be a change in the future, we will follow up on this thread.
Hi again @hillary,
Just wondering if anything happend in the last 8 months
It’s been a while , could you share with us anything about Netlify Analytics API ? Please provide us with any info from the Dev team! Is there any advancements, plans or the feature is blocked for now ?