Have Google Analytics just ignore all localhost domains.