base HTML and add analytics code.