I'm trying to implement GTM + Firebase
in my iOS application but I'm not sure if it's correctly initialized or not. 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. I can see that events are tagged with " app+gtm
" but I don't have any clue why the info
GoogleTagManager info: Loading container: GTM-XXXX
GoogleTagManager
info: Attempting to load saved version of container GTM-XXXX
don't appear in my console. If I remove the container the GoogleTagManager
warning :
GoogleTagManager warning: No default container found. 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.
Did you try to enable the console debug of Firebase ?
You can enable verbose logging as follows:
In Xcode, select Product > Scheme > Edit scheme...
- Select Run from the left menu.
- Select the Arguments tab.
- In the Arguments Passed On Launch section, add -FIRAnalyticsDebugEnabled.
Found this in the Firebase documentation .
我只在模拟器调试中获得了加载容器信息。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.