Syntax error in analytics code