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
![event](https://private-user-images.githubusercontent.com/138443888/328883381-52dafefd-2fb8-4826-8da6-b061b65833a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc0MTQ5ODQsIm5iZiI6MTcxNzQxNDY4NCwicGF0aCI6Ii8xMzg0NDM4ODgvMzI4ODgzMzgxLTUyZGFmZWZkLTJmYjgtNDgyNi04ZGE2LWIwNjFiNjU4MzNhMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYwM1QxMTM4MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNDQzODVjNzE3ZGZjM2ExYTQyYjg3MzZlM2E1MTNmMTU5ZjE5M2ZmZWU1NWI0NmViMmJkZGNiY2RlNzU1Mjg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.yiDm0aaX2RebiXYUk4oghnnSVEbvXU7eE1itI4vp-XA)
![event_1](https://private-user-images.githubusercontent.com/138443888/328883402-424f4e0c-758d-4210-b110-e0bbd8e0d1ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc0MTQ5ODQsIm5iZiI6MTcxNzQxNDY4NCwicGF0aCI6Ii8xMzg0NDM4ODgvMzI4ODgzNDAyLTQyNGY0ZTBjLTc1OGQtNDIxMC1iMTEwLWUwYmJkOGUwZDFlZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYwM1QxMTM4MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzBjNjU0NzRlNDhjN2FkMWU1ZThiNjEzMmZlMDM5ODk1NmRjMDhiZmRmYzBhMDk2MGU3NGI4MmI2NGFiYTBjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._VuN5lH2ZKc7diDzfXKx6XHXV9l_xMBmalQdBTW8WKQ)
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_AUTH]: FLTFirebaseAuthPlugin authorizationController:didCompleteWithError HOT 3
- [firebase_auth]: Android physical device not receiving sms HOT 16
- [firebase_analytics]: Firebase make bundle format ambiguous for MacOS Gatekeeper HOT 2
- [firebase_messaging]: Embedded binary is not signed with the same certificate as the parent app HOT 10
- Firebase sdk windows Error in building Windows HOT 2
- 🐛 [PLUGIN_NAME_HERE] Your feature request title here
- [cloud_firestore]: Firestore Termination Issue on Flutter Web: "The client has already been terminated" Error After Clearing Persistence HOT 4
- [firebase_messaing]: android.os.MessageQueue.nativePollOnce (Native method) HOT 8
- [firebase_analytics]: Network upload failed (java.net.ConnectException) HOT 6
- [firebase_crashlytics]: 'ptrauth.h' file not found - Flutter build fails on iOS simulator HOT 5
- [cloud_firestore]: MissingPluginException in any method of firebase_firestore HOT 4
- [firebase_auth] phone recaptcha verification doesn't work with restricted api keys HOT 1
- [firebase_messaging]: AuthorizationStatus.notDetermined is never returned on Android HOT 2
- [firebase_messaging]: SharedPreferences Error
- 🐛 [firebase_analytics] add Windows support HOT 2
- [firebase_messaging]: Cannot Receive ANY Messages/Notifications on Android HOT 5
- [firebase_cpp_sdk_windows]: CMake Deprecation Warning HOT 2
- [firebase_firestore]: Type 'bool' is not a subtype of type 'Map<String, dynamic>?' in type cast HOT 9
- [firebase_auth]: -[__NSCFString objectForKeyedSubscript:]: unrecognized selector sent to instance.. HOT 1
- [firebase_crashlytics]: iOS Crashlytics failing with "Crashlytics skipped rotating the Install ID during urgent mode because it is run on the main thread, which can't succeed" HOT 2
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.