Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen tracking support - Firebase 9.8

According Firebase Android SDK Release Notes with 9.8 update we have screen tracking support with android screens and activities... The documentation says that this event works like that:

mFirebaseAnalytics.setCurrentScreen(activity,class_name,class_override_name);

In my case, I don't need overrides class name and I send null value... But i'm waiting 48h and my firebase analytics console doesn't show info about this event, any ideas?

Thanks in advance!

like image 475
Merlí Escarpenter Pérez Avatar asked Nov 07 '16 12:11

Merlí Escarpenter Pérez


People also ask

Does firebase use Ad_id?

Especially when you don't have a "digital analytics team" or a "marketing team" as a single app developer. The question is whether Firebase uses the AD_ID internally to track visitors or not, not whom to ask. Ok then. I did some research and and I found that Firebase is not using the AD_ID at all.

What is screen view in firebase?

Automatically track screens If your app uses a distinct UIViewController or Activity for each screen, Analytics can automatically track every screen transition and generate a report of user engagement broken down by screen. If your app doesn't, you can still get these reports by manually logging screen_view events.

What is screen view Google Analytics?

Screenview in Google Analytics represent content users are viewing within an app. The equivalent concept for a website is pageview . Measuring screen views allows you to see which content is being viewed most by your users, and how are they are navigating between different pieces of content.


1 Answers

Another very important thing that I've noticed only after two days of intensive struggling: the setCurrentScreen method MUST be called on the UI thread.

I was only able to see that after looking for a light in the Firebase decompiled code:

@MainThread
@Keep
public final void setCurrentScreen(@NonNull Activity var1, @Size(min = 1L,max = 36L) @Nullable String var2, @Size(min = 1L,max = 36L) @Nullable String var3) {
    //...
}

Whenever this method is called a event of type screen_view is logged.

And keep in mind the Firebase size restrictions. The maximum size of a screen name is 36 characters long.

like image 122
Alexander Haroldo da Rocha Avatar answered Oct 26 '22 13:10

Alexander Haroldo da Rocha