HELLO THERE.
Skin tags which you have mentioned are actually hemorrhoids. These occur due to 
chronic constipation when anal mucosa prolapses. 
Due to hard stools , cuts occur in the fragile anal mucosa leading to anal fissures.
Laxatives and 
analgesic  ointment (cremagel) are the maximum you can use to avoid constipation and relief the pain of hemorrhoids.
THE DEFINITE TREATMENT OF HEMORRHOIDS (SKIN TAGS) IS SURGICAL.
 
Surgery is required if your hemorrhoids do not get better with conservative treatment like medication.
You can try SITZ bath (sit in tub of warm water for 15 mins, 3 times a day) when you have pain and bleeding.
Another conservative procedure to avoid surgery is infrared coagulation which is a type of heat treatment to shrink the hemorrhoids. 
Surgery that may be done to treat hemorrhoids includes 
rubber band ligation or surgical hemorrhoidectomy. These are generally used in hemorrhoids with 
severe pain or bleeding which have not responded to other therapy.
take care.