create analytics controller