Is there any way i can query in my app for data from the analytics tab of dashboard?
For example:
ref.on("value", function(dashboard) {
console.log(dashboard.concurrentUsers)
});
Introduction. The Google Analytics Reporting API v4 provides programmatic methods to access report data in Google Analytics (Universal Analytics properties only). With the Google Analytics Reporting API, you can: Build custom dashboards to display Google Analytics data.
Analytics APIs are APIs that enable applications to perform a systematic analysis of data and provides insights into the meaning of the data to help in decision making.
Basic Google Analytics is free and Google is trying to keep people from abusing it and steer heavy users to its premium service.
From the "dashboard.concurrentUsers" in your question, it looks like you're trying to get the data from the Analytics tab of your dashboard.
As of Oct/Nov 2020 there is an Analytics Data API that you can use to run Analytics reports and retrieve data
You can also enable the BigQuery integration. Doing this means that all Google Analytics for Firebase events from that moment on will be written to BigQuery, where you can query them. This is the raw data, the events written by your apps, and not the aggregated data that you find in the dashboard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With