I am not a veterinarian and cannot give medical advice. It is very important to take your dog to the vet immediately.
Bleeding after pooping can indicate several serious health issues, including:
Anal gland problems: A common cause of bleeding that can also be painful.
Hemorrhoids: Swollen blood vessels in the rectum that can bleed.
Anal fissure: A tear in the anal lining that causes bleeding.
Rectal polyps or tumors: Growths that can cause bleeding.
Inflammatory bowel disease (IBD): Intestinal inflammation that can lead to bleeding.
Please do not wait to see a vet. Prompt treatment can prevent complications and help your dog recover quickly.