Current live active user count in bubble?

Is there a way in Bubble to see how many live users are using your app? I’m curious because I don’t want to publish updates to the live app while my clients or their customers are using the app. Which would cancel any unsaved actions my clients/customers are performing.
I currently look at my clarity account and see how many live users are active, but seems like it’s not ideal.

1 Like

I update a date field on the user each time someone views the page. Then you can see if anyone has been on within the last 5 minutes or so. It’s not super accurate because that means they just loaded the page within the last 5 minutes.

You can also try adding Google analytics to your page and try something like that, or hot jar. Not sure if they have something more accurate. :man_shrugging: Just some ideas. :blush:

That’s a good idea. Does updating the date field have a cost on WU’s. Just worried that it might add up through out the month. A lot of the users are temporary-users created by bubble, which the app gets 100’s a day. I’m not sure how to capture these users, and then delete them as they go.

I’ll check Google analytics and hot jar as well.

Thanks for the ideas

If you make changes to ‘current user’ it will temporarily create the user for them if you have cookies enabled. Not sure if it will still show up if you do a search through. So that is something you would have to test.

WUs could add up if you have a lot daily. For my case, it isn’t a huge deal. Definitely check out Google and HotJar and let us know how it goes. :blush:

1 Like
2 Likes

You can check the app’s server logs and see whether it has any actions over the past 2-5 minutes. If there are no server actions you should be relatively safe to deploy.

The only apps where you should take extra care when deploying are ones that have long forms/date entry processes, where users could understandably get quite annoyed if you reset their progress. In general, extra steps should be taken when developing to make sure progress is saved to the db relatively often OR usage of local storage.

1 Like

Hi @jwilsonpdx1!

That is actually a great question as many app owners encounter this issue, when they’re deploying the application and then users complain that they’ve been working on something during that time and the progress got lost.

As J805 mentioned above, you can do something like updating a field for the user, but for a Live application with large number of users it will not be very optimal.

We actually have a plugin for tracking how many users are online at the moment. Davidb reposted it earlier in this topic. With the plugin, you will be able to see if someone is online, and if they are online, you will see who these users are and what page they’re on. The best thing is that it doesn’t consume any WU for this monitoring, and also you don’t really have to set this up - you only place one element to the pages you need to track and that’s all. You’ll be able to see when no one’s in the app and deploy then.
However this plugin is billed monthly, so I think there is another solution for you that could be more cost-effective & user-oriented.

We developed a plugin that allows to detect the deployment event on the client side. Please review the documentation to learn more about it.
Overall, you can set it up to handle the deployment event in pretty much any way. For example, with it you could implement a solution to fetch unsaved data to make sure it doesn’t get lost. However this will be more complicated to develop than just tracking when it’s “quiet time” in your application.

Other solutions that you may want to take a look into are Hotjar (for user monitoring) or Flusk (I think they even have a solution for automated monitoring at the time when there are least users in the platform, but it can be a bit pricey)

If you’re not sure about how to set up the workflow for your particular case, feel free to DM me, we can jump on a quick call together and figure what would be the simplest yet effective

1 Like

Have you heard of Umami?

1 Like

I use Google Analytics and Microsoft Clarity.