Removed duplicate Google Analytics code and updated event tracking