2K members online now
2K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Which Google analytics cocoapods pod to use

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


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

pod 'Google/Analytics'

But if you search on there is separate pod maintained by Google as well, calledGoogleAnalytics

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?