adding google analytics functionality