changed google analytics code to support mobile and updated NPM packages