How old is your Yorkie?
My little guy is 12 weeks old. He pees on my rugs too. It's hard to see the pee spots. I have to feel around for the wet spots. When I find one I spray some Nature's Miracle on them. I got it at Petsmart.
I'm working hard on the house training but I think he just has accidents because of his age. He goes outside several times in the morning and at night. He sleeps in a playpen inside during the day when I'm at work. It has one of those puppy pads in it. He goes on that.
Good luck.