Adds Analytics code