Catalyzes the transfer of sulfate to position 4 of non-reducing N-acetylgalactosamine (GalNAc) residues in both N-glycans and O-glycans. Required for biosynthesis of glycoprotein hormones lutropin and thyrotropin, by mediating sulfation of their carbohydrate structures. Only active against terminal GalNAcbeta1,GalNAcbeta. Not active toward chondroitin. Strongly expressed in brain. Weakly expressed in lung and kidney. Weakly expressed in pituitary. Belongs to the sulfotransferase 2 family.