10
votes

From the official documentation Google suggest to use the submodule from the Google pod

pod 'Google/Analytics'

But if you search on cocoapods.org there is separate pod maintained by Google as well, called GoogleAnalytics

As of this writing, in the official documentation they also have a note, which make things more confusing:

Note: Beginning with version 3.16 of the Google Analytics for iOS SDK, Xcode 7.3 or higher is required.

Current version of Google pod is 3.0.3

Current version of GoogleAnalytics pod is 3.16.0

From the .podspec of Google we can see that it has as dependency 'GoogleAnalytics' but also 'FirebaseAnalytics'

  1. Is GoogleAnalytics not intended for direct use (like GoogleUtilities)?
  2. Why Google pod (version 3.0.3) is using 'FirebaseAnalytics' pod and how does this affect the Google Analytics dashboard?
1
It is no longer the case that the documentation recommends using Google/Analytics. It now tells you to use GoogleAnalytics, however it gives you the wrong import statement. - Jeremy Hicks

1 Answers

2
votes

the Google/Analytics pod is the one that should be used when implementing Google Analytics in your iOS app. You are correct in that the GoogleAnalytics pod is not meant for direct use; we'll be updating the pod description.