Google analytics

General question about themes: is there anywhere to enter Google Analytics tracking code? Or do I need to manually add this code to the theme via a child theme? Or is there a plug-in you'd recommend?
Thanks.