Cleaned code, added async GA code, added event tracking