【问题标题】:Firebase Analytics and Google Tag Manager : <FIRAnalytics/ERROR> Event name is reservedFirebase Analytics 和 Google 跟踪代码管理器:<FIRAnalytics/ERROR> 事件名称已保留
【发布时间】:2017-07-04 03:03:34
【问题描述】:

我在 cocoapods 上集成了 Firebase 和 GTM:

pod 'Firebase/Core'
pod 'GoogleTagManager', '~> 5.0'

所用版本的 Podfile.lock :

  • Firebase/核心 (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)
  • 谷歌实用程序 (1.3.2):
    • GoogleSymbolUtilities (~> 1.1)

并按照文档中的步骤进行集成,但我收到以下警告:

<FIRAnalytics/ERROR> Event name is reserved. Ignoring event: user_engagement
<FIRAnalytics/ERROR> Event name is reserved. Ignoring event: first_open

我知道这些是保留的事件,所以我不发送这些。 GTM 和 firebase Analytics 之间是否存在集成问题?

编辑

我从配置文件中删除了“.json”扩展名。日志说:

GoogleTagManager warning: No default container found. Container needs to be added to a container folder and added to the target.
Configuration was not found in database. The configuration will be fetched from the network when necessary
Firebase Analytics is ready to receive events
Firebase Analytics enabled
Fetching configuration from the server
Downloading data. Host: https://app-measurement.com/config/app/1:...
Successful fetched configuration from the server. Got network response. Code, size: 200, 106
Successfully parsed a configuration. Version: 1484056.........
Measurement data sent to network
Successful upload. Got network response. Code, size: 204, 0

有什么想法吗???

但是错误消失了???

任何想法

【问题讨论】:

  • 如果你取出GTM,错误会消失吗?如果是这样,可能是SDK集成的问题
  • 是的,它已经消失了。
  • 你是怎么解决的?

标签: ios swift swift3 google-tag-manager firebase-analytics


【解决方案1】:

在我的情况下,问题是因为以错误的方式包含文件。只要确保正确包含容器文件夹即可。提示:项目导航器中的文件夹图标颜色应为蓝色。

【讨论】:

  • 请你解释一下,文件夹图标可以变成蓝色。添加一个有用的提示。
【解决方案2】:

到 Xcode 11 中的文件夹>,只需创建文件夹并将其拖到 XCode 中,然后在导入向导弹出窗口中选中 Create folder reference。您将在项目导航器中看到带有蓝色的文件夹。

【讨论】:

    猜你喜欢
    • 2017-07-03
    • 2013-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多