Code Monkey home page Code Monkey logo

Comments (17)

JgomesAT avatar JgomesAT commented on May 25, 2024 1

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.

JgomesAT avatar JgomesAT commented on May 25, 2024 1

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.

JgomesAT avatar JgomesAT commented on May 25, 2024 1

I have data in GA4!,

I think all the problems were related to the codification of screenClass

thanks for the support

from flutterfire.

TarekkMA avatar TarekkMA commented on May 25, 2024

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.

TarekkMA avatar TarekkMA commented on May 25, 2024

@JgomesAT Okay waiting for your reply.

from flutterfire.

JgomesAT avatar JgomesAT commented on May 25, 2024

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 event_1

from flutterfire.

TarekkMA avatar TarekkMA commented on May 25, 2024

Does it work on the firebase console?

from flutterfire.

JgomesAT avatar JgomesAT commented on May 25, 2024

HOw Can I Prove it in the firebase console?

from flutterfire.

JgomesAT avatar JgomesAT commented on May 25, 2024

In the firebase console I see the same info,
firebase_conole

from flutterfire.

TarekkMA avatar TarekkMA commented on May 25, 2024

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.

JgomesAT avatar JgomesAT commented on May 25, 2024

OK, thanks I will try this extension

from flutterfire.

JgomesAT avatar JgomesAT commented on May 25, 2024

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.

JgomesAT avatar JgomesAT commented on May 25, 2024

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.

TarekkMA avatar TarekkMA commented on May 25, 2024

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.

JgomesAT avatar JgomesAT commented on May 25, 2024

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.

TarekkMA avatar TarekkMA commented on May 25, 2024

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.

TarekkMA avatar TarekkMA commented on May 25, 2024

Glad to hear that the issue have been resolved 🥳

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.