Adding user property in Firebase Analytics as a secondary column - google-analytics

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.

Related

How to create custom alert in Google Analytics 4

I want to create a custom alert in Google Analytics according to this guide
But this functionality is available only for Universal Analytics properties. And I can't find the custom alerts section for my GA4 properties as well as for Firebase Analytics property. There is a similar thing - Custom Insights but looks like it's not possible to select your own events there as trigger. And I need these alerts for data coming from mobile apps (they are using Firebase Analytics). Is there any workaround, is it possible to create a custom alert for GA4?
Why do I need a custom alert in the first place? I want to have a notification when multiple users are not finishing the sign-up process.
At the moment, there are no ways to do it in interface. You can eventually build a your customized system that reads data in BigQuery every day and sends you an email based on the rules you have defined.

Extracting historical data out of Google Analytics

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.

is Google Analytics for analyzing users behaviors only?

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

Google Analytics for Firebase in BigQuery without exported ga data

Currently, we have an app that uses Firebase, with Google Analytics enabled, and linked to BigQuery. The firebase account is on the Spark program.
In BigQuery, I can see the event-based schema, with fields around events and users and a few additional things like geo.
I am not sure what I need to do to get the session-related data in BigQuery, with things like session.visitId (found it referenced as part of ga_analytics_* table that I am missing). Does this require enabling the Blaze plan and export the google analytics data to BigQuery? Is this the reason why I am not seeing the session related fields in BigQuery?
If that is the case, what is the event-driven data model that I am currently seeing called in the Firebase context?
Firebase Export to BigQuery has a specific schema. In the docs the tables are in the form events_YYYYMMDD (this could be the event-driven data you asked for) and session.visitId is not listed as a field.
The field visitId seems to belong to Google Analytics BigQuery Export whose table is in the form ga_sessions_YYYYMMDD. Firebase docs specify that if your Firebase project is on the free Spark plan, you can link ... Google Analytics ... to the BigQuery sandbox, so, it should be feasible to access the ga tables in the sandbox. It is possible that an additional step is missing to get ga tables exported to BigQuery.

How can I generate a GA tracking code programmatically?

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).

Resources