Analytics code addition & typos

Analytics code addition & typos