gpt4 book ai didi

ios - 谷歌分析,Unity。 iOS 模拟器不发送事件

转载 作者:行者123 更新时间:2023-12-01 23:20:55 27 4
gpt4 key购买 nike

我使用为 Unity 3d 提供的文档配置了 Google Analytics(https://developers.google.com/analytics/devguides/collection/unity/v4/devguide)

我可以在运行时看到来自 Android 的事件,但看不到来自 iOS(模拟器)的事件。

我选择 VERBOSE 日志级别,这就是我得到的:

Logging event.
UnityEngine.Logger:Log(LogType, Object)
GoogleAnalyticsV4:LogEvent(EventHitBuilder)
***.UIManager:ShowSettingsUI()
UnityEngine.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
UnityEngine.EventSystems.StandaloneInputModule:Process()

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)

2018-11-27 13:20:20.150445-0800 ***[3859:66026] VERBOSE: GoogleAnalytics 3.13 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:517): Saved hit: {
parameters = {
"&_crc" = 0;
"&_s" = 9;
"&_u" = ".oyL";
"&_v" = "mi3.1.3";
"&a" = 454955775;
"&aid" = "com.******”;
"&an" = ***;
"&av" = "1.0";
"&cid" = "40c0b3c3-072f-420d-bf6b-e6f2dd513958";
"&did" = GbOCSs;
"&dm" = "x86_64";
"&ds" = app;
"&ea" = "Show settings ui";
"&ec" = "UI Actions";
"&el" = "";
"&ev" = 1;
"&sf" = 100;
"&sr" = 828x1792;
"&t" = event;
"&tid" = "UA-128995974-2";
"&ul" = en;
"&v" = 1;
"&z" = 13626212307316188800;
gaiVersion = "3.13";
};
timestamp = "2018-11-27 21:20:20 +0000";
}
2018-11-27 13:20:25.174861-0800 ***3859:66026] VERBOSE: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
2018-11-27 13:20:25.176054-0800 ***[3859:66026] VERBOSE: GoogleAnalytics 3.13 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632): Sending hit(s) GET: https://ssl.google-analytics.com/collect?ea=Show+settings+ui&av=1.0&ul=en&did=GbOCSs&_v=mi3.1.3&an=TapTop&dm=x86_64&a=454955775&el&ec=UI+Actions&_s=9&ds=app&aid=com.***.***&sr=828x1792&ev=1&t=event&tid=UA-128995974-2&v=1&_u=.oyL&sf=100&_crc=0&cid=40c0b3c3-072f-420d-bf6b-e6f2dd513958&ht=1543353620107&qt=5066&z=13626212307316188800
2018-11-27 13:20:25.552976-0800 ***3859:65547] INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1
2018-11-27 13:20:25.559863-0800 ***[3859:66026] INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted
2018-11-27 13:20:25.586124-0800 ***[3859:66026] INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent

最佳答案

我获得了 id:UA-1289959**-1,但在 GA Unity 集成指南的配置示例中使用了这些值:

Android:UA-XXXXXXXXX-1

iO:UA-XXXXXXXXX-2

其他:UA-XXXXXXXXX-3

所以我使用我的 UA-1289959**-1 将 iOS 的 1 替换为 2(这是我的错误)。

将 UA-1289959**-1 放入 iOS 部分即可使其工作。

希望如果有人面对它会有所帮助。

关于ios - 谷歌分析,Unity。 iOS 模拟器不发送事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53529772/

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