Google Analytics App + Web is available when you enable Google Firebase Analytics.
It's Google Analytics v2 with a new representation of data, whi...
For further actions, you may consider blocking this person and/or reporting abuse
Hello @aleksey,
Can you explain how you installed firebase/analytics ? I can't find this module on npm.
thanks
It's part of firebase package. You can install it with
Refer to official firebase documentation and firebase analytics
Thanks for ur reply. But when i go here : firebase.google.com/docs/web/setup...
I can read that 'analytics' is not supported by nodejs.
Am I wrong ?
I had the same feeling when I was reading that page for the first time.
Nodejs is meant as a server side and web as a client side. You can install firebase package via npm, no problem with that.
If
window
anddocument
objects are available in runtime you are in web mode. But if you are trying to run nodejs express server and to track analytic event on some http patch method to your server it won't work.Thanks again for ur time and ur reply.
My apologize, I don't understand. In ur article, you give that example :
When I try this on my project I have this error:
Even if i did a
npm install firebase
So what should I do to set forebase/analytics in my nodejs/vuejs project ?
Thanks for ur help and ur time
Have you initialized firebase?
Yes. Error comes on the second line with :
Can you share a project where this works ?
I updated the setup section with step by step commands to setup vue app. I executed it step by step and checked that it works. Let me know if it works for you.
Sorry,
I still have the same problem importing firebase/analytics
if you have time to check : github.com/tibetoine/friends-party
Please follow updated setup section from the beginning. I added also versions and package.json for comparison.
In your project you only need to update firebase version, the one you use is too old and doesn't have analytics. Go to package.json and update it to:
Hello @razbakov
Very useful post, thanks :)