Move the Analytics code into the header.