Modify for google accounts api
Add analytics code