Hey welcome to bubble!
I would start by reading this.
Then you can look for the post by Keith that talked about creating cookies using a JS library.
If you need more help, afterwards, let us know what you’ve tried already and what didn’t work and we’ll be happy to nudge you along
Happy bubbling!