Go to Ghost Admin Panel → Code Injection → Blog Header and add:
Admin Panel
Code Injection
Blog Header
<script> var ga_id = 'UA-YOUR_ID_HERE'; </script>