send analytics to server.