I want to create a dashboard for my firebase database using google analytics.
But I'm wondering do google analytics analyze the behaviors only? Can I analyze specific variables from my database?
Thanks!
You can use custom-parameters to add details (i.e. from your database) to an hit: https://support.google.com/firebase/answer/7397304?hl=en&ref_topic=6317489
Related
Any ideas how I get historical data out of Google Analytics?
My problem here is I didn't realise the Firebase / Analytics export to BigQuery wasn't retrospective for history, so I only have data from when I turned on the integration and I need everything from when the Firebase App was launched. The main data I need is events with their parameters.
I have tried a few things:
Connect PowerBI to Google Analytics. I can authenticate and it only
shows "Default Account for Firebase" with no children - it doesn't
show the apps underneath that account.
https://ga-dev-tools.appspot.com/query-explorer/ has the same
problem (not showing child properties).
I can load the
properties and therefore analytics dataset using Google Data Studio,
but this does not have the functionality I require that is in Power
BI. I also couldn't locate the event parameters which I need either.
Any ideas on how to export the data?
You can try to use Google Analytics Data API to export report programmatically: https://developers.google.com/analytics/devguides/reporting/data/v1
However the data are not raw like with BigQuery Export. So if you want raw data there are no solution for the historical data.
I integrated my Firebase to my Google Analytics account by following this link. Now I can see my custom event in Google Analytics.
I managed to use the Google Analytics reporting v4 API to retrieve data for my web site because there is a View like indicated in the figure below :
I would like to use the same API to retrieve data in Google Analytics for Firebase. However, when doing the integration, no view is created like shown below :
I can't manage to find a link or a documentation to do it. Can help me about that ?
PS: I saw that it is possible to export Firebase data through BigQuery, however, I would like to avoid this possible if possible.
Regards and Thanks
Yassir,
It looks like your last screenshot shows a GA4 property, since it does not have any views. You can use the Google Analytics Data API to access GA4 properties.
We have recently migrated our iOS app to use Firebase Analytics from Google Analytics
Within GA, we had a custom dimension which is now being sent through the SDK as a user property
Without using BigQuery, is there a way in the Firebase Console to view screen views and/or events with the user property as a secondary data item? Not as a filter, but to add as a column to the report in the same way as you can add a secondary dimension in GA
Or is Firebase now deprecating functionality to force you to start using and paying for BigQuery?
Try to connect Firebase with Google Analytics 4 and in Explore --> Analysis report, anyway for custom analysis, the better way currently is export raw data to BigQuery and use that.
I need to create a script (php for example) to generate new sites on a google analytics account.
I need to obtain the ID of the generated site.
¿It is possible to do it? How can i achieve it?
Thanks
No. All of the Google Analytics APIs are read-only. The only way to create new accounts is manually.
As #jk added below, from the Google Analytics Management API docs:
Google Analytics provides developer access to the configuration data
through the Management API, which is a read-only API for account and
configuration data.
How to generate Google Analytics tracking code programmatic-ally?
I am new to Google Analytics API, can someone please help
It is NOT possible to create new Google Analytics accounts or profiles programmatically using the existing APIs.
There are two APIs available, the Data Export API and the Management API. However, they are bot read-only.
With the Google Analytics Data Export API, you can develop client applications to request data from an existing Analytics profile for an authorized user, and refine the results of the request using query parameters. Currently, the Data Export API supports read-only access to your Google Analytics data.
Currently, the Management API supports read-only access to five components of the Google Analytics Management system: Account data,Profile data, Web property data, Goal data, Advanced segments
Seems like it's finally possible in 2021 with alpha api.
https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/properties/create#authorization-scopes
It's not currently possible to create Google Analytics accounts automatically at the moment but generating the tracking code is possible.
The only real variation between the tracking code generated each time you create a profile for a new domain is the web property ID. This is in the format UA-XXXXXXX-X. Each X is a number - the first 7 numbers are the account number and the number after the last dash relates to each web property set up for the account.
You can use the accounts feed of the API to get a list of accounts and their profiles. If an account only has one profile then it's possible to use the web property ID of it to automatically generate the tracking code. However, if there's multiple web properties then you would need a way to decide which one to use (present the user with a selection list etc).