add analytics code  #19