I suggest you take her back to your Vet for a thorough exam as she might well have an anal gland infection. Her anal is sticking out? You mean something is sticking out of her rectum? If that is the case, she may have a prolapse and that needs to be addressed! If she is constipated, that could be the cause. What did your Vet say about her vomiting after her meals as that is not normal? Maybe try a fish based food with no grains. You can also add some canned pumpkin (not the pie filling) to her food which might help with the constipation.
If you have mentioned all this to your Vet and he/she is not addressing these issues, I suggest you find another Vet for a second opinion.