first draft of analytics implemented.