Added Logout, analytics scripts