我将Firebase和GTM集成在cocoapods上:
pod 'Firebase/Core'
pod 'GoogleTagManager', '~> 5.0'
Run Code Online (Sandbox Code Playgroud)
Podfile.lock用于使用的版本:
- Firebase/Core(3.12.0):
- FirebaseAnalytics(= 3.6.0)
- FirebaseCore(= 3.4.7)
- FirebaseAnalytics(3.6.0):
- FirebaseCore(〜> 3.4)
- FirebaseInstanceID(〜> 1.0)
- GoogleInterchangeUtilities(〜> 1.2)
- GoogleSymbolUtilities(〜> 1.1)
- GoogleToolboxForMac/NSData + zlib(〜> 2.1)
- FirebaseCore(3.4.7):
- GoogleInterchangeUtilities(〜> 1.2)
- GoogleSymbolUtilities(〜> 1.1)
- GoogleToolboxForMac/NSData + zlib(〜> 2.1)
- FirebaseInstanceID(1.0.8)
- GoogleAnalytics(3.17.0)
- GoogleInterchangeUtilities(1.2.2):
- GoogleSymbolUtilities(〜> 1.1)
- GoogleSymbolUtilities(1.1.2)
- GoogleTagManager(5.0.8):
- FirebaseAnalytics(〜> 3.0)
- GoogleAnalytics(〜> 3.0)
- GoogleUtilities(〜> 1.3.0)
- GoogleToolboxForMac/Defines(2.1.1)
- GoogleToolboxForMac/NSData + zlib(2.1.1):
- GoogleToolboxForMac/Defines(= 2.1.1)
- GoogleUtilities(1.3.2):
- GoogleSymbolUtilities(〜> 1.1)
并按照集成文档中的步骤进行操作,但我发出了不间断的警告:
GoogleTagManager info: Processing logged event: (null) with parameters: (null)
<FIRAnalytics/WARNING> Attempted to log nil event
Run Code Online (Sandbox Code Playgroud)
从应用开始的完整日志:
Firebase automatic screen reporting is disabled. …Run Code Online (Sandbox Code Playgroud) google-analytics ios firebase google-tag-manager firebase-analytics
我正在尝试在应用程序中使用GTM.目前,该应用程序没有使用CocoaPods,也不会使用CocoaPods.但GTM需要CocoaPods,似乎没有办法在没有CocoaPods的情况下安装GTM.但我希望有一种方法可以在没有CocoaPod的情况下使用GTM.我可以吗?
新的Firebase版本5.0导致版本与Google跟踪代码管理器发生冲突.有人有解决方案吗?
Podfile:
# Analytics
pod 'Firebase/RemoteConfig', '~> 5.0.0'
pod 'Firebase/Core', '~> 5.0.0'
pod 'GoogleTagManager', '~> 6.0'
pod 'GoogleIDFASupport'
pod 'GooglePlaces', '~> 2.7.0'
Run Code Online (Sandbox Code Playgroud)
错误我得到吊舱安装:
[!] CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
In Podfile:
Firebase/Core (~> 5.0.0) was resolved to 5.0.0, which depends on
FirebaseAnalytics (= 5.0.0)
Firebase/RemoteConfig (~> 5.0.0) was resolved to 5.0.0, which depends on
FirebaseRemoteConfig (= 3.0.0) was resolved to 3.0.0, which depends on
FirebaseAnalytics (~> 5.0)
GoogleTagManager (~> 6.0) was resolved to …Run Code Online (Sandbox Code Playgroud) cocoapods google-tag-manager swift firebase-analytics xcode9.3