How to assign random unique ID to every (guest) user and link currency?

Hi guys,

Backstory:

We are using the Wix Website builder.
Whilst making a webpage per page interactive, story we have introduced a currency (called KP) that can be earned and spent making certain decisions.

Initial Problem:

Originally, we assigned the KP to each webpage but this has led to a vast many repeats of pages and this is only the start

Proposed solution: we came up with the idea of assigning a random unique ID to every user and linking the KP to those

New problem:

We have no clue where to even start looking, never mind how to complete it. ANY pointers, advice, or help would be appreciated

Thanks in advance

Hello IOTG,

i am not sure if i understood everything right, but why you want to create an unique ID for every user, if you already have (“_owner”), a unique ID for every registered USER?

You could use this _owner-ID for your needs, or not?

Hey, we weren’t actually aware of that. Thanks so much, I’ll look into that straight away

Could you answer me, do you have to have a sign up page to do this, as ideally we do not want people to have to sign up for this. Thanks

Helle IOTG,

yes i think you have to be a registrated member on your site. (good or not good, i don’t know).

But perhaps you could also try to use the normal ID (not sure if this will work).
Like your idea was in your first post, to take the user-ID and give every item the right user-ID.

user-1 takes an apple (ID of apple = ID of user1 + counter )
user-2 takes a banana (ID of banana = ID of user2 + counter)

perhaps something like that.

So you can generate unique product IDs, which belongs to unique users.

Take also a look to my example… (User-Infos)
https://russian-dima.wixsite.com/meinewebsite/user-infos

I just tested if the user-id changes after site-refresh.
Do your test yourself and try it out.