I have created a free version of my product that users can use without having to create an account. I want to save their interactions to the database - can I use Current User for this? Or would that not work? I’m already saving the Unique ID but if it’s Current User’s Unique ID, does that only work for people who have created an account whether they are logged in or not?
Hi! No, nothing will happen. You can’t use the current user function precisely because there is no user who is logged in to your app. Anyway, I advise you to always have a user created, for several reasons:
-
solve your problem immediately;
-
you have email addresses to use for marketing campaigns;
-
don’t expose your app to the outside.
![]()
Current user is odd because it will work for certain things, like if you did a search and created by = current user but they aren’t logged in when they created the thing and aren’t logged in when the search is performed. But I would advise against this in the long run
Any suggestions on how to save Unique ID of a visitor to the database? Without a Current user logged in? I know bubble is generating a unique ID, but I don’t see where in the workflow to save this for a new non-credentialed user.
Got feedback from users that they want to access a free version without email, so I really want to figure out a way to do this while saving the interaction into the database.
One option you could do is sign the user up on pageload with a junk email and a randomly generated password, then when they go to actually “sign up” you will just change the junk email to their email. This way the entire time they are technically signed in and everything can be tracked accordingly
