How to set Firebase install source for ios app? - ios

Information.
IOS app swift, firebase+analytics, bigquery integration, iAd (https://developer.apple.com/documentation/iad)
Problem.
Most of installs are direct/none in firebase - so the same in analytics & bigquery. Main sources are google ads and apple ads. We can get apple ads source and campaign using iAd. But no info how to send this data to firebase (=how to set source for Firebase)
Question.
Is it possible to manually set source/medium/campaign for Firebase? Can't find anything :(
Any other tips how to get install source/medium/campaign and set it to Firebase?
Also, if we will use some tracker - appmetrica, appsflyer etc - there will be the same question - how to get source data from appsflyer and send it to Firebase
Thanks a lot!

As mentioned in the Firebase group conversation :
Setup multiple user properties based on the info you have (like
source, medium, campaign, etc)
Combine 2 or more user properties to
make an audience
Filter your attribution report on the audience
Follow the whole conversation here.
There is one documentation about how to add firebase to your apple project and another on installation of firebase in your apple app.
For more information you can refer to the blog5, medium post and link on how Campaign Attribution Works in Google Analytics for Firebase

Okay. After researches and tests I have this view
(1) First of all - unfortunately look like firebase team doesn't make clear and working method of setting custom sources
(2) There is some possibility to send something directly to source/medium/campaign in Firebase, but it work unstable.
To do this you need
Get somewhere your Source/Medium/Campaign (for example from iAd)
send 'campaign_details' event with source/medium/campaign params
Also, as mentioned Divyani Yadav - You can just send this params anywhere to user_properties
And somehow work with this data (using bigquery or making audiences to make some analysis in Analytics), but this approach doesn't rewrite firebase initial source/medium/campaign params

Related

Firebase Cloud Notification shows 0 opens 0 clicks

I have integrated Firebase Cloud Notifications for Push Notifications in my iOS App written in Swift.
Although, the notifications are working as expected and I can see the Number of Deliveries, It doesn't show the Open Count and Click Count.
I have searched for similar questions on StackOverflow but none of them has been answered yet.
As you can see in the screenshot below, the number of sends is being tracked but not Open Count or other things.
Any Help is Appreciated.
We had a similar issue and it was caused by the missing Firebase Analytics library.
Documentation for iOS:
Step 4: Add Firebase SDKs to your app
...
4. Choose the Firebase libraries you want to use.
If Google Analytics is enabled in your Firebase project, make sure to add
FirebaseAnalytics. For Analytics without IDFA collection capability, add
FirebaseAnalyticsWithoutAdId instead.
Documentation for Android:
Step 4: Add Firebase SDKs to your app
...
// Add the dependency for the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics'
Google Analytics also has a setup guide in the Admin UI (Admin - Property - Data Streams, select the stream, click "SDK Setup Instructions"):

Rename Firebase Analytics Log Event

I currently have a production app using Firebase Analytics events, some of the event names no longer make sense and I would like to rename them.
Is it possible to rename a Firebase Analytics log event?
For instance, rename My_Event to My_New_Event
Analytics.logEvent("My_Event", parameters: nil)
There is no way to change historical analytics data. So while you can start logging a new name for the same event at any point, you will then have to look for both events in the Google Analytics and Firebase dashboards.
If you're using the BigQuery integration, you can implement the old name as an alias in your queries. But no such functionality exists in the Google Analytics or Firebase dashboards that I'm aware of.
In response to your question: "Is it possible to rename a Firebase Analytics log event?" The answer is yes if you have edit permissions for your Google Analytics 4 property.
In Firebase Analytics click Events, the Modify Event button, and then the Create button. Follow the guidance from here or the video to rename the event, for example:

Send mail from Firebase Analytics after iOS logs an event

Is this possible to send out mail from Firebase when a particular event is logged on firebase dashboard?
In an iOS app, when particular API is failed, an event is logged in Firebase. I want to send out mail for this event from Firebase (like Firebase Crashlytics - firebase sends out mail when crash occur).
There is currently no option built into Firebase console to send an email when a specific event occurred. It is an interesting idea though, so I'd recommend filing a feature request.
It might be possible to do this through the Google Analytics dashboard, which you can also open for the analytics data that is gathered through Firebase. A quick search shows some help center pages, although I'm not completely certain.
If neither of those works, you can build it yourself. Here I see two options:
You can use Cloud Functions that are triggered on conversion events to run any code you want. From this Node.js code you'd then check the conditions on the event, and send the email if necessary.
By exporting the analytics data to BigQuery, you can run any custom queries on it you want, at any interval, and take whatever actions you deem necessary. It's admittedly not ideal, but depending on how important this feature is for you might be worth it.

FirebaseAnalytics: logging events to multiple projects

I need to send FirebaseAnalytics events to two separate accounts. I've tried working with pure GAI but it is not showing in Firebase console.
How could I do that?
here it is covered for Android, while on the Firebase console, it is exactly the same:
however, it might be better (unless the goal is to tell apart debug & release builds),
to tell apart by the CAMPAIGN and/or CAMPAIGN_DETAILS.
as the Firebase documentation for Reliable Analytics states:
If runtime configuration is required, please note the following caveats:
If you're using AdMob and request ads at startup as recommended, you may miss some Analytics data to related to mobile ads when not using the resource based configuration approach.
Only ever supply a single Google app ID in each distributed variant of your app. For example, if you ship version 1 of your app with a certain GOOGLE_APP_ID in the configuration then upload version 2 with a different ID, it may cause analytics data to be dropped.
On iOS, do not add GoogleService-Info.plist to your project if you are supplying different configuration at run time, as this can result in an apparent change of GOOGLE_APP_ID and result in lost Analytics.
also see Manage project members ...in order to grant access to another Google account.
telling apart by campaigns makes sense, because alike that one can have several campaigns, while being able to compare their performance - which one otherwise could not, at least not that directly.
You need to first configure two different apps in your project. Then you can log separately to each one of them.
More info here: https://firebase.google.com/docs/configure/#support_multiple_environments_in_your_ios_application
Answering my own question.
Judging by the documentation and heavy personal research: there is no legal (or without the black magic) way to split analytics data into two separate Firebase projects.
Quote:
Note: On Android and iOS, Analytics are only logged for the default app
And switching default app on the fly didn't work.
Therefore, our team has decided to acquire google analytics account as a second analytics channel which solves our needs.
Hope it will help someone.
P.S. If you need to split debug data from release data watch Martin's answer.

Firebase Analytics and GoogleIDFASupport pod, is it required?

I'm trying to clean up a pod installation on a current project that has been using Firebase analytics for the last year or so. I have noticed that it has collected user data such as age and gender, from what I understand this is done like so:
The iOS Identifier for Advertisers (IDFA). Applies to app activity only. When you use the Firebase Analytics tracking code in an iOS app to collect the IDFA, Firebase Analytics generates an identifier based on the IDFA that includes demographic and interest information associated with users’ app activity
However does this require the GoogleIDFASupport pod to work? I was using this previously for Google Analytics and would like to remove it if it's not used by Firebase. Any pointers on this would be really appreciated. Thanks!
The IDFA is used in Firebase analytics SDK when users allow ad tracking automatically. Besides Firebase Analytics' dependencies like FirebaseCore, FA doesn't need GoogleIDFASupport.
I guess you need GoogleIDFASupport only if you use it in your reports.

Resources