title: How to track page view with Firebase Analytics in a web, single page app?
body: <p>I am trying to track simple events and pages/views through Firebase analytics.</p>
  
  <p>I have a progressive web app, (SPA). It's a fullscreen game and it is not using browser history.</p>
  
  <p>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".</p>
  
  <p>Firebase analytics API hasn't much:</p>
  
  <pre><code>analytics().logEvent()
  analytics().setAnalyticsCollectionEnabled()
  analytics().setCurrentScreen()
  analytics().setUserId()
  analytics().setUserProperties()
  </code></pre>
  
  <p>While the "Google Analytics docs" do have a <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications" rel="noreferrer">section about SPA's</a> I haven't found how to do the same with Firebase analytics, such as manually sending page views that would be like:</p>
  
  <pre><code>ga('set', 'page', '/new-page.html');
  ga('send', 'pageview');
  </code></pre>
  
  <p>I have tried to use <code>setCurrentScreen</code> but it does nothing.
  Help appreciated.</p>