Fix some bugs, resolve blog history view issue, and update analytics codes.