title: Firebase Analytics test
body: <p>I am trying to test Firebase analytics in a test page. Below is the code. </p>
  
  <p>However, I see no traffic on the analytics plots.
  No errors in the page logs. How should I continue to test my firebase is setup right? I just used it out of the box.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services --&gt;
  
    &lt;!-- Firebase App (the core Firebase SDK) is always required and must be listed first --&gt;
    &lt;script src="https://www.gstatic.com/firebasejs/7.1.0/firebase-app.js"&gt;&lt;/script&gt;
  
  &lt;!-- TODO: Add SDKs for Firebase products that you want to use
       https://firebase.google.com/docs/web/setup#available-libraries --&gt;
  &lt;script src="https://www.gstatic.com/firebasejs/7.1.0/firebase-analytics.js"&gt;&lt;/script&gt;
  
  
    &lt;script&gt;
      // copied from the Firebase config page
      var firebaseConfig = {
          apiKey: "hidden",
          authDomain: "hidden",
          databaseURL: "https://hidden.firebaseio.com",
          projectId: "hidden",
          storageBucket: "",
          messagingSenderId: "hidden",
          appId: "hidden",
          measurementId: "hidden"
        };
  
      // Initialize Firebase
      var fapp = firebase.initializeApp(firebaseConfig);
      firebase.analytics();
  
  
      var button_push = function(){
          var analytics = firebase.analytics(fapp);
          var result = analytics.logEvent('INIT TEST', { name: 'TEST'});
      }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;button onclick="button_push()"&gt;
      TEST
  &lt;/button&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>