Add analytics to after_footer