Firebase 未通过 GTM 向 Google Analytics 发送相同数量的事件
Firebase not sending same number of events to Google Analytics through GTM
我为 iOS 应用设置 Firebase 已经一周了。我正在使用 Google 跟踪代码管理器 (GTM) 将事件传递给 Google Analytics (GA)。 GTM 上的事件和变量似乎设置正确,我可以看到发送到 GA 的所有事件。
问题是 - 发送到 GA 的 事件数 与 Firebase 记录的不一样。 Firebase 数据当然是正确的,因为我可以匹配来自后端的数字。 GA 似乎没有收到相同数量的事件。我在调试期间看不到任何错误。如果你以前看过这个,请回来。
引用在标签管理器论坛中找到的答案 -
This is an iOS issue I think. What you should do, is calling [[GAI sharedInstance] dispatch]... when UIApplicationWillResignActive happens. We do this in all iOS apps with Firebase and GTMv5, since Firebase only dispatch queued Firebase-events when going to background.
Here is the solution 这个问题,以防万一其他人将来遇到它并想查看完整线程,感谢 Jørn。
我为 iOS 应用设置 Firebase 已经一周了。我正在使用 Google 跟踪代码管理器 (GTM) 将事件传递给 Google Analytics (GA)。 GTM 上的事件和变量似乎设置正确,我可以看到发送到 GA 的所有事件。
问题是 - 发送到 GA 的 事件数 与 Firebase 记录的不一样。 Firebase 数据当然是正确的,因为我可以匹配来自后端的数字。 GA 似乎没有收到相同数量的事件。我在调试期间看不到任何错误。如果你以前看过这个,请回来。
引用在标签管理器论坛中找到的答案 -
This is an iOS issue I think. What you should do, is calling [[GAI sharedInstance] dispatch]... when UIApplicationWillResignActive happens. We do this in all iOS apps with Firebase and GTMv5, since Firebase only dispatch queued Firebase-events when going to background.
Here is the solution 这个问题,以防万一其他人将来遇到它并想查看完整线程,感谢 Jørn。