added analytics v2 lib
initial code for analytics integration