You can add Google Analytics code to your site by following the steps below:
- Go to Appearance > Customize > General Settings > Google Analytics Settings.
- Paste the code in the Analytics Code field.
- Click Publish.

You can add Google Analytics code to your site by following the steps below: