adding to analytics code