简体   繁体   English

GoogleTagManager v5 iOS设置问题

[英]GoogleTagManager v5 iOS set up problems

I'm trying to implement GTM + Firebase in my iOS application but I'm not sure if it's correctly initialized or not. 我正在尝试在我的iOS应用程序中实现GTM + Firebase ,但我不确定它是否正确初始化。 At the moment I'm using GTM v5.0.8 , the JSON file has been added to the project directory and firebase is sending events. 目前我正在使用GTM v5.0.8 ,JSON文件已添加到项目目录中,而firebase正在发送事件。 I can see that events are tagged with " app+gtm " but I don't have any clue why the info 我可以看到事件被标记为“ app+gtm ”,但我没有任何线索为什么信息

GoogleTagManager info: Loading container: GTM-XXXX GoogleTagManager info: Attempting to load saved version of container GTM-XXXX GoogleTagManager信息:正在加载容器: GTM-XXXX GoogleTagManager信息:尝试加载已保存的容器版本GTM-XXXX

don't appear in my console. 不要出现在我的控制台中。 If I remove the container the GoogleTagManager warning : 如果我删除容器GoogleTagManager 警告

GoogleTagManager warning: No default container found. GoogleTagManager警告:找不到默认容器。 Container needs to be added to a container folder and added to the target. 容器需要添加到容器文件夹并添加到目标。

correctly appears in my console. 正确出现在我的控制台中。 So I suspect that everything is working but without the logging information I'm not 100% sure of this. 所以我怀疑一切正常,但没有记录信息我不是100%肯定这一点。

Did you try to enable the console debug of Firebase ? 您是否尝试启用Firebase的控制台调试?

You can enable verbose logging as follows: 您可以按如下方式启用详细日志记录:

In Xcode, select Product > Scheme > Edit scheme... 在Xcode中,选择产品>方案>编辑方案...

  • Select Run from the left menu. 从左侧菜单中选择“运行”。
  • Select the Arguments tab. 选择“参数”选项卡。
  • In the Arguments Passed On Launch section, add -FIRAnalyticsDebugEnabled. 在Argmentments Passed On Launch部分中,添加-FIRAnalyticsDebugEnabled。

Found this in the Firebase documentation . Firebase文档中找到了这个。

我只在模拟器调试中获得了加载容器信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iOS上更改GoogleTagManager v5的日志级别 - Change the loglevel of GoogleTagManager v5 on iOS AudioKit v5 输出问题,使用 AVAudioSession defaultToSpeaker 时没有声音 - AudioKit v5 output problems, no sound when AVAudioSession defaultToSpeaker is used 加载 GoogleTagManager 容器时 iOS 应用程序崩溃 - iOS App Crashes while it is loading the GoogleTagManager Container 使用GoogleTagManager时iOS应用被拒绝 - iOS app rejected when using GoogleTagManager 设置setStatusBarHidden:在iOS v5应用程序中。还有一个空白区域。这是解决问题的正确方法吗? - when setting setStatusBarHidden: in iOS v5 app. A blank space remains. Is this the right way to fix it? iOS15 中后退按钮的 headerTintColor 被忽略(react-navigation v5) - headerTintColor ignored for back button in iOS15 (react-navigation v5) 如何在 ios 的 ionic/react v5 中防止“UIColor”没有成员“systemBackground”和“UIStatusBarStyle”没有成员“darkContent”? - How to prevent 'UIColor' has no member 'systemBackground' ` and 'UIStatusBarStyle' has no member 'darkContent' in ionic/react v5 for ios? 为iOS设置Frank时出现问题 - Problems when setting up Frank for iOS 设置Wordpress iOS的教程 - Tutorial to set up wordpress iOS iOS驱动程序设置错误 - Error with iOS driver set up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM