Note: Gaming Services Analytics is now available as a preview package. Gaming Services Analytics is an improved offering that allows you to easily understand game performance and player behaviors so you can make strategic decisions. See the documentation.
在有人使用您的应用程序或游戏时,Unity 通过分发事件来收集 Analytics 数据。Unity 自动分发一组核心事件。您可以分发更多事件来收集有关用户如何玩游戏或使用应用程序的更丰富和更深入的信息。
Analytics 事件类型包括:
Unity 自动分发核心事件。您必须在适当时间分发其他类型的事件。可从 Analytics Event Tracker 组件或从脚本分发标准事件和自定义事件。
Unity 游戏或应用程序会将 Analytics 事件发送到 Unity Web 服务。Analytics 系统收集原始事件并处理它们以便显示在项目的 Analytics Dashboard 上。如果运行应用程序的计算机或设备无法连接到 Web 服务,Unity 会在本地缓存事件,直到连接可用。
注意:如果已订阅 Unity Pro,可直接下载原始事件数据。您可以将此原始数据导入到自己的分析工具中,并执行 Unity Analytics Dashboard 可能不支持的特定分析。
标准事件是自定义事件的一种形式。不同之处在于标准事件已标准化。每个标准事件都有一个预定义事件名称和一组必需参数。标准化带来了若干好处:
鉴于有这些好处,应尽可能使用标准事件而不是自定义事件。只有在没有合适的标准事件时才应使用自定义事件。
2018–03–02 页面已发布
截至 2018–06–04,服务与 Unity 5.2 之后的版本兼容,但是版本兼容性可能会发生变化
5.2 中的新功能
2018–06–04 - 删除受众特征事件
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.