The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
My first project was a news site about Hungarian theater: https://szinhaz.online
Iโm looking forward to use Frontity again!
My snippet has (at least) one weak point: It logs just the first arrive to the site. If user navigates in it, it does not log. I hope the core team will solve it soon (The `analytics` library).
koli1410
Actually, the core team is also working on it. There is an npm package, but no docโs yet. @David can we already use this package? Can you provide the basic steps for it?
David13
Yes, we are working on it! The stable versions are expected to be published in a couple of weeks.
The current analytic packages are still in beta, but you can use them if you want.
Oh, I forgot to say that our recomendation will be to always use the official packages (once they are ready).
We found a problem regarding analytics, and it is that the title may not be ready right after doing actions.router.set(link) (e.g. going to a link that hasnโt been fetched yet) and that would cause pageviews to be sent with the wrong title (remember that pageviews contain title and link).
For that reason we would have to wait for the title to be ready and that wasnโt a problem trivial to solve. If you are curious, you can check our current solution here, in the analytics library.
1 Like
koli1416
I think I should delete this topic, as the official package works already much better, as my solution. Do you agree?
Pablo17
Hey @koli14, instead of deleting it, it would be much better if you edit the original post with an update explaining the current situation
koli1418
Yes, I agree, but I do not see an Edit button on my original post. And if I click on the Edit history, I see that juanma edited it.