tell me a little more about when (when in the outing) she is shitting and where she has gone before and where she is going next. she is on leash for the entire outing?
When we're outside, the only time she's off leash is in the courtyard area and just for a little bit when I see there isn't anyone out there, or when there's other dogs out there and everyone's in agreement the dogs can play off leash.
When we're going out for a walk in the city, I will always walk her around the courtyard for a bit first so she can piss or poop. Sometimes she does, sometimes she doesn't. Today for example, she just stood there bored af in the courtyard, while angling towards the door to the outside that to me indicated she was ready to walk. We walked for about 10 minutes with no issues and were just about back when she suddenly shat. There have been other times when she suddenly shat within a couple minutes of the walk. On all occasions, she would have recently passed a tree on a cutout of grass or dirt that would've been better for shitting on.
Before and after these problem times, she shits in various acceptable places in the courtyard, whether that's from the shame or because I've been scared to even allow her to go for walks until I thought we were over the problem.
What I want her to do is crap in the most acceptable areas, either when the opportunity presents itself most times or to hold it until we're back there, or at least go to a grass/dirt/tree area if the need to crap arises mid-walk.