First be sure she's not goofing around because there is something in that area that scares her. Sometimes dogs will act up as a way of dealing with the presence of something scary.
If she's just goofing around because she's playful then do a quick youtube search you will find a ton of videos teaching you how to teach your dog to make eye contact. Begin to teach her that. Then when you get to the area she normally gets excitable, ask her for eye contact when she does it pull out a tug and play tug for a few steps (keep a tug toy in your pocket). Make this the routine when you get to that spot and eventually she'll start pre-empting it and making eye contact with you when you get there.. you can eventually just give her a food reward once she gets the hang of it.
If she's just goofing around because she's playful then do a quick youtube search you will find a ton of videos teaching you how to teach your dog to make eye contact. Begin to teach her that. Then when you get to the area she normally gets excitable, ask her for eye contact when she does it pull out a tug and play tug for a few steps (keep a tug toy in your pocket). Make this the routine when you get to that spot and eventually she'll start pre-empting it and making eye contact with you when you get there.. you can eventually just give her a food reward once she gets the hang of it.