This manual shows you how you can put the Google Analytics code on your website.
First log in to the front-end editor in edit mode. The button for the settings tab is then visible in the upper blue bar. It is the button with the sliders.
Click within the settings tab again within on the settings. In the field under "Google Analytics / Tag Manager code" put the exact snippet of code that you received from Google. Then click on Save.