potty training

LO is 21 months old and I have no idea how to potty train her. i’ve bought her a potty to sit on. I just let her sit on it throughout the day at random times. she has peed in it a few times also had a few accidents on the floor. but i’m very unsure if this is the right way to go? I make sure I clap for her whenever she pees in it. she hasn’t pooped in it yet. what are some tips I can use? everytime I sit her down she always gets upset and cry’s because she doesn’t want to sit on it.