Search code examples
firebasegoogle-bigqueryfirebase-analytics

Firebase Analytics For Web Not Flowing To BigQuery


BigQuery is not receiving any data from Firebase Analytics for web. It appears Firebase dashboard is receiving the events and data correctly, but the dashboard is buggy. For example, sometimes when I view my events tab it ask me to setup an app (which I already have).

enter image description here

Then I refresh and I see my events fine. This goes back and forth all day.

enter image description here

Here is my setup:

<script src="https://www.gstatic.com/firebasejs/7.2.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.2.0/firebase-analytics.js"></script>
<script src="/static/init-firebase.js"></script>

Then I log the events:

const defaultAnalytics = window.firebase && window.firebase.analytics();
if (defaultAnalytics){
   defaultAnalytics.logEvent('viewedNote', { noteId, accountUID, videoId, contactId, fromText, socialshare, forBDay});
}

Sometimes my events show, sometimes they don't like I document above. But right now I can see my events from yesterday (even though some refreshes ask me to setup an app again).

My real concern is I don't have any data in BigQuery for analytics. Note: I fired events over 12 hours ago and still nothing.

enter image description here

And here are my integrations:

enter image description here

enter image description here

How do we make data flow to Bigquery?


Solution

  • Simple fix. You need more than 100 events for data to flow to BigQuery. Firebase support answered this question for me.