Store landing page in user account

Brand new to Bubble and currently overwhelmed with the volume of options/sites/nomenclature/variants etc and feeling extremely frustrated so apologies if this is a basic question…

I want to know who (out of a short list of say 20 possible referrers) referred an individual to my site/app. I assumed the best way of doing this was to create a page for each possible referrer and create an action on loading of the page that records the page from the URL and remembers it for that session before redirecting to an index/home page. If/when the individual registers an account the value is stored so I have a permanent record of which accounts were referrals.

I’ve achieved “something” but it has the whole URL and seems to be adding a value every time I preview a referral page. I don’t currently understand how the database items work (or how referring to “thing” can be anything other than confusing! What the hell is a thing?!)

I’ve read a lot of topics on the forum but none of them make any sense to me because the bubble specific language is confusing. I’m too much of a newbie.

Can anyone help (with the use of crayons!)

TIA

Hey, send a link to your editor and I will try to help you.

:frowning:

crayons?

Well, go to editing page of your app(where all groups and text is available to edit) and copy url and paste it here.

Go to settings -> general->application rights-> everyone can view

everyone can now view the embarassing mess!

If you preview the “SW” page it “kinda” works and ends up taking you to a different page where “SW” is shown in a text box and presumably therefore available to record against an account when an individual registers. Also having difficulty with the dataentry page as I can’t work out how to load and store multiple images

Okay, well as long as your page empty I will describe it in my example.

What you are trying to do is the Referral system.

How it will work.

User 1 in his profile page creates referral URL - another user 2 uses it to sign up - ref code writes in the database during sign up for User 2 - User 1 can see in his profile all users that used his link

To do it you need:

1)Sign_up page
2)Login page
3)The page where referral code will be generated (profile page in my example)

Okay, now

Create in your User type new fields

Ref code Give (this code will generate user)
Ref code Recieve (here will be storing referral code from another user)

Your Bubble app - this is to sign up page

on the button sign up you should create workflow - sign up user - make changes to a thing Current user’s Ref code Recieve = this URL: truncated to 10

on the page profile Your Bubble app

create button - Create referral link - make a workflow for it - make a change to a thing Current User’s Ref code Give = here you should paste URL of your sign up page and add ?r=curent User’s Unique ID

(make a change to a thing Current User’s Ref code Give = Your Bubble app User’s Unique ID) - like this

So here referral system already working and you can search in your database for users with same Red Code Recieve

Or you can create a repeating group where all ref users of the current user will appear.

Thanks for your help. I know it’s because I am totally ignorant of bubble and a constant under-achiever, but I can’t tell how to do what you are suggesting, and I can’t tell what it will achieve. Am I supposed to be able to see how the button is generating a referral URL? How does it help to generate one randomly? I suspect I haven’t explained what I need well enough. By way of further explanation…

If I gave out 100 business cards, each containing a QR code: 50 of the QR codes are the same, 50 are different. The holders of the “different” cards need to be treated differently… they need to see a different version of the site, importantly before they’ve even registered - and when they do register it should record which card they had so I can subsequently analyse which site version had the best engagement. I would need to know which group they were in while they navigate multiple pages, and it’s possible they may never sign up. Would your answer help with this?

Does a referral link have to have the “?r=” element? If so, how do I add this? Presumably it would be possible to have a landing page with an action on “page loading” that makes a change to a thing but I’ve tried (and failed) to “Give” as that’s not an option that’s available??? Wouldn’t I have to create the field ref code first? As what type? Text? Where do I get the unique ID from?

I have more questions than brain cells! :slight_smile:

I advise you to go through start lessons in bubble, it’s free and very educational.
When you will clear understand what you want to build, you probably will understand how.

Thing with QR codes is possible to do.

I’ve done all the lessons - I’ve even gone back and reviewed them to see how they might help, but I don’t see how they help with this issue?

I didn’t see any lessons that dealt with referral sites or caching of the info, Give or receive things

1 Like

When it’s not a referral system.
Just create 2 main pages and make URL of them in QR codes, make a workflow for sign up button to make a change Current User’s page 1, later you will see in the database which version brings you the most users.

Hi sat_miha.

So if I understand you correctly it’s not possible to have conditional events based on which main page a user arrives at. They would need to register first. They are nott able to visit other pages and have a bespoke experience until they’ve registered.

And it’s not possible to have one sign-up page. You are saying I would need two sign-up pages to be able to record which of the two business cards a user was using?

You can have 1 registration page and display different information depending on the user URL, it’s just harder to implement than make 2 pages.

What conditional events you are talking about?

What should happen than user visites page 1 or page 2?

So if there are two QR codes that take users to either page 1 or page 2, the users should get shunted to the same home page, but (to use a silly example) the home page should have a red background for users that arrived via page 1 and a blue background for users that arrived from page 2.

From the home page users should be able to go to pages 3, 4, 5, 6, 7 etc seeing different experiences depending on whether they landed on page 1 or 2 (another example might be that some images are only made visible to one group rather than the other), and if, at some point in their journey, they decide to register, their registration should record their landing page.

If you try to understand is it possible to make a/b testing , then yes it’s possible

Do you know how?