In all actions brought under s. 778.10 the town, city, village or corporation in whose name such action is brought shall be liable for the costs of prosecution; and, if judgment be for defendant, for all the costs of the action, and judgment shall be entered accordingly. In all other actions brought under the provisions of this chapter, except as provided in s. 778.04, the county in which the forfeiture was incurred shall be liable for the costs of the prosecution, and, if judgment be for defendant, for all the costs of the action.
Wis. Stat. § 778.20