Analytics service: more code for building POST