Make a separate building for the beetle. It wanders around, and can be quite annoying, as it's usually in the doorway. Put it near your greenhouse, or somewhere easily accessible to encourage your tribe to keep it loaded with poo.
If taming without access to an argent or larger flying creature, you can use a raft and keep carnivores from aggro-ing the beetle by carrying it while driving the raft, both you and the beetle will be safe no matter how near to shore you wind up (useful for traversing black sand river on the island map)
Personally I have found the easiest way to tame a dung beetle is to lie down and crawl up to it. Make sure you stay on the ground once you are near, otherwise they get angry and attack if you stand up!
You must have beetle on wandering to produce fertilizer and oil . Beetles have N/A by gender and are not breedable . Only increase weight so you can hold more poop. I placed beetle in my room inside my fort and set in on wander since it's not a huge open space it produces resources without moving which I have no complaints . Beetles also eat Spoiled meat and I let beetle eat from feeding trough in order to use all its inventory for poop.
You can pick dung beetles up now. Clear a cave of aggresive creatures that are trying to rip your face off, use bug repelant and passive tame it with poop. Once your done carry it out of the cave. I only hit the dung beetle had it follow me to a safer area of the cave to tame it.
Have your buddies kill everything in a cave except for the Dung Beetle. While they're whining about snakes or scorpions or bats, just have spoiled meet or feces in your hot bar. Crouch behind it and just wait. If it abhors just walk in a circle around it until it gets bored.
A rather simple non-violent tame. All you need is a phioma and feed it stimberries, clear out the cave, or even run in, bring some of the stuff out, kill them, and repeat until you won't be bothered. Just sit next to it and feed it medium feces. In my experience they don't move at all, so that probably won't be a problem. Don't get to close expecially with tames, as they will aggro on you. Just level weight and you should be good. Make sure to keep this little guy safe, expecially if you are far from a cave.