It is frustrating to come home after a long day work to find that your dog has peed in her crate. Crate training a dog isn’t easy, but there are some simple tricks that you can use to help if your dog pees in crate. Read the full guide here: https://topdogtips.com/dog-pees-in-crate/
If you have a young puppy, peeing in the crate probably isn’t anything to worry about. However, if you have an adult dog that has been house/crate trained for a while, you’ll want to rule out the possibility of an underlying health condition before doing anything else.
"Dogs should never be left in a crate all day. While the maximum amount of time should not be more than 6-8 hours, most dog trainers recommend the 3-hour rule. After 3 hours of being in a crate, boredom will set in and your dog may begin to get antsy. If at all possible, you should have someone let your dog out for a crate break about every 3 hours."