A state chemist shall receive, for each analysis made and recorded, ten dollars, and for copies of record, the same fees as clerks of courts; provided, when any analysis is made by order of court, the fees therefor and for a copy of record shall be taxed as a part of the costs; but any analysis made for private parties shall be paid for by them at such rate as is agreed upon.