我决定在Flurry上使用Google Analytics,因为Flurry停止更新跟踪事件,Flurry支持团队的任何人都回复了我的查询.我的要求如下:

因此,在谷歌分析事件跟踪功能createEventWithCategory几乎是必要的,但它不允许我添加我的自定义参数,如用户ID,时间戳.
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" // Event category (required)
action:@"button_press" // Event action (required)
label:@"play" // Event label
value:nil] build]]; // Event value
Run Code Online (Sandbox Code Playgroud)
我尝试了两个解决方案和他们都不是高达了我的意料这使我对于每一个方法,我花了两个问题:
文档有一个示例代码,如下所示:
// Set the custom dimension value on the tracker using its index.
tracker set:[GAIFields customDimensionForIndex:1]value:@"Premium user"]
[tracker set:kGAIScreenName value:@"Home screen"];
// Send the custom dimension value with a screen view.
// Note that the value only needs …Run Code Online (Sandbox Code Playgroud) 我们Android和iOS应用的Firebase Analytics中的所有归因来源都是"(直接)",即使我们从Google Analytics迁移到Firebase Analytics后仍有超过250,000个first_open事件出现.
我们需要配置哪些东西来正确注册,或者我没有正确使用控制台报告,还是其他什么?
我期待至少一些基本的来源,如"有机搜索"出现.
Firebase Analytics围绕"会话"提供了大量统计信息(例如"每个用户的会话数"和"平均会话长度"),但Firebase Analytics究竟如何定义会话?
当我的应用加载有任何引起关注的问题时,是否有以下消息.如果我残疾FirebaseAutomaticScreenReportingEnabled,那有什么后果吗?关于这个在线信息不多.
Firebase自动屏幕报告已启用.调用+ [FIRAnalytics setScreenName:setScreenClass:]设置屏幕名称或覆盖默认屏幕类名称.要禁用自动屏幕报告,请在Info.plist中将标志FirebaseAutomaticScreenReportingEnabled设置为NO
我将Firebase和GTM集成在cocoapods上:
pod 'Firebase/Core'
pod 'GoogleTagManager', '~> 5.0'
Run Code Online (Sandbox Code Playgroud)
Podfile.lock用于使用的版本:
- Firebase/Core(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)
- GoogleUtilities(1.3.2):
- GoogleSymbolUtilities(〜> 1.1)
并按照集成文档中的步骤进行操作,但我发出了不间断的警告:
GoogleTagManager info: Processing logged event: (null) with parameters: (null)
<FIRAnalytics/WARNING> Attempted to log nil event
Run Code Online (Sandbox Code Playgroud)
从应用开始的完整日志:
Firebase automatic screen reporting is disabled. …Run Code Online (Sandbox Code Playgroud) google-analytics ios firebase google-tag-manager firebase-analytics
我按照Firebase文档中提到的设置步骤操作,以便在我的Android应用中设置Firebase:https: //firebase.google.com/docs/android/setup
但是,在使用Charles监视传出的http连接后,我发现正在访问以下URL:
https://ssl.google-analytics.com
所以我的问题是:
以下哪些网址用于Firebase分析(我已经读过Firebase分析会自动收集信息而不会对Firebase分析API进行任何明确调用)?
是否有可能关闭向Firebase发送信息?所以我可以准确控制发送的用户隐私要求信息?我在文档中读到,通过将"firebase_analytics_collection_deactivated"设置为true,可以取消激活分析:https: //firebase.google.com/support/guides/disable-analytics
那么将此标志设置为true会阻止自动上传数据吗?
我想在没有google-services.json的情况下使用FirebaseOptions初始化Firebase,我正在关注此处的博客文章https://firebase.googleblog.com/2017/03/take-control-of-your-firebase-init-on. HTML.
我删除了FirebaseInitProvider.
<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:authorities="${applicationId}.firebaseinitprovider"
tools:node="remove"/>
Run Code Online (Sandbox Code Playgroud)
我正在尝试在Application子类中设置默认的FirebaseApp:
FirebaseOptions options = new FirebaseOptions.Builder()
.setApplicationId("valid_app_id")
.setGcmSenderId("valid_gcm_sender_id")
.setApiKey("valid_api_key")
.build();
FirebaseApp.initializeApp(getApplicationContext(), options);
Run Code Online (Sandbox Code Playgroud)
似乎一切正常,但是当我想将一些事件记录到FirebaseAnalytics时,我收到此错误:缺少google_app_id.Firebase Analytics已停用.我不知道是什么问题.
在一个广泛使用 Firebase 的大型应用程序中,我正在尝试分析,
-FIRDebugEnabled设置得很好。
设备上的日期/时间设置正确。
我已经尝试了所有模拟器、系留设备,甚至构建到 TestFlight。
所需的东西在应用程序启动中..
FirebaseConfiguration.shared.setLoggerLevel(.max)
FirebaseApp.configure()
// helps Analytics get going:
AnalyticsConfiguration.shared().setAnalyticsCollectionEnabled(true)
Run Code Online (Sandbox Code Playgroud)
同样,Firebase 实时和数据库自始至终都能完美运行。
所以使用Analytics.logEvent#...
请注意,这些项目完美地显示在 Xcode 控制台中:
2018-07-24 08:27:23.868 Blah[7501] <Debug> [Firebase/Analytics][I-ACS023105] Event is
not subject to real-time event count daily limit. Marking an event as
real-time. Event name, parameters: select_content, {
firebase_event_origin (_o) = app;
firebase_realtime (_r) = 1;
item_name = tapMyProfile;
firebase_screen_class (_sc) = Blah.SomeScreen;
firebase_debug (_dbg) = 1;
firebase_screen_id (_si) = 8314738347840858914;
item_id = Blah-tapMyProfile;
content_type = …Run Code Online (Sandbox Code Playgroud) 我正在开发一个带有 firebase 后端的 flutter 项目,并试图将我的项目的 ios 方面添加到 firebase 项目中。说明说要添加以下豆荚:
# Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# Add the pods for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
Run Code Online (Sandbox Code Playgroud)
但问题是我不知道在文件中的哪里写这些。这是位于此处的文件(ios/Podfile)。更熟悉ios开发的人可以告诉我在哪里添加这些pod吗?谢谢!
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true' …Run Code Online (Sandbox Code Playgroud) 我在 Android 应用程序中创建一些自定义参数作为 Firebase 文档
//frist way
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_ITEM) {
param(FirebaseAnalytics.Param.ITEM_ID, "3")
param(FirebaseAnalytics.Param.ITEM_NAME, "requestCargo")
param(FirebaseAnalytics.Param.CONTENT_TYPE, "text")
}
//second way
firebaseAnalytics.logEvent("create_cargo") {
param("user_id", "1")
param("action_type", "videoCall")
}
Run Code Online (Sandbox Code Playgroud)
enable custom eventscustom reporting选项卡我看不到我的参数user_id, action_type
但我可以在 Firebase -> Analytics -> Realtime 中看到这一点
如果您知道如何显示参数,请帮助我