Google analytics
Refactor send method and fix tests