I am trying to track simple events and pages/views through Firebase analytics.
I have a progressive web app, (SPA). It's a fullscreen game and it is not using browser history.
I am a bit confused by Google's docs to be honest, sometimes they only explain how it works in ios/Android and not in web. Also, Firebase analytics are different than the "normal Google analytics".
Firebase analytics API hasn't much:
analytics().logEvent()
analytics().setAnalyticsCollectionEnabled()
analytics().setCurrentScreen()
analytics().setUserId()
analytics().setUserProperties()
While the "Google Analytics docs" do have a section about SPA's I haven't found how to do the same with Firebase analytics, such as manually sending page views that would be like:
ga('set', 'page', '/new-page.html');
ga('send', 'pageview');
I have tried to use setCurrentScreen
but it does nothing.
Help appreciated.