How to potty train a puppy?

Can someone explain to me how i take my 3 month old puppy outside every hr to go. 90% time she does. But then she doesnt snd come inside and she goes on the puppy pad. Sometimes misses but rarely does.

It’s like a toddler. It takes time & patience.