How does bubble generate the Current User Unique Id? Is it by the IP address?

I have not set up sign up or log in. But I want to see how many repeating users do i have coming on the app. I have started to track the Current User’s Unique Id.

I just want to confirm, if it only helps to identify one unique session or does it do it with IP addresses?

No the UID has nothing to do with their IP address. It is simply a unique string of text representing that line in the database.

You’ll need to use a plugins to either identify the device fingerprint or get their IP address

Thanks for the quick reply.

Okay, but i am getting similar unique IDs too with different data in the rows (of my database). Why is it same then? Also, the sessions have been different. But the device has been the same.

Similar doesn’t matter, they are all unique strings of text, nothing to do with the same device or anything.

2 Likes

Bubble uses cookies (probably based on browser session + IP address) when a non-logged in user interacts with your app. These cookies last up to 48 hours, so any user (not logged in) returning within that time, using the same browser session, in theory should have the same Unique ID tied to the data created.

2 Likes

Got it!
thanks @tylerboodma and @msgiblin for the detailed answer!

1 Like

Also, I was able to find a free plugin to get current user’s IP address. Here is a youtube video: https://youtu.be/REj06FM4IYI?si=zxlO79_KzKDMqRdh

2 Likes

Similiar doesn’t matter! Now that I think of this, even a single digit difference is probably trillions of probable unique ids away!

By similar I had meant exactly the same ids.

That can’t be real! Can you share screenshot?

Bubble UID’s are a concatenation of the current Unix time (the time of the UID’s creation) with an “x” and a randomly-generated number. This has a good amount of entropy. Not as much as a nanoID, but good enough. This is easily inspected.

3 Likes