I am trying to add Firebase Analytics (FA) and Google Analytics (GA) together in my iOS app. We can achieve that using Google Tag Manager.
I followed this tutorial https://developers.google.com/tag-manager/ios/v5/#introduction
I setup Google Tag Manager Triggers and Tags correctly. I have chosen "GoogleAnalytics" as the product which is asking when setting the Tag in Google Tag Manager. I assume that, when I fire events using fire base analytics, the same events should appear in google analytics too. It doesn't seem to be working for me. I do see FA dashboard being updated but nothing is showing up in GA.
[FIRAnalytics logEventWithName:#"BtnPressed" parameters:nil];
Any help is greatly appreciated!
A few things to check: Did you set up the appropriate triggers for the event? Did you publish your Google Tag Manager container? Is the container file included in a container folder (not a group), and included in the binary?
Another thing to keep in mind is that it can take some time for Google Analytics events to show up. One way of checking your configuration is to run in the simulator, which will cause Google Tag Manager to log verbosely. If everything is configured correctly, you'll see log messages from Google Tag Manager when you log an event. If there's a configuration problem, you should see log messages indicating an issue.
Related
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"):
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:
I am using firebase Analytics to log all the event. I m not able to understand the google tag manager , How can i use it . What google tag manager can do for iOS app.
One of the big iOS/Android projects I work on uses GTM variables for remote configuration.
For example, our menu items change based on whether it is Winter. So, we flip a boolean on GTM, and voila, within 24 hours, all our apps have the correct menu items.
We are planning to migrate this functionality to Firebase database, however, which has the benefit of instant updates.
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.
I'm working on app in which I need to integrate with Google Drive for my iOS App.
So I started following Quick Start. Every thing worked perfectly fine and successfully able to get list of my file with the use of query in GTLQueryDrive class. But problem is that I am getting every thing for using query so for this there is no User Interface for Google Drive (like they can show all files with logos and we can get those file and some delegate may trigger as I also noticed in android integrated project). So
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries.
If possible then how can Integrate or some helping tutorial link.
Looking for help. Thanks.
Is this possible that I Google drive give some default interface for listing files with actions available, instead of just using queries?
It seems what you're looking for is the Google Picker.
It's is a "File Open" dialog for the information stored in Google
servers. With Google Picker, your users can access and upload photos,
videos, maps, and documents stored in Google servers. The selection is
passed back to your web page or web application for further use. You
can read more of that in the
docs.
I have to mention though that the example used is written in Javascript.
If possible then how can Integrate or some helping tutorial link.
Try this iOS Picker demo app from Github.
For additional info about implementing Picker, watch this video from Google.