new  analytics code