Go to Settings > Conversion and Tracking
Additional tracking code – Here you can add your UA code and other scripts. You don’t need to add it to the theme code. Learn more about Google Analytics.
Additionally, you can place scripts and conversion codes on the “thank you” page.