added post pagination and Google Analytics code