Add analytics code to _templates/layout.html.