update analytics code
fix html errors