How to use GA with Firebase on your web front end.

Photo by Luke Chesser on Unsplash

Official doc is here

Put the 3 lines from 7 to 9 into your end of the body tag.

If you want to check the real-time event on your local immediately, check the attachment on the init.js.

And you have to call this method after load init.js

And then you can see the visit of your site on real-time view and DebugView.