From the Ghost Admin panel, you can add Google Analytics code or any other third-party script to your website.

Simply login to your dashboard first and then click settings icon from the left side panel

Now from the Advanced area select Code Injection,

Now add your extra style, script or anything you want