question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Analytics google_analytics_automatic_screen_reporting_enabled not working

See original GitHub issue

Environment

  • Android Studio version: 4.1.1
  • Firebase Component: Analytics
  • Component version: 18.0.0 ( using bom:26.1.0)

Steps to reproduce:

I added meta-data google_analytics_automatic_screen_reporting_enabled to false in AndroidManifest.xml to disable screen view event. Yesterday screen_view was not sent as I expected but today with the same codebase, it’s keep sending screen_view event. I checked on logcat using adb logcat -v time -s FA FA-SVC) as well as DebugView.

Relevant Code:

<meta-data
            android:name="google_analytics_automatic_screen_reporting_enabled"
            android:value="false" />

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:37
  • Comments:56 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Daniel-Dudekcommented, May 24, 2021

Hello to all,

The new version of Firebase Bom: 28.0.1 containing the Firebase Analytics: 19.0.0.0 version correctly disables the automatic screen_view event that we want to remove.

Here is the data collection for the last 30 min:

image As you can see the event is from the custom app. The event that I collect is page view with the parameters that I want

image Here are all the events that have been launched and not the screen_view one 😃

5reactions
piotr767commented, Jan 6, 2021

It seems to depend on particular device or system version.

I created a simple Android TV app that lets you test if automatic screen reporting is disabled: https://github.com/piotr767/firebase-analytics-test. You just need to paste the google-services.json for your Firebase project.

When I run it on Android TV emulator with API 28 image it works correctly (no automatic screen events are reported) but when I run it on my physical Android TV device with API 28 it doesn’t work (all screen events are reported). I saw it working correctly on my physical device about a month ago though.

@eburley are there any system settings / configs that can affect this option?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling firebase automatic screen reporting - Stack Overflow
Google Analytics for Firebase does NOT support the case of manual-only screen reporting. The plist flag FirebaseAutomaticScreenReportingEnabled ...
Read more >
[firebase_analytics] Disabling the automatic screen reporting ...
Hi guys :) Bug report Describe the bug We're using firebase_core (1.10.0) and firebase_analytics (9.0.3) to log some events (pages view, ...
Read more >
Measure screenviews | Google Analytics for Firebase
Automatic screenview reporting can be turned off on iOS by setting FirebaseAutomaticScreenReportingEnabled to NO (Boolean) in the Info.plist. And on Android, ...
Read more >
[Analytics Plugin (Firebase)] How to disable automatic screen ...
On iOS, to disable automatic screen tracking so that you can assume control of the screen_view event, you will need to add a...
Read more >
Track Screenviews | FlutterFire
Google Analytics tracks screen transitions and attaches information about the current screen to events, enabling you to track metrics such as user ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found