Flutter Analytics using Firebase

Поділитися
Вставка
  • Опубліковано 29 лют 2020
  • In this video we go over how to add analytics into your project and what kind of events you would like to track. We make use of Firebase analytics to complete the task.
    Written: www.filledstacks.com/post/fir...
    Let's work together 👉 calendly.com/danemackier/1-on...

КОМЕНТАРІ • 88

  • @nickbrodd7159
    @nickbrodd7159 4 роки тому

    Thank you! Your tutorials are phenomenal!

    • @FilledStacks
      @FilledStacks  4 роки тому

      Thanks Nick! 😁 I appreciate the feedback.

  • @nicolaszein
    @nicolaszein 4 роки тому

    Another amazing tutorial, thank you so much.

    • @FilledStacks
      @FilledStacks  4 роки тому

      You're very welcome. I'm happy that you found some value in it.

  • @siyabon_ga
    @siyabon_ga 3 роки тому +12

    Every-time I watch your tutorials like my heart breaks into a thousand pieces. I have code running in production thats not as nearly perfect as yours. Always learning, I probably should dedicate a whole and watch your videos than another day to go refactor my code. Im also using service but damn. I wanna this OCD level on every line of code I write

    • @FilledStacks
      @FilledStacks  3 роки тому +1

      haha, don't be too hard on your code man. It takes time. Refactor bit by bit and get it to where you want it to be. As long as you can see that you can do better you will probably put in the effort to make it better. Knowing there's something to be improved is a huge step towards improvement.

  • @aeromina
    @aeromina 4 роки тому

    Thank you so much for that !

    • @FilledStacks
      @FilledStacks  4 роки тому

      You're very welcome. It makes me happy to see more people are interested in the analytics implementation.

  • @richardmiho
    @richardmiho 4 роки тому

    great tutorial thank you so much.

    • @FilledStacks
      @FilledStacks  4 роки тому

      You're very welcome. Thanks for watching and commenting.

  • @mike12932
    @mike12932 4 роки тому

    Great video, as always! Keep producing amazing content. Got one question though, I have seen there is/was a Slack channel for this community, is there any chance I could get an invitation (if it's still live)?

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      Thank you. Yes, the invite is available on filledstacks.com under any post you view.

  • @camillo8575
    @camillo8575 4 роки тому +1

    This is pure gold!
    Just an information, how do you advise to separate Analytics events for testing app and real users app without messing up the account with fake data?

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      Awesome! Happy you got the intended information from the video. For any firebase setup you can create flavors on Android or Profiles on iOS which you can use. This will pull in different google info files based on the build. There's a few guides out there on it. Basically you'll have two firebase projects, and have two google-information.json files and two GoogleInfo.plist files in iOS as well. When building release or debug you'll connect to different ones.

  • @vesly2458
    @vesly2458 Рік тому

    Thank you!

  • @ahumaro
    @ahumaro 3 роки тому +1

    Dear @FilledStacks, do you know if this also works for Web? I am right now building for Flutter Web but I am unable to see any route change event on the analytics console apart from the initial load event. Have you tried this for Flutter Web? ... Best regards!

    • @FilledStacks
      @FilledStacks  3 роки тому

      Hey there. I don't know if this works for web. I know the firebase libraries are being rebuilt from the ground up to support web as well I don't know if they're gone over the analytics library yet. You should check the new firebase website in the docs to see what it supports.

    • @bryanhunsberger
      @bryanhunsberger 3 роки тому

      I haven't figured out how to get the debug view working, but the plugin specifies web, so I went ahead and implemented, and I guess will find out in 24 hours. Has anyone figured out a way to allow for debug mode with analytics? There's an issue report on this for Flutter web that you can't log into Chrome and use the analytics debug extension for Chrome when Flutter generates the debug chrome browser.

  • @WilsonSilva90
    @WilsonSilva90 Рік тому

    DebugView on the web only works with a Google Chrome extension and development mode disables all extensions by default. Any workaround?

    • @FilledStacks
      @FilledStacks  Рік тому

      I actually haven't seen that. Maybe that's a recent change. We've been swapping between firebase analytics and Amplitude. Amplitude worked quite well, the implementation is the same as Firebase.
      But I have no workaround as I haven't experienced that.

  • @maakuuu
    @maakuuu 4 роки тому

    #FilledStacksArmy Keep up the good work!

    • @FilledStacks
      @FilledStacks  4 роки тому

      Yup yup!! I'll try my best 💪 Thanks for the support.

  • @nicolapigozzo
    @nicolapigozzo 4 роки тому

    Very great tutorial. I would like to see from you how you use big query firestore export extension and display data from bigquery to datastudio.

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      Thank you. At the moment I don't do that, I'd have to make use of it for a few weeks or months first before sharing any solution around it.

  • @chauhanpiyush
    @chauhanpiyush 4 роки тому

    @FilledStack I am not able to see firebase screen parameter in debug view on firebase console.
    I see this firebase_screen_class: MainActivity
    I am not using locator. But I am doing this `navigatorObservers: [AnalyticsService().getAnalyticsObserver()]`
    Is it wrong?

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      No, that should still be fine. It takes some times sometimes for the data to show up.

  • @chinmayagarnaik6458
    @chinmayagarnaik6458 4 роки тому

    Nice and helpful video

  • @lobanovkirill
    @lobanovkirill 4 роки тому +1

    Thank you for share!) Maybe you can create tutorial, how to add mixpanel analytics in app?)

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      You're welcome. i haven't heard of mix panel. I'll look at it and see if I'd use it in my app.

  • @achisingh329
    @achisingh329 10 місяців тому

    what if im not using the locator and get_it things. can u tell in that case what to do??

    • @FilledStacks
      @FilledStacks  10 місяців тому

      You would do the exact same thing but you probably won't use dependency inversion. You can simply construct the class where you need it and you'll have a hard dependency on it.

  • @kemids2842
    @kemids2842 4 роки тому +1

    Next tutorial please i'm learning so fast with your tutorials

    • @FilledStacks
      @FilledStacks  4 роки тому

      Busy with the written tutorial today for this weeks video. It should be out the weekend 😋☺

    • @kemids2842
      @kemids2842 4 роки тому

      @@FilledStacks always excited for no other but your tutorials

  • @michaeltolsma7717
    @michaeltolsma7717 4 роки тому

    2:21 what is the implementation of _getPageRoute? Your linked video doesn't cover that. How do you set the page name?

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      It wraps the MaterialPageRoute call incase I want to swap it out for a different transition. github.com/FilledStacks/flutter-tutorials/blob/f88110623663a5337c735eb44144ea1c3a6d9cab/044-analytics-firebase/lib/ui/router.dart#L43

    • @michaeltolsma7717
      @michaeltolsma7717 4 роки тому

      @@FilledStacks I'm finding that my page navigation is not being logged in the debug view with this method. In fact I find that the debugview is very inconsistent with its logging even when I create a function such as "onButtonClicked" for a custom event. Only SOME things are shown in the debug view. Do you have/experience this issue at all? Thanks again

    • @michaeltolsma7717
      @michaeltolsma7717 4 роки тому

      @@FilledStacks The implementation of this link seems to have solved my analytics of page navigation. I think I was missing the naming of the pages, which I didn't know how to do with this method. Thanks for the assistance. I think it would be very beneficial to others if you included this info in the video via a link or end-note. Thanks!

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      @@michaeltolsma7717 Nice! Happy to hear it's working. It is very important for them to know. Which is why I mention at the start of every video you can download the starting code from the written tutorial or my website :)

  • @arturbd4135
    @arturbd4135 2 роки тому

    Does anyone have a problem in 1:26 line 6 with FirebaseAnalytics(); ?
    The console says:
    The class 'FirebaseAnalytics' doesn't have an unnamed constructor.
    Try using one of the named constructors defined in 'FirebaseAnalytics'.
    Pls help :(

    • @FilledStacks
      @FilledStacks  2 роки тому +1

      It doesn't have an unnamed constructor anymore. Do f12 on the class to navvigate to it and see the constuctor, or read the latest docs for the package.

    • @evildecisionsarvar5996
      @evildecisionsarvar5996 Рік тому +1

      try: final FirebaseAnalytics _analytics = FirebaseAnalytics.instance;

    • @nkanyisosigwaza
      @nkanyisosigwaza Рік тому

      @@evildecisionsarvar5996 Thanks this worked for me

  • @himsha64
    @himsha64 4 роки тому +1

    can you please explain app Refer and reward program in flutter

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      I haven't looked at the before. I should see what it's about and I'll see if I can make a video on it

  • @sreejith4568
    @sreejith4568 2 роки тому

    The terminal commands not working for me. Is there any solutions?

    • @FilledStacks
      @FilledStacks  2 роки тому

      Yes, You look at the updated documentation of what you're using and start there.

  • @maurovolpe7943
    @maurovolpe7943 4 роки тому

    Hi, Great! but DebugView don't work for me and I don't find the issue... can you help me please?

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      Hi Thanks. That's too bad, did you run the command to pass along debug logs to firebase from your app package id?

    • @maurovolpe7943
      @maurovolpe7943 4 роки тому

      @@FilledStacks Yes ran the command, now I'm using android emulator because after that was using my phone, but doesn´t work...

    • @FilledStacks
      @FilledStacks  4 роки тому

      @@maurovolpe7943 I see. Then I don't know, let me know when you figure it out.

  • @user-fh4xo2pc2d
    @user-fh4xo2pc2d 4 роки тому

    Please make a tutorial on implementing plugin using platform channel later. Thank you!

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      Hi thanks for making a suggestion. I have seen quite a lot of them on UA-cam and there's not much functionality I would need that for. If there's something that a plugin doesn't exist for then I might do it.

    • @user-fh4xo2pc2d
      @user-fh4xo2pc2d 4 роки тому

      @@FilledStacks Thank you! I searched webview plugins, but official one still has keyboard issue and other ones lack functinality or has some issues.

  • @yashinherenttech6396
    @yashinherenttech6396 4 роки тому +1

    Please make a tutorial on pagination in flutter with firebase or at least guide how can I achieve this with this architecture.

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      I'm planning on doing that in this series so it'll be coming out in this series.

    • @yashinherenttech6396
      @yashinherenttech6396 4 роки тому

      @@FilledStacks Hey Dane, I did the pagination with grids but when I go to some other screen and navigate back to the screen it doesn't load grid .. probably something to do with stream controller which loading the firebase loading data ..should I need to create a dispose method, if yes then how coz I tried creating dispose method in base widget like init method one but didint work.

  • @user-kh6rp6yx1j
    @user-kh6rp6yx1j Місяць тому

    Hey man, good.

  •  Рік тому

    not sure why this doesn't work for me. i added the android and ios json files, but debug view shows nothing

    • @FilledStacks
      @FilledStacks  Рік тому

      It is a bit shaky sometimes. The configuration is not easy to spot when it's broken.
      Check your logs. there should be analytics events being posted there.

    •  Рік тому

      @@FilledStacks i see requests being made to firebase batch something, but nothing happens on firebase hehe

    • @FilledStacks
      @FilledStacks  Рік тому

      @ then it's probably a distribution thing with where you are. It's not possible to always be real time. I've had this issue before.
      Run your app in release mode and see if you get events showing up.

    •  Рік тому

      @@FilledStacks how do i do that?

    • @FilledStacks
      @FilledStacks  Рік тому

      @ You run with the --release flag when running the app.

  • @electronicsnerd8820
    @electronicsnerd8820 4 роки тому

    @FilledStacks can you make a video on flutter with firebase crashlytics please.......

    • @FilledStacks
      @FilledStacks  4 роки тому +1

      The video would be too short. I thought about it but I just followed the readme and I was done. There's nothing extra to add. It's just 1 line of code in the main file.

    • @electronicsnerd8820
      @electronicsnerd8820 4 роки тому

      @@FilledStacks in my project I did everything , errors shows in the debug console " error reported to crashlytics console " but nothing shows in the console . I changed event type etc but no luck.

  • @bataaboldbaatar7647
    @bataaboldbaatar7647 Рік тому

    did something of this video changed through 2 years?

    • @FilledStacks
      @FilledStacks  Рік тому +1

      No, we still use it exactly the same :D

    • @bataaboldbaatar7647
      @bataaboldbaatar7647 Рік тому

      @@FilledStacks nice its great news and thank your very useful video content.

  • @DevenSitapara
    @DevenSitapara 2 роки тому

    I my case manifest package name not working but I tried firebase package name and its working :)

    • @FilledStacks
      @FilledStacks  2 роки тому

      I don't exactly know what was wrong but I'm happy you solved it.

  • @maherbanhusentech
    @maherbanhusentech 3 роки тому

    Good but pdf, image and video store in cloud firebase and storage firebase 👍
    Please video create

    • @FilledStacks
      @FilledStacks  3 роки тому +1

      Thanks. I have a video for cloud storage. I show how I do uploading in there. It should apply to everything you just asked.

    • @maherbanhusentech
      @maherbanhusentech 3 роки тому

      Please upload fast👍

    • @FilledStacks
      @FilledStacks  3 роки тому

      @@maherbanhusentech haha, upload what? That video is already up on the channel.

  • @jesusavalos1088
    @jesusavalos1088 Рік тому

    🤮🤮🤮🤮🤮

    • @FilledStacks
      @FilledStacks  Рік тому +1

      Aaaaaawwww shame man. You should get some medicine

  • @javeedishaq7643
    @javeedishaq7643 2 роки тому

    Thank you! Your tutorials are phenomenal!

    • @FilledStacks
      @FilledStacks  2 роки тому

      Thank you for wathcing! Please subscribe, I'm busy writing a new video right now