gpt4 book ai didi

ios - Google Analytics iOS SDK 3.12 数据在仪表板中不可见

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:35:55 25 4
gpt4 key购买 nike

我在应用中实现了 Google Analytics。
问题是我在 Google Analytics 仪表板中看不到任何内容。

这是我在 Xcode 中看到的日志:('...' 是我替换的值)

2015-07-02 20:55:28.091 AppName[1619:931478] VERBOSE: GoogleAnalytics 3.12 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:517): Saved hit: {
parameters = {
"&_crc" = 0;
"&_s" = 51;
"&_u" = ".oK9L";
"&_v" = "mi3.1.2";
"&a" = 1809611894;
"&aid" = "...";
"&an" = ...;
"&av" = "3.0.3";
"&cd" = Home;
"&cid" = "...";
"&dm" = "iPad3,4";
"&ds" = app;
"&sr" = 2048x1536;
"&t" = screenview;
"&tid" = "...";
"&ul" = fr;
"&v" = 1;
"&z" = 14083819698118597511;
gaiVersion = "3.12";
};
timestamp = "2015-07-02 18:55:28 +0000";
}

2015-07-02 20:55:36.043 AppName[1619:931478] VERBOSE: GoogleAnalytics 3.12 -[GAIRequestBuilder requestPostUrl:payload:compression:] (GAIRequestBuilder.m:167): building URLRequest for https://ssl.google-analytics.com/batch
2015-07-02 20:55:36.045 AppName[1619:931478] VERBOSE: GoogleAnalytics 3.12 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632): Sending hit(s) POST: https://ssl.google-analytics.com/batch
2015-07-02 20:55:36.077 AppName[1619:931363] INFO: GoogleAnalytics 3.12 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status 200
2015-07-02 20:55:36.078 AppName[1619:931478] INFO: GoogleAnalytics 3.12 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted
2015-07-02 20:55:36.088 AppName[1619:931478] INFO: GoogleAnalytics 3.12 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 8 hit(s) sent

所以我很确定分析数据已发送(某处……在服务器上……在太空中……)。

但我在 Analytics Dashboard 中看不到任何内容。我可以在实时部分看到我在哪个屏幕上,但看不到全局屏幕点击。

如果您发现任何错误,请查看以下代码:

// AppDelegate.swift
// Configure tracker from GoogleService-Info.plist.
var configureError:NSError?
GGLContext.sharedInstance().configureWithError(&configureError)
assert(configureError == nil, "Error configuring Google services: \(configureError)")

// Optional: configure GAI options.
var gai = GAI.sharedInstance()
gai.trackUncaughtExceptions = true // report uncaught exceptions
gai.dispatchInterval = 10
gai.logger.logLevel = GAILogLevel.Verbose // remove before app release

// Analytics.swift
class Analytics {

static let sharedInstance = Analytics()

init() {
GAI.sharedInstance().trackerWithTrackingId("...")
}

func trackView(viewName: String) {
println(viewName)
let tracker = GAI.sharedInstance().defaultTracker
tracker.set(kGAIScreenName, value: viewName)

var builder = GAIDictionaryBuilder.createScreenView()
tracker.send(builder.build() as [NSObject : AnyObject])
}

}

最佳答案

简单的答案是你只需要等待。
还有其他帖子指出您需要等待 48 小时并提供文档链接。我无法在新文档中找到该部分。

对我来说,数据在我测试后的第二天就可用了。

关于ios - Google Analytics iOS SDK 3.12 数据在仪表板中不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31194373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com