That is a big question. I can't speak to all breeds or owners. What I can speak to is that we have a 5yo Labradoodle that is full of energy and fire. She is also the best dog I've been around (Personal bias noted). She follows commands, stays close by, does not beg for people food, is great off leash...I could go on. You want suggestions not stories...
The process is going to take a while for her behavior to stick and be consistent. 1 year is a good guideline, depending on breed, to establish and reinforce behavior.
First, treat her the same at home and on the trail. This sets the baseline for both you and her, for either praise or correction. The advice my Dad gave me was 'never let a dog do once what you don't want it to do twice!' when our puppy was little she grabbed a banana peel out of the garbage and brought it to us to play with (obviously to us a no-no), we took it, redirected her energy to a toy, and praised her for chewing the toy.
Second, commands. One person at a time says her name and a one word command. You're doing good by reinforcing behavior now with treats. Keep doing that until you can take the treats away because she wants to please you...the Alpha.
Third, be the Alpha. Set the relationship straight by entering the house first. For the first year have her on a leash anytime you go out and are walking or you need her by your side. Have her walk at your side or behind you when walking. Do not reward for 'good enough' behavior, only for correct behavior. Only punish when caught in the act, or close to the site. The person that puts her in time out is the person that releases her from time out.
Fourth, feeding time and amount needs to be consistent. She won't wonder if she'll eat, she'll know when she'll eat. Extra food on hard working days is totally fine as long as there's a routine in place.
Fifth, and this is my opinion but it's been awesome with my puppy...don't feed her people food ever. Not even when you're tempted to. A few reasons: she won't beg when she's a 'little' hungry and people are eating food around her. She'll be able to concentrate more because she'll never be wondering 'Am I gonna eat some too?' I have my dog as the case study - I can leave jerky, popcorn, etc. out on the floor and she won't touch it. My 2 year old will leave food on couches or chairs and she won't touch it. It also pays off when we're out doing something and she'll 'get into' something that's not hers because I can tell her to leave it/drop it.
Having a puppy is fun, but don't let bad puppy behavior trick you into thinking it's cute...they don't grow out of it!
That's a rough draft and I'm no expert. I'd like to hear others perspectives too. Let us know how it's going.
Salud!