Tag defoamer dosage determination