[英]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.