I want to set up a referrral program directly on bubble to create a dedicated url for each waitlister and later on depending on the number of times that link has been used and brought in new user, bump the user up in the waitlist. I see the last topic on this @NigelG replied 4 years ago that the url is easily done but to manage any rewards would be difficult. Does anyone if anything changed in the past 4 years? Is there now an easier way to set up referral program directly on bubble?
On bubble you can use the current userâs ID to track that this is the âOwnerâ of this Referal Link by creating a âtokenâ in the URL. https://www.example.com/signup&token=current Userâs Unique ID
Track signups
Youâll need to create a database field that is a LIST of USERS on the User eg. âreferred_Usersâ. (So Sally can have Mark, John, and Sue in Sallyâs list of referred_Users)
[On Signup page]
[In Signup Workflow]
IF [Get data From URL] Token is not empty. THEN - add this user to the list of users on the Referring User. (The referring user= the user with their unique ID matching the URL token.)
Then you can get current userâs list of referral_Users:count to sort them for whatever you have planned.
Bear with me for asking this simple question but how do you add a token in the URL? My current signup page is www.mysite.com/signup and if I add www.mysite.com/signup&token=current userâs unique id, the page goes 404. How can one add a token in the url and have the page still directed to the signup page?
This sounds like the easiest method I have found to create a referral program on bubble. However, you missed to explain step 1. Please it would be great if you could elaborate on how to do this âURL tokenâ thing without breaking the link and getting a 404 error. Thanks!
www.mysite.de//signup?token=current userâs unique id, you would need to have a signup page first, anything comes after ?,html knows to ignore it so it does not result in 404. Check out my sign up page https://www.tarahomes.de/ at the very top. Let me know if this is not clear.
Thanks! I think that now I am just missing how make those changes but into the URL instead of a text box. Which is the workflow action for âmodyfing the current urlâ?
Oh ok maybe I´m wrong. Let me see if I got it straight now:
I create the referral link into a text box using the method exposed in your screenshot and that will be the link that the user will send to other people who are not signed up.
When a person who is not signed up yet clicks on this link, it will not go to error 404 because the browser will just ignore everything that is on the URL after the â?â sign.
RIght, I usually put the link into an input or use the AirCopy plugin to let them click on a button to copy it.
I donât use the Userâs unique ID to do the referral personally though.
But once the user clicks on the link you will be able to access the data from the url on page load or on signup. Then when the person signs up you can attach the user referral. See image to show you how to âgetâ the data from the URL.
Jason thank you very much! This is my second week using bubbleâŚYou were so helpful! I think I got it now. I´ll give it a try and let you know how it goes!