A McDonald's hamburger is not the best thing to feed a dog – even as a treat. It won't kill her, but depending on her size, the salt, the bun, the ketchup, mustard and especially the onions will upset her digestion, possibly causing uncomfortable gas and diarrhea.
More useful articles on a similar topic 👇
What fast food can dogs eat?Can dogs eat mcdonalds nuggets?