Google Analytics before or after wp_footer?

I know it should be right before ending HTML tag. But there is a wp_footer() there. Should I put Google Analytics before or after wp_footer()? What does wp_footer() do anyways?

Hello, you can use the Google Analytics after wp_footer.