Move analytics into app js
Add post analytics