added analytics code to _layout