added analytics to posts