If you just need to write some cookies, it’s not very hard to do it with some JavaScript and cookie.js library. Here’s a post reply where I describe that in depth. See also the following comments where I posted a video that puts things into context:
Do note that you may or may not truly have a need to write cookies. The way Bubble handles “Current User” takes care of most situations where you might think you need to write cookies. YMMV, as in all things.