Edited Analytics Code