#45 add analytics code