How can I create a referral link for all my users
how do you mean, referal to what.
I want be able to allow my members get a unique link that will redirect to my website's registration page and the referrer to be ablet to get reward for the invitation.
yes I need this function too. which I can rewards to the member who share and successful close deal
you can use prefill urls and use wixLocation to collect the info from the url into a hidden text input element in your footer or header. Write the code on the Site instead of Page so that it will work on all pages.
Once wixLocation has finished collecting the info you can use async/await to store it into local storage or you can code the onClick function of any element to save it in an appropriate place.
Please, show us how make this !
Were you able to get this to work? And if so would you mind describing how you did it?