How can I create a referral link for all my users

How can I create a referral link for all my users

1 Like

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

Hi

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.

Good luck!!

Were you able to get this to work? And if so would you mind describing how you did it?

Please, show us how make this !

Hi Shan,

Were you able to get this to work ?

Sid

IHi i have this problem solved to 60-70% i just need help with retrieving the unique URLs with the contain() or get() functions from their respective database collection in a query, then displaying the number of referrals in a number box. Any help or sample code where I can plug in some values?