add pagination for analytics