Add center class
Move analytics code to external file