move analytics to client/