Questions tagged [google-analytics-firebase]

Google Analytics is a free analytics solution provided by Google, featuring several client-side APIs for data collection. This tag is used for the Collection protocol specifically for Android and iOS SDKs versions 4.

Google Analytics provides easy to use APIs and SDKs to send data to Google Analytics.

With the collection APIs and SDKs, you can measure how users interact with your content and marketing initiatives. Once implemented, you will be able to view user-interaction data within Google Analytics or through the Reporting APIs.

Android Google Analytics SDK v4 for Android - Getting Started

iOS SDK Google Analytics SDK for iOS v3 - Getting Started

You can use the SDK by using Google Play services SDK. This SDK can be downloaded from https://developer.android.com/google/play-services/index.html.

648 questions
6
votes
3 answers

Google Analytics - NullPointerException in Test

I'm getting the following NPE in a Robolectric test on a Travis build-server, and I'm having trouble pinpointing why. I'm unable to reproduce this issue locally. Anybody know what causes onServiceConnected to be called? That might help me pinpoint…
loeschg
  • 29,961
  • 26
  • 97
  • 150
6
votes
1 answer

Campaign tracking not working after move to Google Play Services

After follow this https://developers.google.com/analytics/solutions/testing-play-campaigns The logcat always report: No campaign data found. Here's my AndroidManifest.xml
5
votes
2 answers

How to use Google Analytics web+api property to fetch analytics data and display on third party dashboard

AS Google Analytics Services SDK sunset On October 31st, 2019 they stop processing incoming hits for this property. and ask to use latest App + Web property, which utilizes Google Analytics for Firebase SDK. I have successfully linked firebase…
5
votes
2 answers

Firebase Analytics Events - currentScreen is always screen_view

On my way implementing firebase analytics into my flutter app, i cant get the proper events to trigger or i dont get how this should work. Lets take the following code: firebaseAnalytics.setCurrentScreen(screenName: "Dashboard"); When i trigger…
5
votes
2 answers

how anonymize Google Analytics for iOS for GDPR / RGPD purpose

I wonder if it is possible to use Google Analytics for iOS in a anonymized way. It is currently possible to : - disable IDFA (https://developers.google.com/analytics/devguides/collection/ios/v3/optional-features) - anonymize IP…
Gogo123
  • 655
  • 1
  • 4
  • 11
5
votes
1 answer

Google Campaign Measurements Tracking

I'm trying to setup the Campaign Measurement system to track where the users find my app. I've implemented the first part Google Play Campaign Attribution this but I can't seem to figure out how to do the General Campaign & Traffic Source…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
5
votes
2 answers

Cannot get a configuration file of Analytics from Google's official page

Now, I want to add Analytics to my Android app then I read the official page. It says I must get a configuration file from the page. So I clicked the GET A CONFIGURATION FILE button. But nothing happens! The loading circle animation is rolling…
hata
  • 11,633
  • 6
  • 46
  • 69
5
votes
2 answers

How to detect if Google Analytics is loaded and able to track custom Events

We're having some issues when we're loading an iframe with a video player that sends playback Events to Google Universal Analytics (analytics.js) loaded inside that iframe (on another domain). The GA tracker is not being loaded on iOS devices and…
5
votes
1 answer

how to get "referrer" from intent where user clicks on the referral link and opens the pre installed app from playstore

The user has already installed the app via referrer link and installed the app. When the user clicks again the same referrer link it navigates to PlayStore with open option. The documents Google Analytics Campaign says referring traffic sources or…
5
votes
1 answer

How to know if Google Analytics is working (Android app)?

How can I know if Google Analytics is working for my application? I tried to implement it yesterday, but could never see any results on "Real Time"-reporting.. But today the "App overview" in the dashboard is showing two screen views from…
EirikO
  • 617
  • 8
  • 19
5
votes
5 answers

Android Studio cannot resolve symbol GoogleAnalytics v4

I'm trying to integrate Google Analytics in my Android App, but I'm having trouble. (SEE EDIT) Following https://developers.google.com/analytics/devguides/collection/android/v4/ when I create HashMap mTrackers = new…
5
votes
1 answer

Google Analytics Tracker Not working for android app

I have included Google analytics in my app. But when i create an object of Tracker the tracker does not work Code in one of my activity @Override protected void onStart() { // TODO Auto-generated method stub super.onStart(); try{ …
Deb
  • 2,431
  • 3
  • 18
  • 28
5
votes
3 answers

Analytics v4 uncaught exceptions and proguard

I'm using the Google Analytics v4 API on an Android app that was built with proguard. The resulting crash reports are cryptic. For instance, `NullPointerException (@a:t:-1) {main}' 1) Can I find the exact location of this crash with the information…
aleph_null
  • 5,766
  • 2
  • 24
  • 39
4
votes
1 answer

Conversions from Google Ads send via Measurement Protocol (Google Analytics 4) API are not shown on Google Ads as conversions

I have followed the guidelines described on Measurement Protocol (Google Analytics 4) to send purchase events from server. I have verified that logging of this event works on GA4. I even see source and medium values that come from Google Click ID…
4
votes
1 answer

Consent Mode in Firebase Analytics for web apps

Is it possible to set Consent Mode for Firebase Analytics (GA4) JS SDK (web app)? The documentation seems to be only for mobile apps. If not, is there any other way to turn off their cookies for GDPR compliance?