Usage of cookies

Is it possible to show a welcome message to the web-site visitor only once at his first visit identifying him using cookies or by IP adress?

1 Like

Create a yes/no field on the user called was_welcomed and set its value to no.
Create a hidden (not visible) Text element that is invisible and on Page Load, if the user’s was_welcomed field is no (see conditionals), make it visible.

Here’s a example https://bubble.io/site/not_local/version-test/first_time_welcome?debug_mode=true

3 Likes

Thanks George,
you forgot to mention that was_welcomed field should change to yes after that in the workflow of the pageload, right?
otherwise it keeps showing me each time I open the page.
But how does it identify the user? By cookies or IP? After it showed me once now it doesn’t show the welcome screen even if I open the page in a different browser or even mobile device.
Also aren’t we supposed to see some records in the user database?
BTW I used “currentuser’s was_welcomed” is that correct?

1 Like

Sorry, i was testing on 2 different versions (live and development one). now when i made it live it all works :smile:

3 Likes