The offensive odor is most likely from the secretions from the anal glands. Many dogs will defecate also. The anal glands produce really smelly fluid, and when the animal is excited, scared, stressed, or even during a seizure these glands will empty. The odor is very fishy.
Let me know if you have more questions!
Veterinarian
15 yrs small animal veterinarian