Help!

uramaka

How do you train your dog off the leach at home? My dog is a sweetheart obedient lovely goes potty outside as long as shes on the leash when I take it off she runs jumps everywhere pees everywhere I cant follow her all day but I dont want her to stay in one spot all day either she needs to walk shes not a statue but how do I make her to stop doing that