Paint a visible line where the fence should be. (no go zone) train the dog to not go past that line/fence.
A friend of mine has trained dogs for years, I've watched him work with them. They will not cross that painted line when I approach the open area of the fence. (gate) Eventually the pain wears off and all is good, they know where not to go and respond to verbal commands well. (some are a bit more stubborn than others at learning)Be sure they know who is boss, you, not them.
He's never used shocking devices. Just spanking on the rump to get their attention, never on the snout or face, that makes a dog want to bite someone.
Don't confuse them with commands. Down (laydown) Off (get off/jumping on someone) Stay, Sit. Use hand signals each time with the commands while in the learning stage. It could take time depending on the bread and demeanor of the dog.
He plays rough with the dogs too, wrestling in the house and stuff. Never teaches them to fetch. (working bird dogs) He will teach them to retrieve pheasant wings for bird training. Yet somehow his latest dog has discovered tennis balls buried from the previous dog, but refuses to throw them for her. He tosses them in the trash.
Be sure the family and friends know the commands and signals for the dog during training, keeps from confusing the pup and or if you want the pup to know who is master, the family and friends shouldn't try to train the dog. Only use the commands after the pup seems to know them pretty well.
But none of this has worked on my cats. I'm not sure it works at all.![]()