How to know the domain a user came from in the page?

Hi everyone,

How can we know if a user came to our page from a certain domain on page load?

Use case:
domain is stored in the db. If the current user visited from that domain show X, else show Y.

Cheers

Usually, people add parameters to the URL. So your URL will become “https://domain.com/?ref=bubble

So you can catch the “ref” parameter into your bubble website using “get parameter from URL” action and store the data.

Ankur@ Nocodetalks
Looking for a Bubble Coach? Check out here

Correct. However, the link the user clicks could be coming from a button on the domain saved in the db, or they could have clicked elsewhere on the web, text message, email, QR code, etc. Just 1 link with all the same parameters, multiple locations it could be clicked. If the user clicks it from the domain saved in the database, then execute the workflow.