Added google analytics
Updated the data collection code