Kitten help!!!

My kitten is around 4 weeks, maybe older idk lol, and she has been living here for a little over a week. She has been good about using the litter box until yesterday she randomly started peeing on the floor in the same spot, but sometimes still uses the litter box too. How can I stop her from peeing on the floor?