You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
import 'package:firebase/firebase.dart' as FB;
import 'dart:js' as js;
class Firebase {
static void sendPageView(String screenName) {
print('try to send page');
final FB.Analytics analytics =
js.context.hasProperty('firebase') ? FB.analytics() : null;
if (analytics != null) {
analytics.setCurrentScreen(screenName);
print(screenName);
}
}
}
When I then run the web app, I see in the console both the 'try to send page' and the screenName at the end. But on my Firebase console I'm not seeing any screen views coming in.
Also on the Chrome console, i only see an initial page_view event going out (I believe it's the automatic page view that gets sent when initializing analytics) but no more events after that one, even though I still see the logs showing the new screen names.
Is there something else that needs to be done?
Thank you!
The text was updated successfully, but these errors were encountered:
I can confirm this is still an issue today for flutter web. It seems it just forwards the setScreenName to JS, so I couldn't figure out why this does not work yet :/
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I added this to my index.html
I then create a class like this one:
When I then run the web app, I see in the console both the 'try to send page' and the screenName at the end. But on my Firebase console I'm not seeing any screen views coming in.
Also on the Chrome console, i only see an initial page_view event going out (I believe it's the automatic page view that gets sent when initializing analytics) but no more events after that one, even though I still see the logs showing the new screen names.
Is there something else that needs to be done?
Thank you!
The text was updated successfully, but these errors were encountered: