In order to add Google Analytics to your forms you simply need to go to the Resources tab of form Management and search (Ctrl + F) for 'Footer'.
If you add it to a resource that is form specific you need to publish the form to live for the script to be in all environments.
If you add to a global, non form specific resource then you to publish the framework to test and then live for the script to be in all environments.