Comments (17)
I just found this option and since the last week I have this code:
static void logScreenView(String screenName, String className, {Map<String, dynamic>? parameters}) {
logEvent(
'screen_view',
parameters: <String, dynamic>{
'screen_name': screenName,
'screen_class': className,
"cookie_consent": CookieUtils.getCookieValue(CookieUtils.kCookieIdCookieGprd, encripted: false) == "true" ? "granted" : "denied",
},
);
but the behavior is the same
in your example you put
parameters: {
'firebase_screen': screen_name,
'firebase_screen_class': screen_name_class,
},
I will change my code with your feedback and I'll say something
from flutterfire.
I've just prepared a version of my code to rollback to the initial logScreenView , I will try and notify the behavior
THX
from flutterfire.
I have data in GA4!,
I think all the problems were related to the codification of screenClass
thanks for the support
from flutterfire.
Hello @JgomesAT, Can you try this code instead of logScreenView(......)
for web.
analytics.logEvent(
name: 'screen_view',
parameters: {
'firebase_screen': screen_name,
'firebase_screen_class': screen_name_class,
},
);
from flutterfire.
@JgomesAT Okay waiting for your reply.
from flutterfire.
I think isn't working, in GA4 I can see events of screen_view on web but with out screenNAme, and in Android and iOS its OK
from flutterfire.
Does it work on the firebase console?
from flutterfire.
HOw Can I Prove it in the firebase console?
from flutterfire.
In the firebase console I see the same info,
from flutterfire.
I've tested using this chrome extension and I found that data is being sent correctly via the SDK. Can you please try and see if that's the case for you also?
https://chromewebstore.google.com/detail/taghound-analyticsgtmpixe/canpneabbfipaelecfibpmmjbdkiaolf
from flutterfire.
OK, thanks I will try this extension
from flutterfire.
I can see this:
Event Data 10
Language
es-es
Page Location
https://www.andorratelecom.ad/botiga/
Page Title
Andorra Telecom
Screen Resolution
1920x1080
Session Count
1
Session ID
1715330811
ep.cookie_consent
granted
ep.firebase_screen
Dashboard_Particular
ep.firebase_screen_class
minified:DE
ep.origin
firebase
these two events are related to the name and class of screen_view:
ep.firebase_screen
Dashboard_Particular
ep.firebase_screen_class
minified:DE
I don't understand the class minified:DE this Is not a class of my project
from flutterfire.
In the screen_class I set the same value as screen_name and now I Can see values the problem was the value of screen_class
from flutterfire.
Based on the snippet you've shared, it seems like it correctly reports screen_view to GA, but the issue might be on the backend side.
Does the issue still happens?
from flutterfire.
It seems that is now working, I can see the screen's name in the GA4 for the web, I force for now in the attribute screenClass the same value of screenName
from flutterfire.
What snippet of cope you used the one with firebase_screen_class
and firebase_screen_class
?
If so can you please confirm again if logScreenView
is working or not?
Thank you
from flutterfire.
Glad to hear that the issue have been resolved 🥳
from flutterfire.
Related Issues (20)
- [firebase_analytics]: Crashlytics doesn't track screen view breadcrumbs HOT 9
- [cloud_firestore]: iOS includeMetadataChanges on document snapshots does not receive fromCache events correctly HOT 1
- [📚] Your documentation feedback title (CHANGE ME)
- [firebase_auth]: Can't use verifyPhoneNumber before updating the phone number? HOT 2
- 🐛 [flutter_facebook_auth] Automatically verify email addresses with Facebook sign-in HOT 2
- [firebase_analytics]: Firebase Analytics 10.10.5 and 10.10.4 version cannot build Android HOT 7
- [firebase_auth]: error.credential is null on credential-already-in-use exception during apple sign in in web HOT 3
- [firebase_auth]: [firebase_auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ] HOT 5
- [📚] Your documentation feedback title (CHANGE ME)
- [flutterfire_cli]: v1.0.0 update command fails on Windows HOT 1
- [ALL] Consider adding `topics` to `pubspec.yaml` for better discoverability HOT 1
- [FIRESTORE]: includeMetadataChanges does not make the stream emit second non cache event HOT 2
- [firebase_crashlytics] 此应用有 1 个崩溃问题未处理。请上传 1 个 dSYM 文件以处理崩溃问题。 HOT 1
- [firebase_analytics]: What is the higher minimum MacOS deployment version for the last version HOT 1
- [firebase_analytics]: <firebase_analytics does not work in Android, after migrating build.gradle > HOT 2
- [firebase_analytics]: logPurchase crashes when any of the values inside parameters is null HOT 2
- [FIIREBASE_AUTH] Unable to establish connection on channel. HOT 2
- [📚] [firebase_messaging_web] How to load on Flutter 3.22? HOT 1
- [firebase_app_check]: The new Firebase App Check token is not being updated in Firestore and other services that have App Check enforced. HOT 3
- [FIREBASE_STORAGE] mime/contentType undefined after upploading files to firebase storage if settableMetadata is NOT null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterfire.