This project illustrates how to incorporate Google Analytics with a Unity project that will be built for iOS on Unity Cloud Build.
Google Analytics Plugin for Unity
While the plugin includes a post-build script that registers the required frameworks to use Google Analytics, this project uses the XCode Manipulation API to make those modifications both while building locally, as well as in the cloud.
When adding this as a new Cloud Build build target, go to the 'Config' tab of your project and find 'Advanced Options' for your build target. Set 'Post-Export Method' to PostBuildProcessor.OnPostprocessBuildiOS and click Save.